$this->id, 'day_of_week' => $this->day_of_week, 'day_index' => $this->day_of_week ? ShiftDayEnum::from($this->day_of_week)->carbonDay() : null, 'date' => $this->date ? verta($this->date)->format('%Y/%m/%d') : null, 'date_raw' => $this->date?->format('Y-m-d'), 'start_time' => substr($this->start_time, 0, 5), 'end_time' => substr($this->end_time, 0, 5), 'is_active' => $this->is_active, ]; } }