23 lines
771 B
PHP
23 lines
771 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\ClassPreparation;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class ClassPreparationPrintResource extends JsonResource
|
|
{
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'class_section_id' => $this->resource['class_section_id'] ?? null,
|
|
'class_section' => $this->resource['class_section'] ?? null,
|
|
'school_year' => $this->resource['school_year'] ?? null,
|
|
'semester' => $this->resource['semester'] ?? null,
|
|
'prep_items' => $this->resource['prep_items'] ?? [],
|
|
'adjustments' => $this->resource['adjustments'] ?? [],
|
|
'printed_at' => $this->resource['printed_at'] ?? null,
|
|
];
|
|
}
|
|
}
|