@php $addContractFilePermission = user()->permission('add_contract_files'); $viewContractFilePermission = user()->permission('view_contract_files'); $deleteContractFilePermission = user()->permission('delete_contract_files'); @endphp
@if ($addContractFilePermission == 'all' || $addContractFilePermission == 'added')
@lang('app.cancel')
@endif
@if ($viewContractFilesPermission != 'none') @forelse($contract->files as $file) @if ($viewContractFilePermission == 'all' || ($viewContractFilePermission == 'added' && $file->added_by == user()->id)) @endif @empty
- @lang('messages.noFileUploaded') -
@endforelse @endif