add more controller
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user