@extends('garage.layouts.app') @section('title', 'New warranty claim') @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-shield-check', 'title' => 'New warranty claim', 'subtitle' => $claimNo.' — vendor is set here for receive replacement.', ]) @endsection @php $isDiscountLayout = (old('resolution_type') === 'discount_adjustment'); $summaryResolution = old('resolution_type', 'wait_replacement'); $summaryCustomerId = old('customer_ledger_id'); $summarySaleId = old('garage_sale_id', $prefillSaleId); $summaryCustomer = $summaryCustomerId ? $customers->firstWhere('id', (int) $summaryCustomerId) : null; $summarySale = $summarySaleId ? $sales->firstWhere('id', (int) $summarySaleId) : null; @endphp @section('content')
@csrf
@include('garage.partials.split-form-detail-header', [ 'icon' => 'bi-shield-check', 'title' => 'New claim', 'numberLabel' => 'Claim #', 'numberName' => null, 'numberValue' => $claimNo, 'isCreate' => false, 'dateName' => 'claim_date', 'dateValue' => old('claim_date', date('Y-m-d')), 'historyUrl' => route('garage.claims.index'), 'closeUrl' => route('garage.claims.index'), 'saveLabel' => 'Save claim', ])
Status New
Resolution @include('garage.claims.partials.resolution-badge', ['resolution' => $summaryResolution])
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
Remarks
Claim lines
0
Quick entry: Customer → sale invoice → parts load automatically. Vendor auto-fills from purchase history.
Part Qty Serial Reason
@endsection @push('scripts') @include('garage.partials.parts-catalog-remote-script', ['partsBootstrap' => [], 'partsInStockOnly' => false]) @include('garage.claims.partials.form-scripts', [ 'initialLines' => [], 'prefillSaleId' => (int) $prefillSaleId, 'prefillCustomerId' => (int) ($prefillCustomerId ?? 0), 'syncSummaryBar' => true, ]) @endpush