{{-- Shared Tour Schedule form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $packages, $statuses. --}} @php $app = $item ?? null; $startDate = old('start_date', $app && $app->start_date ? $app->start_date->format('Y-m-d') : ''); $endDate = old('end_date', $app && $app->end_date ? $app->end_date->format('Y-m-d') : ''); @endphp