@php $addDocumentPermission = user()->permission('add_client_document'); $editDocumentPermission = user()->permission('edit_client_document'); $viewDocumentPermission = user()->permission('view_client_document'); $deleteDocumentPermission = user()->permission('delete_client_document'); @endphp
@if ($addDocumentPermission == 'all' || $addDocumentPermission == 'added')
@lang('app.cancel') @lang('app.submit')
@endif
@forelse($client->clientDocuments as $file) @if ($file->icon == 'images') @else @endif @if ($viewDocumentPermission == 'all' || ($viewDocumentPermission == 'added' && $file->added_by == user()->id)) @endif @empty
- @lang('messages.noFileUploaded') -
@endforelse