@extends('layouts.tenant') @section('title', 'Reports & Financial Analytics') @section('page-title', 'Financial & Operational Reports') @section('content')

{{ $tenant->name }}

{{ $tenant->address ?? 'Main Branch' }}
Phone: {{ $tenant->phone ?? 'N/A' }} | Email: {{ $tenant->email ?? 'N/A' }}

Financial & Operational Report

Period: {{ $startDate->format('d M Y') }} to {{ $endDate->format('d M Y') }}
Generated: {{ now()->format('d M Y, H:i') }}
@if($staffId)
Staff Filter Applied
@endif
Total Gross Revenue
{{ $currency_symbol }}{{ number_format($grandTotalRevenue, 2) }}
Assembly + Device Sales + Repairs
Cash & Payments Collected
{{ $currency_symbol }}{{ number_format($totalCashCollected, 2) }}
Actual Paid Amounts Received
Outstanding Receivables
{{ $currency_symbol }}{{ number_format($totalReceivables, 2) }}
Unpaid Balance / Credit Debt
Assembly POS Sales
{{ $currency_symbol }}{{ number_format($totalAssemblySales, 2) }}
{{ $totalAssemblyCount }} Invoices Completed
Device Sales
{{ $currency_symbol }}{{ number_format($totalDeviceSales, 2) }}
{{ $totalDeviceCount }} Serialized Devices Sold
Repair Estimated Revenue
{{ $currency_symbol }}{{ number_format($totalRepairRevenue, 2) }}
{{ $totalRepairs }} Total Jobs Logged
Repair Lifecycle & Status Breakdown
Total Logged
{{ $totalRepairs }}
In Progress
{{ $pendingRepairs }}
Ready/Repaired
{{ $completedRepairs }}
Delivered
{{ $deliveredRepairs }}
Estimated Repair Jobs Value: {{ $currency_symbol }}{{ number_format($totalRepairRevenue, 2) }}
Device Sales by Type
@forelse($deviceBreakdown as $db) @empty @endforelse
Device Type Units Sold Total Value
{{ $db->device_type }} {{ $db->count }} {{ $currency_symbol }}{{ number_format($db->total, 2) }}
No device sales recorded in this date range.
Payment Method Revenue Distribution
@forelse($assemblyPaymentBreakdown as $pm) @empty @endforelse
Payment Method Transaction Count Paid Amount Collected Total Invoice Value
{{ $pm->payment_method }} {{ $pm->count }} {{ $currency_symbol }}{{ number_format($pm->total_paid, 2) }} {{ $currency_symbol }}{{ number_format($pm->total_grand, 2) }}
No payment records found for this period.
Staff & Technician Sales Performance
@foreach($staffPerformance as $sp) @endforeach
Staff Member Role Assembly POS Sales Device Sales Repairs Count Total Combined Sales
{{ $sp['name'] }} {{ ucfirst($sp['role']) }} {{ $currency_symbol }}{{ number_format($sp['assembly_sales'], 2) }} {{ $currency_symbol }}{{ number_format($sp['device_sales'], 2) }} {{ $sp['repairs_count'] }} {{ $currency_symbol }}{{ number_format($sp['total_sales'], 2) }}
@endsection @push('styles') @endpush