<?php

namespace App\Http\Resources\Attendance;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class AdminAttendanceResource extends JsonResource
{
    public function toArray(Request $request): array
    {
        return [
            'semester' => $this['semester'] ?? null,
            'school_year' => $this['school_year'] ?? null,
            'date' => $this['date'] ?? null,
            'admins_grid' => $this['admins_grid'] ?? [],
        ];
    }
}