{{__('Welcome')}} - {{Auth::user()->name}}

{{ __('Officer Dashboard') }}

{{ __('Total Applications') }}
{{ number_format($applicationcount) }}
@php $prevTotal = $previousPeriodData['total'] ?? 0; $changePercent = $prevTotal > 0 ? round((($applicationcount - $prevTotal) / $prevTotal) * 100, 1) : 0; @endphp {{ abs($changePercent) }}% vs previous
{{ __('Approved') }}
{{ number_format($approvedApplication) }}
Approval Rate: {{ $approvalRate }}%
{{ __('Rejected') }}
{{ number_format($rejectedApplication) }}
{{ $applicationcount > 0 ? round(($rejectedApplication/$applicationcount)*100, 1) : 0 }}% of total
{{ __('Pending') }}
{{ number_format($pendingApplication) }}
Needs attention
{{ __('Appointed') }}
{{ number_format($appointedApplication) }}
Completed process
Application Status Distribution
Application Trends
Latest Applications
@forelse($latestApplications as $application) @empty @endforelse
Applicant Service Date Status
{{ $application->user->name ?? 'N/A' }} {{ $application->service->getLocalized('name') ?? 'Unknown' }} {{ $application->created_at->format('M d, Y') }} {{ ucfirst($application->status) }}
No applications found
Top Services by Volume
@foreach($topServices as $service) @endforeach
Service Applications Share
{{ $service->service->getLocalized('name') ?? 'Unknown' }} {{ $service->total }}
{{ $applicationcount > 0 ? round(($service->total / $applicationcount) * 100, 1) : 0 }}%
Online Applications

{{ number_format(array_sum($onlineRequests)) }}

Total submitted online
@php // Compare current period to previous $onlineTotal = array_sum($onlineRequests); $physicalTotal = array_sum($physicalRequests); $trendOnline = $onlineTotal >= $physicalTotal ? 'up' : 'down'; $onlineDiffPercent = $physicalTotal > 0 ? round((($onlineTotal - $physicalTotal) / max($physicalTotal, 1)) * 100, 1) : 0; @endphp
@if($trendOnline === 'up')

{{ $onlineDiffPercent }}%

@else

{{ abs($onlineDiffPercent) }}%

@endif
Physical Applications

{{ number_format(array_sum($physicalRequests)) }}

Total submitted physically
@php $trendPhysical = $physicalTotal >= $onlineTotal ? 'up' : 'down'; $physicalDiffPercent = $onlineTotal > 0 ? round((($physicalTotal - $onlineTotal) / max($onlineTotal, 1)) * 100, 1) : 0; @endphp
@if($trendPhysical === 'up')

{{ $physicalDiffPercent }}%

@else

{{ abs($physicalDiffPercent) }}%

@endif
@if(!empty($recommendations))
Recommendations
{{ count($recommendations) }} Suggestions
@foreach($recommendations as $rec)

{{ $rec['message'] }}

Next Step: {{ $rec['action'] }}
@endforeach
@endif