JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Document') }} @endsection @section('breadcrumb') @endsection @section('action-button') @can('Create Document') @endcan @endsection @section('content')
{{--
--}}
@if (Gate::check('Edit Document') || Gate::check('Delete Document')) @endif @foreach ($documents as $document) @endforeach
{{ __('Name') }} {{ __('Document') }} {{ __('Role') }} {{ __('Description') }}{{ __('Action') }}
{{ $document->name }} @php $documentPath = \App\Models\Utility::get_file('uploads/documentUpload'); $roles = \Spatie\Permission\Models\Role::find($document->role); @endphp @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' => ['document-upload.destroy', $document->id], 'id' => 'delete-form-' . $document->id, ]) !!}
@endcan
@endsection