@extends('layouts.admin') @section('title', 'Validate: ' . $document->title) @section('page-title', 'Document Validation') @section('page-subtitle', $document->title) @section('content')
Back to Pending
{{-- Left: Document Preview & Info --}}
{{-- Document Info --}}

Document Information

{{ $document->statusLabel() }}
@php $rows = [ 'Title' => $document->title, 'Document Type' => $document->documentType->name, 'Client Name' => $document->user->name, 'Client Email' => $document->user->email, 'Original File' => $document->original_filename, 'File Type' => strtoupper($document->original_mime_type), 'Submitted' => $document->submitted_at?->format('d M Y H:i'), ]; @endphp @foreach($rows as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
{{-- Previous Validations --}} @if($document->validations->isNotEmpty())

Previous Validation Records

@foreach($document->validations as $v)
{{ $v->decision === 'rejected' ? 'Rejected' : 'Approved' }} by {{ $v->validator->name }} on {{ $v->validated_at->format('d M Y') }} @if($v->comments) — "{{ $v->comments }}"@endif
@endforeach
@endif
{{-- Right: Validation Actions --}}
{{-- Mark Under Review --}} @if($document->isPending())

Start Review

@csrf
@endif {{-- Approve --}}

Approve Document

This will generate a QR code, authentication footer, and issue a certificate.

@csrf
{{-- Reject --}}

Reject Document

Provide a clear reason. The client will see this.

@csrf
@error('comments')

{{ $message }}

@enderror
@endsection