update controllers logic
This commit is contained in:
@@ -14,8 +14,10 @@ class ClassProgressReportResource extends JsonResource
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'teacher_id' => $this->teacher_id,
|
||||
'teacher_name' => $this->teacher_name
|
||||
?? trim((string) ($this->teacher?->firstname ?? '').' '.(string) ($this->teacher?->lastname ?? '')),
|
||||
'class_section_id' => $this->class_section_id,
|
||||
'class_section_name' => $this->classSection?->class_section_name,
|
||||
'class_section_name' => $this->class_section_name ?? $this->classSection?->class_section_name,
|
||||
'week_start' => $this->week_start?->format('Y-m-d'),
|
||||
'week_end' => $this->week_end?->format('Y-m-d'),
|
||||
'subject' => $this->subject,
|
||||
|
||||
Reference in New Issue
Block a user