@php use App\Support\GarageLedgerLabel; $roNotes = $roNotes ?? old('notes'); if ($roNotes === null && !empty($repairOrder)) { $roNotes = trim(implode("\n\n", array_filter([ trim((string) ($repairOrder->complaint ?? '')), trim((string) ($repairOrder->internal_notes ?? '')), ]))); } if (!empty($repairOrder)) { $hiddenWhId = old('garage_warehouse_id', $repairOrder->garage_warehouse_id ?? $warehouseDefaults['garage_warehouse_id'] ?? null); $hiddenSecId = old('garage_warehouse_section_id', $repairOrder->garage_warehouse_section_id ?? $warehouseDefaults['garage_warehouse_section_id'] ?? null); } else { $hiddenWhId = old('garage_warehouse_id', $warehouseDefaults['garage_warehouse_id'] ?? null); $hiddenSecId = old('garage_warehouse_section_id', $warehouseDefaults['garage_warehouse_section_id'] ?? null); } $hasVehicle = ! empty(old('garage_vehicle_id', $selectedVehicleId ?? '')); @endphp
Estimate
Customer
Vehicle
@include('garage.partials.vehicle-select-field', ['vehicleFieldName' => 'garage_vehicle_id'])
Slot (optional)
@error('slot_id')
{{ $message }}
@enderror
@include('garage.partials.meter-reading-fields', [ 'meterValue' => old('meter_reading', isset($repairOrder) ? ($repairOrder->meter_reading ?? null) : null), 'nextMeterValue' => old('next_meter_reading', isset($repairOrder) ? ($repairOrder->next_meter_reading ?? null) : null), 'nextDateValue' => old('next_service_date', isset($repairOrder) ? ($repairOrder->next_service_date ?? null) : null), 'meterId' => 'roMeterReading', 'nextMeterId' => 'roNextMeterReading', 'nextDateId' => 'roNextServiceDate', 'hintId' => 'roMeterHint', 'rowId' => 'roMeterReadingRow', 'colClass' => '', 'hidden' => false, 'showRequiredMarks' => true, ]) @if(!empty($showLeadField))
Assigned To *
@endif
Status
Notes
@if(!empty($showWarehousePicker)) @include('garage.partials.warehouse-location-fields', [ 'fieldPrefix' => $warehouseFieldPrefix ?? 'roWh', 'warehouses' => $warehouseCtx['warehouses'], 'sectionsByWarehouse' => $warehouseCtx['sectionsByWarehouse'], 'defaultWarehouseId' => $warehouseCtx['defaultWarehouseId'] ?? null, 'defaultSectionId' => $warehouseCtx['defaultSectionId'] ?? null, 'applyDefaults' => $warehouseCtx['applyDefaults'] ?? false, 'useBootstrap' => true, 'gridClass' => 'row g-2 mb-2 grg-wh-location gs-ro-fields-row', 'colClass' => 'col-12 col-sm-6 col-lg-3', 'labelClass' => 'gpo-lbl', 'selectClass' => 'gpo-sel js-chosen js-chosen-compact', ]) @else @endif