@php
$installation = $installation ?? null;
$preset = $preset ?? ['customer_id' => null, 'vehicle_id' => null, 'invoice_id' => null];
$selectedCustomer = old('customer_id', $installation?->customer_id ?? $preset['customer_id']);
$selectedVehicle = old('vehicle_id', $installation?->vehicle_id ?? $preset['vehicle_id']);
$selectedDevices = old('device_units', $installation?->items->pluck('device_unit_id')->all() ?? []);
@endphp
يتم حجز الأجهزة المختارة تلقائياً، وتتحول إلى «مركّب» عند إنهاء الأمر.