@include('new_layouts.header') @include('hrm.hrm_main')

Document Setup

@can('create document') {{__('Create')}}   @endcan
@if(Gate::check('edit document') || Gate::check('delete document')) @endif @foreach ($documents as $document) @php $documentPath=\App\Models\Utility::get_file('uploads/documentUpload'); $roles = \Spatie\Permission\Models\Role::find($document->role); @endphp @if(Gate::check('edit document') || Gate::check('delete document')) @endif @endforeach
{{__('Name')}} {{__('Document')}} {{__('Role')}} {{__('Description')}}{{__('Action')}}
{{ $document->name }} @if (!empty($document->document)) @else

-

@endif
{{ !empty($roles)?$roles->name:'All' }} {{ $document->description }}
@can('edit document') @endcan @can('delete document') {!! Form::open(['method' => 'DELETE', 'route' => ['hrm_doc_setup.destroy', $document->id],'id'=>'delete-form-'.$document->id]) !!} {!! Form::close() !!} @endcan
@include('new_layouts.footer') {{--
btn btn-md bg-primary btn btn-md btn-danger bs-pass-para --}}