@extends('layouts.tenant') @section('title', 'Repair Job ' . $repair->job_number) @section('page-title', 'Repair Job: ' . $repair->job_number) @section('content')

{{ $repair->job_number }} · {{ $repair->brand }} {{ $repair->model }}

Customer: {{ $repair->customer->name }} ({{ $repair->customer->mobile }})

Edit Order A4 Invoice 80mm Thermal
Current Status: {{ $repair->status_label }}
@php $steps = array_keys(\App\Models\RepairJob::STATUSES); $currentStep = $repair->stepper_index; @endphp @foreach(\App\Models\RepairJob::STATUSES as $key => $label) @php $i = array_search($key, $steps); $isDone = $i < $currentStep; $isActive = $i === $currentStep; @endphp
{{ $isDone ? '✓' : $i + 1 }}
{{ $label }}
@endforeach
Device Specifications & Passcode Security
Device Category / Brand
{{ $repair->device_category }} · {{ $repair->brand }}
Model Name
{{ $repair->model }}
@if($repair->imei)
IMEI Number {{ $repair->imei }}
@endif @if($repair->serial_number)
Serial Number {{ $repair->serial_number }}
@endif @if($repair->passcode)
Device Passcode / Lock Code (Encrypted)
••••••••
Masked on receipts for customer privacy.
@endif
Reported Complaint / Issue
{{ $repair->complaint }}
@if($repair->technician_notes)
Technician Diagnostic Notes
{{ $repair->technician_notes }}
@endif
Status Transition History Timeline
@forelse($repair->statusHistory as $hist)
{{ strtoupper($hist->old_status ?? 'Created') }} → {{ strtoupper($hist->new_status) }} Changed by {{ $hist->user->name ?? 'System' }} @if($hist->notes)({{ $hist->notes }})@endif
{{ $hist->created_at->format('d M Y, h:i A') }}
@empty
No previous status transitions recorded.
@endforelse
Record Repair Payment
@csrf
Customer Profile
{{ $repair->customer->initial }}
{{ $repair->customer->name }}
{{ $repair->customer->mobile }}
View Customer History
Financial Balance Breakdown
Estimated Repair Cost: {{ $currency_symbol }}{{ number_format($repair->estimated_cost, 2) }}
Advance Paid: {{ $currency_symbol }}{{ number_format($repair->advance_paid, 2) }}
@foreach($repair->payments as $pmt)
{{ ucfirst($pmt->payment_method) }} Payment: {{ $currency_symbol }}{{ number_format($pmt->amount, 2) }}
@endforeach
Balance Outstanding: {{ $currency_symbol }}{{ number_format($repair->balance_due, 2) }}
@endsection @push('scripts') @endpush