@php $deleteTaskFilePermission = user()->permission('delete_task_files'); $viewLeadFilePermission = user()->permission('view_lead_files'); @endphp
@forelse($deal->files as $file) @if ($viewLeadFilePermission == 'all' || ($viewLeadFilePermission == 'added' && $file->added_by == user()->id))
@if ($file->icon == 'images') @else @endif
@endif @empty
- @lang('messages.noFileUploaded') -
@endforelse