@extends('layouts.app') @section('title', 'Repair Report') @section('breadcrumb') @endsection @section('content') @include('reports.partials.date-filter') @if($overdue > 0)
{{ $overdue }} ticket(s) are overdue (past expected delivery).
@endif
{{ $totals->total_tickets }}
Total Tickets
৳{{ number_format($totals->total_revenue,0) }}
Revenue
৳{{ number_format($totals->total_collected,0) }}
Collected
৳{{ number_format($totals->total_due,0) }}
Outstanding
By Status
@foreach($byStatus as $bs) @php $rc=['pending'=>'warning','diagnosing'=>'info','in_progress'=>'primary','completed'=>'success','delivered'=>'success','cancelled'=>'secondary']; @endphp @endforeach
StatusCountRevenue
{{ ucfirst(str_replace('_',' ',$bs->status)) }} {{ $bs->count }} ৳{{ number_format($bs->revenue,0) }}
@if($byTechnician->count())
By Technician
@foreach($byTechnician as $bt) @endforeach
TechnicianTicketsRevenueCollected
{{ $bt->technician?->name ?? 'Unassigned' }} {{ $bt->count }} ৳{{ number_format($bt->revenue,0) }} ৳{{ number_format($bt->collected,0) }}
@endif
Repair Tickets ({{ $tickets->total() }})
@forelse($tickets as $t) @php $rc=['pending'=>'warning','diagnosing'=>'info','in_progress'=>'primary','completed'=>'success','delivered'=>'success','cancelled'=>'secondary']; @endphp @empty @endforelse
TicketCustomerDeviceTechnicianReceivedCostPaidStatus
{{ $t->ticket_no }}
{{ $t->customer->name }}
{{ $t->customer->phone }}
{{ $t->device_name }} {{ $t->technician?->name ?? '—' }} {{ $t->received_date->format('d M Y') }} ৳{{ number_format($t->actual_cost,0) }} ৳{{ number_format($t->paid_amount,0) }} {{ ucfirst(str_replace('_',' ',$t->status)) }}
No repair tickets in this period
@if($tickets->hasPages())@endif
@endsection