<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:05:31
 namespace App\Http\Resources\Admin; use Illuminate\Http\Resources\Json\JsonResource; class EmployeeResource extends JsonResource { public function toArray($request) { return ["\x69\x64" => $this->id, "\145\155\160\154\157\171\145\x65\137\143\x6f\x64\x65" => $this->employee_code, "\x6c\141\x73\164\137\x6e\141\155\145" => $this->last_name, "\146\x69\x72\163\164\x5f\x6e\141\155\x65" => $this->first_name, "\x6c\141\x73\x74\x5f\x6e\x61\155\145\137\153\x61\156\x61" => $this->last_name_kana, "\x66\x69\x72\x73\164\137\x6e\x61\x6d\145\137\153\141\156\x61" => $this->first_name_kana, "\x66\x75\154\x6c\137\x6e\x61\x6d\x65" => $this->full_name, "\146\165\x6c\154\137\156\141\155\145\x5f\153\x61\156\x61" => $this->full_name_kana, "\x70\x72\145\146\145\162\162\x65\144\137\156\x61\155\145" => $this->preferred_name, "\144\141\x74\x65\137\157\x66\137\142\151\x72\164\150" => $this->date_of_birth, "\x67\x65\x6e\144\145\x72" => $this->gender, "\152\157\x69\156\x5f\144\141\x74\145" => $this->join_date, "\144\x65\x70\x61\x72\164\155\x65\156\x74\x5f\151\x64" => $this->department_id, "\x64\x65\x70\x61\162\164\155\x65\156\164" => new DepartmentResource($this->whenLoaded("\144\145\160\141\162\164\155\x65\x6e\164")), "\160\x6f\163\151\164\x69\157\x6e\x5f\151\144" => $this->position_id, "\160\157\x73\151\164\x69\157\x6e" => new PositionResource($this->whenLoaded("\160\x6f\x73\x69\164\151\x6f\156")), "\x6c\x65\166\145\x6c\x5f\151\x64" => $this->level_id, "\x6c\145\x76\145\154" => new LevelResource($this->whenLoaded("\154\x65\x76\x65\154")), "\x73\x61\x6c\x61\162\x79\137\147\162\141\x64\145" => $this->salary_grade, "\x65\155\x70\x6c\x6f\171\145\x65\x5f\164\x79\x70\145" => $this->employee_type, "\145\x6d\x70\x6c\x6f\171\155\x65\156\x74\x5f\x73\164\141\x74\x75\163" => $this->employment_status, "\x72\145\x73\x69\x67\156\x65\144\137\x64\141\x74\x65" => $this->resigned_date, "\162\145\x73\x69\x67\156\x65\144\x5f\162\145\x61\163\157\x6e" => $this->resigned_reason]; } protected function canViewSensitiveInfo() { return auth()->user()->hasRole(["\141\x64\x6d\x69\x6e", "\155\141\x6e\x61\x67\x65\x72"]); } }