Files
alrahma_sunday_school_api/app/Http/Resources/Reports/LateSlipLogResource.php
T
2026-03-10 00:48:32 -04:00

25 lines
784 B
PHP

<?php
namespace App\Http\Resources\Reports;
use Illuminate\Http\Resources\Json\JsonResource;
class LateSlipLogResource extends JsonResource
{
public function toArray($request): array
{
return [
'id' => (int) ($this['id'] ?? 0),
'school_year' => (string) ($this['school_year'] ?? ''),
'semester' => (string) ($this['semester'] ?? ''),
'student_name' => (string) ($this['student_name'] ?? ''),
'date' => $this['date'] ?? null,
'time_in' => $this['time_in'] ?? null,
'grade' => $this['grade'] ?? null,
'reason' => $this['reason'] ?? null,
'admin_name' => $this['admin_name'] ?? null,
'printed_at' => $this['printed_at'] ?? null,
];
}
}