@extends('layouts.admin') @section('title', 'Documents') @section('page-title', match($activeTab){ 'pending'=>'Pending Validation', 'approved'=>'Approved Documents', 'rejected'=>'Rejected Documents', default=>'All Documents' }) @section('content')
{{-- Filters --}}
@if(!$activeTab) @endif Clear
{{-- Table --}}
@if($documents->isEmpty())
No documents found.
@else
@foreach($documents as $doc) @endforeach
Document Client Type Submitted Status Actions
{{ $doc->title }}

{{ $doc->original_filename }}

{{ $doc->user->name }}

{{ $doc->user->email }}

{{ $doc->documentType->name }} {{ $doc->submitted_at?->format('d M Y') }} {{ $doc->statusLabel() }}
@if(in_array($doc->status,['pending','under_review'])) Review @endif
@if($documents->hasPages())
{{ $documents->links() }}
@endif @endif
@endsection