28 lines
706 B
PHP
28 lines
706 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\Attendance;
|
|
|
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
|
|
|
class LateSlipLogCollection extends ResourceCollection
|
|
{
|
|
public $collects = LateSlipLogResource::class;
|
|
|
|
public function toArray($request): array
|
|
{
|
|
return parent::toArray($request);
|
|
}
|
|
|
|
public function with($request): array
|
|
{
|
|
return [
|
|
'meta' => [
|
|
'total' => $this->resource->total() ?? null,
|
|
'per_page' => $this->resource->perPage() ?? null,
|
|
'current_page' => $this->resource->currentPage() ?? null,
|
|
'last_page' => $this->resource->lastPage() ?? null,
|
|
],
|
|
];
|
|
}
|
|
}
|