@php $addFilePermission = user()->permission('add_project_files'); $viewFilePermission = user()->permission('view_project_files'); $deleteFilePermission = user()->permission('delete_project_files'); @endphp @forelse($files as $file) @if ($viewFilePermission == 'all' || ($viewFilePermission == 'added' && $file->added_by == user()->id)) @endif @empty
- @lang('messages.noFileUploaded') -
@endforelse