@php $addDocumentPermission = user()->permission('add_documents'); $viewDocumentPermission = user()->permission('view_documents'); $deleteDocumentPermission = user()->permission('delete_documents'); $editDocumentPermission = user()->permission('edit_documents'); @endphp
@if ($addDocumentPermission == 'all' || $addDocumentPermission == 'added')
@lang('app.cancel') @lang('app.submit')
@endif
@if ($viewDocumentPermission == 'all' || ($viewDocumentPermission == 'added' && $file->added_by == user()->id)) @forelse($employee->documents as $file) @if ($file->icon == 'images') @else @endif @empty
- @lang('messages.noFileUploaded') -
@endforelse @endif