@php
$viewContractFilePermission = user()->permission('view_contract_files');
$deleteContractFilePermission = user()->permission('delete_contract_files');
@endphp
@forelse($files as $file)
@if ($file->icon == 'images')
@else
@endif
@if ($viewContractFilePermission == 'all' || ($viewContractFilePermission == 'added' && $file->added_by == user()->id))
@if ($viewContractFilePermission == 'all' || ($viewContractFilePermission == 'added' && $file->added_by == user()->id))
@lang('app.view')
@lang('app.download')
@endif
@if ($deleteContractFilePermission == 'all' || ($deleteContractFilePermission == 'added' && $file->added_by == user()->id))
@lang('app.delete')
@endif
@endif
@empty
- @lang('messages.noFileUploaded') -
@endforelse