@extends('admin.layouts.app') @section('title', 'Reports & Analytics') @section('content')

Customer Reports

Total Customers{{ $customerReport['total'] }}
Active{{ $customerReport['active'] }}
Inactive{{ $customerReport['inactive'] }}
@forelse($customerReport['by_type'] as $type => $total)@empty@endforelse
Customer TypeTotal
{{ $type ?: 'Not specified' }}{{ $total }}
No customer data.

Lead Reports

Total Leads{{ $leadReport['total'] }}
Open{{ $leadReport['open'] }}
Converted{{ $leadReport['converted'] }}
Rejected{{ $leadReport['rejected'] }}
@foreach($leadReport['by_status'] as $status => $total)@endforeach
StatusTotal
{{ $status }}{{ $total }}
@foreach($leadReport['by_enquiry'] as $type => $total)@endforeach
Enquiry TypeTotal
{{ $type ?: 'Not specified' }}{{ $total }}

Service Reports

Total Bookings{{ $serviceReport['total'] }}
Completed{{ $serviceReport['completed'] }}
Cancelled{{ $serviceReport['cancelled'] }}
@foreach($serviceReport['by_status'] as $status => $total)@endforeach
Service StatusTotal
{{ $status }}{{ $total }}

Revenue Reports

Total Invoiced₹{{ number_format($revenueReport['invoiced'],2) }}
Revenue Received₹{{ number_format($revenueReport['received'],2) }}
Outstanding₹{{ number_format($revenueReport['outstanding'],2) }}
GST Amount₹{{ number_format($revenueReport['gst'],2) }}

Technician Performance Reports

@foreach($technicianReport as $technician)@php($rate = $technician->assignments_count > 0 ? round(($technician->completed_jobs_count / $technician->assignments_count) * 100, 1) : 0)@endforeach
TechnicianTotal JobsCompletedCancelledCompletion RateAvailability
{{ $technician->technician_name }}{{ $technician->assignments_count }}{{ $technician->completed_jobs_count }}{{ $technician->cancelled_jobs_count }}{{ $rate }}%{{ $technician->availability }}

Payment Reports

Online Received₹{{ number_format($paymentReport['online_received'],2) }}
AMC Received₹{{ number_format($paymentReport['amc_received'],2) }}
Total Recorded₹{{ number_format($paymentReport['total_received'],2) }}
Pending Invoices{{ $paymentReport['pending_invoices'] }}

AMC Reports

Total Contracts{{ $amcReport['total'] }}
Active Contracts{{ $amcReport['active'] }}
Renewals in 30 Days{{ $amcReport['renewals'] }}
Scheduled Visits{{ $amcReport['scheduled_visits'] }}
Outstanding₹{{ number_format($amcReport['outstanding'],2) }}

Platform Report

Customers{{ $platformReport['customers'] }}
Leads{{ $platformReport['leads'] }}
Bookings{{ $platformReport['bookings'] }}
Active Technicians{{ $platformReport['technicians'] }}
Service Completion{{ $platformReport['completion_rate'] }}%
Lead Conversion{{ $platformReport['lead_conversion_rate'] }}%
@endsection