@extends('garage.layouts.app') @section('title', 'Edit claim '.$claim->claim_no) @push('styles') @include('shared.garage-purchase-order-ui-styles') @include('shared.garage-split-form-ui-styles') @include('garage.claims.partials.form-page-styles') @endpush @section('navbar_lead') @include('garage.partials.split-form-navbar-lead', [ 'icon' => 'bi-pencil-square', 'title' => 'Edit warranty claim', 'subtitle' => $claim->claim_no.' — vendor is set here for receive replacement.', ]) @endsection @php $isDiscountLayout = (old('resolution_type', $claim->resolution_type) === 'discount_adjustment'); @endphp @section('content')
@csrf @method('PUT')
@include('garage.partials.split-form-detail-header', [ 'icon' => 'bi-shield-check', 'title' => 'Edit claim', 'numberLabel' => 'Claim #', 'numberName' => null, 'numberValue' => $claim->claim_no, 'isCreate' => false, 'dateName' => 'claim_date', 'dateValue' => old('claim_date', $claim->claim_date), 'historyUrl' => route('garage.claims.show', $claim->id), 'closeUrl' => route('garage.claims.show', $claim->id), 'saveLabel' => 'Update claim', ])
Status @include('garage.claims.partials.status-badge', ['status' => $claim->status])
Resolution @include('garage.claims.partials.resolution-badge', ['resolution' => $claim->resolution_type])
Customer {{ $claim->customer_name ?? '—' }}
@if($claim->sale_number)
Sale {{ $claim->sale_number }}
@endif
@if($hasMovements)
Stock movements exist — only header fields can change. Lines are locked.
@endif
Claim information
@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @if(session('error'))
{{ session('error') }}
@endif
Customer
Sale invoice
Shows completed invoices for the selected customer.
Vendor (auto from part)
Resolution
@if(!$canEditLines) @endif
Remarks
Claim lines @if($canEditLines)
0
@endif
@if($canEditLines)
Quick entry: Customer → sale invoice → parts from that invoice only.
Part Qty Serial Reason
@else
@foreach($items as $it) @endforeach
PartQtySerial
{{ $it->part_name }}@if($it->part_code) · {{ $it->part_code }}@endif {{ $it->qty }} {{ $it->serial_no ?? '—' }}
@endif
@endsection @if($canEditLines) @push('scripts') @include('garage.partials.parts-catalog-remote-script', ['partsBootstrap' => [], 'partsInStockOnly' => false]) @include('garage.claims.partials.form-scripts', [ 'initialLines' => $claimItemsJson, 'prefillSaleId' => (int) ($prefillSaleId ?? $claim->garage_sale_id ?? 0), 'prefillCustomerId' => (int) ($prefillCustomerId ?? $claim->customer_ledger_id ?? 0), ]) @endpush @else @push('scripts') @endpush @endif