@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 ($viewDocumentPermission == 'all' || ($viewDocumentPermission == 'added' && $file->added_by == user()->id)) @if ($file->icon == 'images') @else @endif @endif @empty
- @lang('messages.noFileUploaded') -
@endforelse