@extends('garage.layouts.app') @section('title', 'Edit 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-pencil-square', 'title' => 'Edit estimate', 'subtitle' => 'Update parts and services from quick add; the page stays fixed while line tables scroll inside their panels.', ]) @endsection @section('content')
@csrf @method('PUT')
@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.', 'numberValue' => $estimate->estimate_number, 'dateName' => 'estimate_date', 'dateValue' => old('estimate_date', $estimate->estimate_date), 'historyUrl' => route('garage.estimates.index'), 'closeUrl' => route('garage.estimates.show', $estimate->id), 'saveLabel' => 'Update 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, 'estimate' => $estimate, ])
@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