Notice: Undefined variable: control in /home/demohatinco/public_html/maternity_care_backend/resources/views/admin/company/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($company,['id'=>'my_form', 'method' => 'POST', 'route' => ['company.update', $company->id],'files'=>true]) !!} @else {!! Form::open(['id'=>'my_form','method' => 'POST', 'route' => ['company.save' ], 'files'=>true]) !!} @endif @include('admin.company.partial.form') {!!Form::close()!!}
{!! Form::open(['method' => 'get', 'route' => ['company.index']]) !!} {!! Form::submit('Cancel', ['class' => 'btn btn-default btn-block btn-lg btn-parsley']) !!} {!! Form::close() !!}
@endsection {!!Form::close()!!}