form->opening_hours = collect(Day::cases()) ->mapWithKeys(fn (Day $day) => [ $day->value => [ 'open_time' => null, 'close_time' => null, ], ]) ->toArray(); $this->days = Day::cases(); } public function save(): void { $this->canOrAbort('create outlet'); $this->form->store(); $this->redirectRoute('studio.master.outlet.index', [ 'notification' => 'Outlet berhasil ditambahkan.', ], navigate: true); } public function render(): View { return view('livewire.studio.master.outlet.form', [ 'pageTitle' => 'Tambah Outlet', ]); } }