@extends('garage.layouts.app') @section('title', 'Warranty claims') @push('styles') @include('garage.claims.partials.claims-ui') @endpush @section('content')

Warranty claims

Track warranty replacements and discount adjustments — stock moves through claim purchase and sale entries.

New claim
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if($status || $search) Clear @endif
{{-- Desktop table --}}
@forelse($claims as $c) @php $canEditRow = !in_array($c->status, ['rejected', 'closed'], true); $canDeleteRow = $c->status !== 'closed'; @endphp @empty @endforelse
Claim # Date Customer Sale Resolution Status Actions
{{ $c->claim_no }} {{ $c->claim_date }} {{ $c->customer_name ?? '—' }} {{ $c->sale_number ?? '—' }} @include('garage.claims.partials.resolution-badge', ['resolution' => $c->resolution_type]) @include('garage.claims.partials.status-badge', ['status' => $c->status]) @include('garage.claims.partials.actions-dropdown', [ 'claimId' => $c->id, 'claimNo' => $c->claim_no, 'canEdit' => $canEditRow, 'canDelete' => $canDeleteRow, ])
No warranty claims yet. Create your first claim to get started.
@if($claims->hasPages())
{{ $claims->links() }}
@endif
{{-- Mobile cards --}}
@forelse($claims as $c) @php $canEditRow = !in_array($c->status, ['rejected', 'closed'], true); $canDeleteRow = $c->status !== 'closed'; @endphp
{{ $c->claim_no }}
@include('garage.claims.partials.status-badge', ['status' => $c->status]) @include('garage.claims.partials.actions-dropdown', [ 'claimId' => $c->id, 'claimNo' => $c->claim_no, 'canEdit' => $canEditRow, 'canDelete' => $canDeleteRow, ])
{{ $c->claim_date }} {{ $c->customer_name ?? '—' }} @if($c->sale_number){{ $c->sale_number }}@endif
@include('garage.claims.partials.resolution-badge', ['resolution' => $c->resolution_type])
@empty
No claims yet.
@endforelse @if($claims->hasPages())
{{ $claims->links() }}
@endif
@endsection