add more controller

This commit is contained in:
root
2026-03-10 00:48:32 -04:00
parent 5eeaec0257
commit 20ee70d153
151 changed files with 9481 additions and 8407 deletions
@@ -0,0 +1,21 @@
<?php
namespace App\Http\Resources\Teachers;
use Illuminate\Http\Resources\Json\JsonResource;
class TeacherAbsenceResource extends JsonResource
{
public function toArray($request): array
{
return [
'id' => (int) ($this['id'] ?? 0),
'user_id' => (int) ($this['user_id'] ?? 0),
'date' => (string) ($this['date'] ?? ''),
'semester' => $this['semester'] ?? null,
'school_year' => $this['school_year'] ?? null,
'status' => $this['status'] ?? null,
'reason' => $this['reason'] ?? null,
];
}
}