@extends('garage.layouts.app') @section('title', 'New estimate') @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-file-earmark-text', 'title' => 'Estimate', 'subtitle' => 'Create a quote with parts and services from quick add, then review totals on the right.', ]) @endsection @section('content')
@csrf
@include('garage.estimates.partials.quick-add-panel')
@include('garage.partials.split-form-detail-header', [ 'icon' => 'bi-file-earmark-text', 'title' => 'Estimate detail', 'numberLabel' => 'Estimate no.', 'numberName' => 'estimate_number', 'numberValue' => old('estimate_number', $estimateNumber), 'isCreate' => true, 'dateName' => 'estimate_date', 'dateValue' => old('estimate_date', date('Y-m-d')), 'historyUrl' => route('garage.estimates.index'), 'closeUrl' => route('garage.estimates.index'), 'saveLabel' => 'Save estimate', 'showCustomerVehicleQuickAdd' => true, ])
@if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @include('garage.estimates.partials.detail-panel-fields', [ 'customers' => $customers, 'slots' => $slots ?? [], 'garageAdmin' => $garageAdmin, ])
{{-- gs-ro-detail-fields --}} @include('garage.estimates.partials.lines-panels')
@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