@php $deleteLeadFilePermission = user()->permission('delete_lead_files'); $viewLeadFilePermission = user()->permission('view_lead_files'); @endphp @lang('modules.projects.fileName') @lang('app.date') @lang('app.action') @forelse($deal->files as $file) {{ $file->filename }} {{ $file->created_at->diffForHumans() }} @if ($viewLeadFilePermission == 'all' || ($viewLeadFilePermission == 'added' && $file->added_by == user()->id))
@lang('app.view')
@endif @empty @endforelse