'datetime:Y-m-d H:i', 'end_at' => 'datetime:Y-m-d H:i', ]; public function modelFilter() { return \App\Admin\Filters\HolidayApplyFilter::class; } public function canUpdate(): bool { return in_array($this->workflow?->check_status, [CheckStatus::None, CheckStatus::Fail, CheckStatus::Cancel]); } public function store() { return $this->belongsTo(Store::class, 'store_id'); } public function employee() { return $this->belongsTo(Employee::class, 'employee_id'); } public function type() { // holiday_type return $this->belongsTo(Keyword::class, 'type_id', 'key'); } }