@extends('layouts.dashboard') @section('title', 'Document Dashboard') @section('header-title', 'Document Dashboard') @section('content')

Document Workflow Dashboard

Track documents through review, revision, and approval.

{{-- Upload Document --}}
@foreach ([ ['Total Documents', $totalProposals, 'text-blue-600'], ['Pending', $pendingCount, 'text-amber-600'], ['Approved', $approvedCount, 'text-emerald-600'], ['Revision Requested', $revisionCount, 'text-violet-600'], ['Rejected', $rejectedCount, 'text-rose-600'], ] as [$label, $value, $color])

{{ $label }}

{{ $value }}

@endforeach

Recent Documents

Current document workflow activity.

View all
@foreach(['S.No', 'Document', 'File', 'Status', 'Created By', 'Current Handler', 'Action'] as $heading)@endforeach @forelse($proposals as $proposal) @empty @endforelse
{{ $heading }}
{{ $proposals->firstItem() + $loop->index }} {{ $proposal->document_title ?: $proposal->proposal_number }}{{ $proposal->proposal_number }} {{ $proposal->document_original_name ?: 'No document' }}{{ $proposal->document_original_name ? pathinfo($proposal->document_original_name, PATHINFO_EXTENSION) : 'N/A' }} {{ ucfirst(str_replace('_', ' ', $proposal->status)) }} {{ $proposal->createdBy?->name ?? 'N/A' }}{{ $proposal->created_at?->format('d-m-Y H:i') }} {{ $proposal->currentHandler?->name ?? 'Completed / Unassigned' }} View
No documents available.
@if($proposals->hasPages())
{{ $proposals->links() }}
@endif
@endsection