{{-- Shared Hotel Booking form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $hotels, $customers, $rooms, $statuses. --}} @php $app = $item ?? null; $checkIn = old('check_in', $app && $app->check_in ? $app->check_in->format('Y-m-d') : ''); $checkOut = old('check_out', $app && $app->check_out ? $app->check_out->format('Y-m-d') : ''); @endphp