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