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