@php $addFilePermission = user()->permission('add_project_files'); $viewFilePermission = user()->permission('view_project_files'); $deleteFilePermission = user()->permission('delete_project_files'); @endphp
@if (($addFilePermission == 'all' || $addFilePermission == 'added' || $project->project_admin == user()->id) && !$project->trashed())
@lang('app.cancel')
@endif @if ($viewFilePermission == 'all' || ($viewFilePermission == 'added' && user()->id == $project->added_by) || ($viewFilePermission == 'owned' && user()->id == $project->client_id))
@forelse($project->files as $file) @if ($file->icon == 'images') @else @endif @if ($viewFilePermission == 'all' || ($viewFilePermission == 'added' && $file->added_by == user()->id)) @endif @empty
- @lang('messages.noFileUploaded') -
@endforelse
@endif