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