{{ $pageTitle ?? trans('messages.list') }}
@if($auth_user->can('document list')) {{ __('messages.back') }} @endif
{{ Form::model($documentdata,['method' => 'POST','route'=>'document.store', 'data-toggle'=>"validator" ,'id'=>'documents'] ) }} {{ Form::hidden('id') }}
{{ Form::label('name',trans('messages.name').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('name',old('name'),['placeholder' => trans('messages.name'),'class' =>'form-control','required']) }}
{{ Form::label('status',trans('messages.status').' *',['class'=>'form-control-label'],false) }} {{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'status' ,'class' =>'form-control select2js','required']) }}
{{ Form::checkbox('is_required', $documentdata->is_required, null, ['class' => 'custom-control-input' , 'id' => 'is_required' ]) }}
{{ Form::submit( trans('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }} {{ Form::close() }}