first commit

This commit is contained in:
Ariyutta
2026-08-07 10:47:09 +07:00
commit 1c094fbe7f
11630 changed files with 1580900 additions and 0 deletions
@@ -0,0 +1,30 @@
<?php
namespace App\Http\Resources\Jabatan;
use Illuminate\Http\Resources\Json\JsonResource;
class JabatanFungsionalResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
{
if ($this->fungsional === null) {
return null;
}
return [
'month' => month($this->bulan),
'id' => $this->fungsional?->id,
'name' => $this->fungsional?->nama,
'status_pns' => $this?->status_pns ?? 'PNS',
'golongan' => $this->golongan,
'status' => $this->status_jf,
];
}
}