@extends('layouts.app') @section('title', 'Reports & Analytics') @section('content') @php($maxDaily = max(1, (int) $daily->max('applications')))

Decision intelligence

Reports & Analytics

Applications, services, staff, finance, HR and renewals from one trusted dataset.

@if(auth()->user()->hasPermission('reports.export'))@endif
A

Applications

{{ number_format($summary['applications']) }}

{{ $summary['completion_rate'] }}% completed

AED

Customer Collection

AED {{ number_format($summary['collection'], 2) }}

Successful payments

R

Service Revenue

AED {{ number_format($summary['service_revenue'], 2) }}

Excluding government fees

G

Government Fees

AED {{ number_format($summary['government_fees'], 2) }}

Pass-through amount

O

Outstanding

AED {{ number_format($summary['outstanding'], 2) }}

Open invoice balances

Application Volume

{{ $from->format('d M Y') }} to {{ $to->format('d M Y') }}

{{ $summary['completed'] }} completed · {{ $summary['returned'] }} returned · {{ $summary['rejected'] }} rejected
@foreach($daily as $day)
{{ $day['applications'] }}
@endforeach

Renewal Performance

Opportunity-to-application conversion

{{ $summary['renewal_conversion'] }}%
{{ $summary['renewal_converted'] }}of {{ $summary['renewals'] }} converted
{{ $summary['renewals'] }}Opportunities
AED {{ number_format($summary['vat'],2) }}VAT tracked

Service Performance

Revenue remains separated from government pass-through fees.

@forelse($servicePerformance as $row)@empty@endforelse
ServiceApplicationsCompletedService RevenueGovernment Fees
{{ $row['name'] }}{{ $row['applications'] }}{{ $row['completed'] }}AED {{ number_format($row['revenue'],2) }}AED {{ number_format($row['government'],2) }}
SNo service activity in this range

Choose a wider date range or create applications.

Staff Performance

Assigned workload, completion, returns and SLA risk.

@forelse($staffPerformance as $row)@empty@endforelse
EmployeeAssignedCompletedReturnedSLA Risk
{{ $row['name'] }}{{ $row['assigned'] }}{{ $row['completed'] }}{{ $row['returned'] }}{{ $row['sla_risk'] }}
PNo assigned activity

Staff metrics appear after applications are assigned.

@if(auth()->user()->hasPermission('employees.view') || auth()->user()->hasPermission('payroll.salary.view'))

HR & Payroll Summary

Role-aware employee, attendance, leave, payroll, document, gratuity and loan totals.

Employee directory
Active employees{{ $hrSummary['active_employees'] }}
Present records{{ $hrSummary['present'] }}
Absent records{{ $hrSummary['absent'] }}
Late records{{ $hrSummary['late'] }}
Overtime{{ intdiv($hrSummary['overtime_minutes'],60) }}h {{ $hrSummary['overtime_minutes']%60 }}m
Documents due{{ $hrSummary['documents_due'] }}
@if($hrSummary['payroll_net'] !== null)
Payroll grossAED {{ number_format($hrSummary['payroll_gross'],2) }}
Payroll deductionsAED {{ number_format($hrSummary['payroll_deductions'],2) }}
Payroll netAED {{ number_format($hrSummary['payroll_net'],2) }}
Active loansAED {{ number_format($hrSummary['loan_balance'],2) }}
Approved gratuityAED {{ number_format($hrSummary['gratuity_approved'],2) }}
@endif
@endif
@endsection