fix(forms): hide inactive food event dates

This commit is contained in:
2026-09-14 15:00:23 -03:00
parent 61314d5166
commit 91022c5897
2 changed files with 50 additions and 1 deletions

View File

@@ -27,7 +27,11 @@ class FoodFormService
->keyBy('codigo');
return [
'event_dates' => $tenant->eventDates()->with('validityTime')->get(),
'event_dates' => $tenant->eventDates()
->whereNull('rescheduled_to_event_date_id')
->whereNull('suspended_at')
->with('validityTime')
->get(),
'schedules' => $attributes->get('horario')?->options ?? new Collection,
'services' => $attributes->get('servicio')?->options ?? new Collection,
];