@php $addDocumentPermission = user()->permission('add_documents'); $viewDocumentPermission = user()->permission('view_documents'); $deleteDocumentPermission = user()->permission('delete_documents'); $editDocumentPermission = user()->permission('edit_documents'); @endphp
@if ($addDocumentPermission == 'all' || $addDocumentPermission == 'added')
@lang('app.cancel') @lang('app.submit')
@endif
@forelse($employee->documents as $file) @if ($viewDocumentPermission == 'all' || ($viewDocumentPermission == 'added' && $file->added_by == user()->id)) @if ($file->icon == 'images') @else @endif @endif @empty
- @lang('messages.noFileUploaded') -id="save-taskfile-data-form"
@endforelse