@extends('backEnd.master') @section('title') @lang('admin.postal_dispatch') @endsection @section('mainContent')
@if (isset($postal_dispatch)) @endif
@if (isset($postal_dispatch)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['postal-dispatch_update', @$postal_dispatch->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if (userPermission('postal-dispatch-store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'postal-dispatch-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@if (isset($postal_dispatch)) @lang('admin.edit_postal_dispatch') @else @lang('admin.add_postal_dispatch') @endif

@if ($errors->has('to_title')) {{ @$errors->first('to_title') }} @endif
@if ($errors->has('reference_no')) {{ @$errors->first('reference_no') }} @endif
@if ($errors->has('address')) {{ @$errors->first('address') }} @endif
@isset($postal_dispatch) @else @endif @if ($errors->has('note')) {{ @$errors->first('note') }} @endif
@if ($errors->has('from_title')) {{ @$errors->first('from_title') }} @endif
{{ $errors->first('date') }}
(PDF,DOC,DOCX,JPG,JPEG,PNG,TXT are allowed for upload) @if ($errors->has('file')) {{ $errors->first('file') }} @endif
@php $tooltip = ''; if (userPermission('postal-dispatch-store')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('admin.postal_dispatch_list')

@lang('admin.to_title') @lang('common.reference_no') @lang('common.address') @lang('admin.from_title') @lang('common.note') @lang('common.date') @lang('common.actions')
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js') @include('backEnd.partials.server_side_datatable') @section('script') @endsection