Notice: Undefined variable: control in /home/demohatinco/public_html/parhwalo_backend/resources/views/admin/contact_us/create.blade.php on line 2
@extends('layouts.default_edit') @section('heading') {!! $heading !!} @endsection @section('leftsideform') @if ($messages = Session::get('error'))
{{-- {{ $message }} --}}
@endif @if($control == 'edit') {!! Form::model($contact_us,['id'=>'my_form', 'method' => 'POST', 'route' => ['contact_us.update', $contact_us->id],'files'=>true]) !!} @else {!! Form::open(['id'=>'my_form','method' => 'POST', 'route' => ['contact_us.save' ], 'files'=>true]) !!} @endif @include('admin.contact_us.partial.form') {!!Form::close()!!}
{!! Form::open(['method' => 'get', 'route' => ['contact_us.index']]) !!} {!! Form::submit('Cancel', ['class' => 'btn btn-default btn-block btn-lg btn-parsley']) !!} {!! Form::close() !!}
@endsection {!!Form::close()!!}