@extends('layouts.admin') @section('title') Inspection Reports | Inspectorate @endsection @section('content')

Inspection Reports

Total Requests

{{ $totalRequests }}

Approved

{{ $approvedRequests }}

Rejected

{{ $rejectedRequests }}

Pending

{{ $pendingRequests }}

Monthly Statistics (Last 12 Months)

@if($monthlyStats->count() > 0)
@foreach($monthlyStats as $stat) @endforeach
Month Total Requests Approved Rejected Approval Rate
{{ date('F Y', strtotime($stat->year . '-' . $stat->month . '-01')) }}
{{ $stat->total }} {{ $stat->approved }} {{ $stat->rejected }} @if($stat->total > 0) {{ number_format(($stat->approved / $stat->total) * 100, 1) }}% @else 0% @endif
@else
No data available

Reports will be available once requests start coming in.

@endif

Overall Statistics

Approval Rate
{{ number_format($approvalRate, 1) }}%
Request Types Distribution
Document Upload {{ $documentUploads }}
Field Visit {{ $fieldVisits }}
Both {{ $bothTypes }}
@endsection