@extends('garage.layouts.app') @section('title', 'Edit sale '.$sale->sale_number) @push('styles') @include('shared.garage-purchase-order-ui-styles') @include('shared.garage-split-form-ui-styles') @endpush @section('navbar_lead') @include('garage.partials.split-form-navbar-lead', [ 'icon' => 'bi-pencil-square', 'title' => 'Edit sale', 'subtitle' => 'Draft or held sales only. Completed sales should be deleted and recreated to keep stock accurate.', ]) @endsection @section('content')
@csrf @method('PUT')
Quick add
Loading… 0
Services · Press Enter to add first match 0
Type to search packages. 0
@include('garage.partials.split-form-detail-header', [ 'icon' => 'bi-receipt-cutoff', 'title' => 'Sale detail', 'numberLabel' => 'Sale no.', 'numberValue' => $sale->sale_number, 'dateName' => 'sale_date', 'dateValue' => old('sale_date', $sale->sale_date), 'closeUrl' => route('garage.sales.show', $sale->id), 'saveLabel' => 'Save changes', 'showCustomerVehicleQuickAdd' => true, ])
@include('garage.sales.partials.detail-panel-fields', [ 'sale' => $sale, 'customers' => $customers, 'warehouseCtx' => $warehouseCtx ?? [], 'warehouseFieldPrefix' => 'saleWhEdit', 'showRepairOrderPick' => false, ])
{{-- gs-ro-detail-fields --}} @include('garage.sales.partials.lines-panels', ['serviceTimeColumn' => true])
@push('scripts') @include('garage.partials.customer-vehicle-link-script') @include('garage.partials.customer-vehicle-quick-add-script') @include('garage.partials.vehicle-history-modal-script') @include('garage.partials.ledger-label-helpers') @include('garage.partials.meter-reading-script') @include('garage.partials.parts-catalog-remote-script') @include('garage.repair-orders.partials.quick-add-height-sync') @endpush @endsection