@extends('themes.default1.admin.layout.admin') @section('content')
{!! Form::open(['route'=>'templates.store','method'=>'post']) !!}

{{Lang::get('lang.templates')}} {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}

@if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(Session::has('success'))
{{Lang::get('lang.alert')}}! {{Lang::get('lang.success')}}. {{Session::get('success')}}
@endif @if(Session::has('fails'))
{{Lang::get('lang.alert')}}! {{Lang::get('lang.failed')}}. {{Session::get('fails')}}
@endif
{!! Form::label('name',Lang::get('lang.name'),['class'=>'required']) !!} {!! Form::text('name',null,['class' => 'form-control']) !!}
{!! Form::label('type',Lang::get('lang.template-types'),['class'=>'required']) !!} {!! Form::select('type',[''=>'Select','Type'=>$type],null,['class' => 'form-control']) !!}
{!! Form::label('message',Lang::get('lang.content'),['class'=>'required']) !!} {!! Form::textarea('message',null,['class'=>'form-control','id'=>'textarea']) !!}
{!! Form::close() !!} @stop