{{-- Personal Documents --}}
@if (auth()->user()->can('download-documents') || auth()->user()->can('delete-documents')) @endif @forelse ($documents as $document) @if (auth()->user()->can('download-documents') || auth()->user()->can('delete-documents')) @endif @if ($showDocumentId === $document->id) Category: {{ $document->documentCategory->name }}

Comment: {{ $document->comment }}

@can('download-documents')
Download
@endcan @can('delete-documents')
Delete
@endcan {{ __('Close') }}
@endif @empty @endforelse
Document Comment Category | Upload Date Actions
@if ($document->comment) {{ strlen($document->comment) > 20 ? substr($document->comment, 0, 20) . '...' : $document->comment }} @else No comment @endif {{ $document->documentCategory->name }}
{{ $document->created_at->format('d/m/Y') }}
@can('download-documents')
Download
@endcan @can('delete-documents')
Delete
@endcan
No personal documents found.