25 lines
767 B
PHP
25 lines
767 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\Attendance;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class StaffMonthResource extends JsonResource
|
|
{
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'filters' => $this['filters'] ?? [],
|
|
'sundays' => $this['sundays'] ?? [],
|
|
'no_school_days' => $this['noSchoolDays'] ?? [],
|
|
'sections' => $this['sections'] ?? [],
|
|
'admins' => $this['admins'] ?? [],
|
|
'schoolYears' => $this['schoolYears'] ?? [],
|
|
'currentYear' => $this['currentYear'] ?? null,
|
|
'isCurrentYear' => $this['isCurrentYear'] ?? true,
|
|
'missingYear' => $this['missingYear'] ?? false,
|
|
];
|
|
}
|
|
}
|