@php $addDocumentPermission = user()->permission('add_client_document'); $viewDocumentPermission = user()->permission('view_client_document'); $deleteDocumentPermission = user()->permission('delete_client_document'); $editDocumentPermission = user()->permission('edit_client_document'); @endphp @forelse($files as $file)
@if ($file->icon == 'images')
@else
@endif @if ($viewDocumentPermission == 'all' || ($viewDocumentPermission == 'added' && $file->added_by == user()->id))
@if ($viewDocumentPermission == 'all' || ($viewDocumentPermission == 'added' && $file->added_by == user()->id)) @if ($file->icon != 'fa-file-image')
@lang('app.view')
@endif
@lang('app.download')
@endif @if ($editDocumentPermission == 'all' || ($editDocumentPermission == 'added' && $file->added_by == user()->id))
@lang('app.edit')
@endif @if ($deleteDocumentPermission == 'all' || ($deleteDocumentPermission == 'added' && $file->added_by == user()->id))
@lang('app.delete')
@endif
@endif
@empty
- @lang('messages.noFileUploaded') -
@endforelse