@include('partials._provider')
{{ $pageTitle ?? trans('messages.list') }}
@if($auth_user->can('providerdocument list')) {{ __('messages.back') }} @endif
{{ Form::model($provider_document,['method' => 'POST','route'=>'providerdocument.store', 'enctype'=>'multipart/form-data', 'data-toggle'=>"validator" ,'id'=>'provider_document'] ) }} {{ Form::hidden('id') }}
@if(auth()->user()->hasAnyRole(['admin','demo_admin']))
{{ Form::label('provider_id', __('messages.select_name',[ 'select' => __('messages.providers') ]).' *',['class'=>'form-control-label'],false) }}
{{ Form::select('provider_id',[$providerdata->id => $providerdata->display_name],$providerdata->id, [ 'class' => 'select2js form-group providers', 'required', 'data-placeholder' => __('messages.select_name', ['select' => __('messages.providers')]), // 'data-ajax--url' => route('ajax-list', ['type' => 'provider']), ] ) }}
@endif @php $is_required = optional($provider_document->document)->is_required == 1 ? '*' : ''; @endphp
{{ Form::label('name', __('messages.select_name',[ 'select' => __('messages.document') ]).' * ',['class'=>'form-control-label'],false) }}
{{ Form::select('document_id', [optional($provider_document->document)->id => optional($provider_document->document)->name." ".$is_required], optional($provider_document->document)->id, [ 'class' => 'select2js form-group document_id', 'id' => 'document_id', 'required', 'data-placeholder' => __('messages.select_name',[ 'select' => __('messages.document') ]), 'data-ajax--url' => route('ajax-list', ['type' => 'documents']), ]) }} {{ trans('messages.add_form_title',['form' => trans('messages.document') ]) }}
@if(auth()->user()->hasAnyRole(['admin','demo_admin']))
{{ Form::label('is_verified',trans('messages.is_verify').' *',['class'=>'form-control-label'],false) }} {{ Form::select('is_verified',['1' => __('messages.verified') , '0' => __('messages.unverified') ],old('is_verified'),[ 'id' => 'is_verified' ,'class' =>'form-control select2js','required']) }}
@endif
@if($provider_document && getMediaFileExit($provider_document, 'provider_document')) @else @endif
@if(getMediaFileExit($provider_document, 'provider_document'))