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