@extends('layouts.admin') @section('title', 'Repairs & Warranty Claims') @section('subtitle', 'Track customer returns, supplier repair processes, and pickup status') @section('actions') ➕ Create Claim Ticket @endsection @section('content')
{{-- Search and Filters --}}
{{-- Table --}}
@forelse($claims as $claim) @php $statusClasses = [ 'received' => 'bg-slate-100 text-slate-700 border border-slate-200', 'sent_to_supplier' => 'bg-yellow-50 text-yellow-700 border border-yellow-200', 'returned_from_supplier' => 'bg-blue-50 text-blue-700 border border-blue-200', 'completed' => 'bg-green-50 text-green-700 border border-green-200' ]; $statusLabels = [ 'received' => 'Received from Customer', 'sent_to_supplier' => 'Sent to Supplier', 'returned_from_supplier' => 'Returned from Supplier', 'completed' => 'Claim Completed' ]; @endphp @empty @endforelse
Customer & Contact Product / IMEI Supplier Handler Status Dates Actions

{{ $claim->customer_name }}

{{ $claim->customer_phone ?? 'No Phone' }}

@if($claim->invoice) Inv: #{{ $claim->invoice->invoice_number }} @endif

{{ $claim->product_name }}

IMEI: {{ $claim->imei_numbers }}

Fault: {{ Str::limit($claim->issue_description, 50) }}

@if($claim->is_replaced)
🔄 Replaced: {{ $claim->replacementProduct->name ?? 'Product' }} @if($claim->replacement_imei)
IMEI: {{ $claim->replacement_imei }} @endif
Qty: {{ (float)$claim->replacement_qty }} ({{ $claim->replacementBranch->name ?? 'Branch' }})
@endif
@if($claim->supplier)

{{ $claim->supplier->name }}

{{ $claim->supplier->company_name }}

@else In-house Repair @endif
{{ $statusLabels[$claim->status] ?? ucfirst($claim->status) }}

Logged: {{ $claim->created_at->format('Y-m-d') }}

@if($claim->supplier_sent_date)

Sent: {{ $claim->supplier_sent_date->format('Y-m-d') }}

@endif @if($claim->supplier_return_date)

Returned: {{ $claim->supplier_return_date->format('Y-m-d') }}

@endif
✏️
@csrf @method('DELETE')

🔧

No repairs or claims found

@if($claims->hasPages())
{{ $claims->links() }}
@endif
@endsection