@extends('garage.layouts.app') @section('title', 'New sale') @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-shop-window', 'title' => 'Counter sale', 'subtitle' => 'Parts with available stock on the left. Customer sale bills a customer and vehicle; cash sale is walk-in with no customer on record.', ]) @endsection @section('content')
@csrf
Quick add
Loading… 0
Services · Press Enter to add first match 0
Packages · Select a package to add its parts/services 0
@include('garage.partials.split-form-detail-header', [ 'icon' => 'bi-receipt-cutoff', 'title' => 'Sale detail', 'numberLabel' => 'Sale no.', 'numberName' => 'sale_number', 'numberValue' => old('sale_number', $saleNumber), 'isCreate' => true, 'dateName' => 'sale_date', 'dateValue' => old('sale_date', date('Y-m-d')), 'historyUrl' => route('garage.sales.index'), 'closeUrl' => route('garage.dashboard'), 'saveLabel' => 'Complete sale', 'showCustomerVehicleQuickAdd' => true, ])
@if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @include('garage.sales.partials.detail-panel-fields', [ 'customers' => $customers, 'repairOrders' => $repairOrders ?? [], 'warehouseCtx' => $warehouseCtx, 'warehouseFieldPrefix' => 'saleWh', 'showRepairOrderPick' => true, ])
{{-- gs-ro-detail-fields --}} @include('garage.sales.partials.lines-panels')
@push('scripts') @include('garage.partials.meter-reading-script') @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.parts-catalog-remote-script') @include('garage.repair-orders.partials.quick-add-height-sync') @endpush @endsection