{!! Form::label('type',__('models/document.fields.type')) !!}
@if (str_contains(url()->current(), '/edit')) {!! Form::select('type', config('enum.expirey_document_types'), null , ['class' => $errors->has('type') ? 'form-control is-invalid' : 'form-control', 'id' => 'exp_file_type']) !!} @else {!! Form::select('type_1', config('enum.expirey_document_types'), null , ['class' => $errors->has('type') ? 'form-control is-invalid' : 'form-control', 'id' => 'exp_file_type']) !!} @endif @if ($errors->has('type')) {{ $errors->first('type') }} @endif
{!! Form::label('type',__('models/document.fields.name')) !!}
@if (str_contains(url()->current(), '/edit')) {!! Form::text('name', null, ['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control' ,'id'=>"doc_name"]) !!} @else {!! Form::text('name_1', null, ['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control' ,'id'=>"doc_name"]) !!} @endif @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('date', __('models/document.fields.date')) !!}
@if (str_contains(url()->current(), '/edit')) {!! Form::text('date', null, ['class' => $errors->has('date') ? 'form-control is-invalid' : 'form-control', 'id' => 'doc_date']) !!} @else {!! Form::text('date_1', null, ['class' => $errors->has('date') ? 'form-control is-invalid' : 'form-control', 'id' => 'doc_date']) !!} @endif @if ($errors->has('date')) {{ $errors->first('date') }} @endif
@if (str_contains(url()->current(), '/edit')) {!! Form::file('file', ['class' => 'custom-file-input','id'=>'exp_file_name']) !!} {!! Form::label('file', $document->type, ['class' => 'custom-file-label','id'=>'exp_file_label']) !!} @else {!! Form::file('file_1', ['class' => 'custom-file-input','id'=>'exp_file_name']) !!} {!! Form::label('file', 'Vehicle Expires', ['class' => 'custom-file-label','id'=>'exp_file_label']) !!} @endif
@if (str_contains(url()->current(), '/create')) Delete Document @endif @section('scripts') @parent @endsection