<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:53
 namespace App\Http\Controllers\Admin; use App\EducationHistory; use App\Http\Controllers\Controller; use App\Http\Resources\Admin\EducationHistoryResource; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Validator; class EducationHistoryController extends Controller { const ITEM_PER_PAGE = 100; public function index(Request $request) { goto l1PwR; G4FTI: $vPuLV->where("\146\162\x6f\x6d\137\x64\x61\x74\145", "\x3e\x3d", $reZ5X); Nk60K: if (empty($qcZfh)) { goto caYhu; } goto M2pyG; xXzfU: $reZ5X = Arr::get($qBt9X, "\146\x72\157\155\x5f\144\x61\x74\x65", ''); $qcZfh = Arr::get($qBt9X, "\x74\x6f\x5f\x64\x61\164\x65", ''); if (empty($xMreZ)) { goto wWaWZ; } goto QLmyV; PbeQ3: $vPuLV->where("\145\x6d\x70\x6c\157\171\145\x65\137\x69\x64", $Gwil3); VCpcj: if (empty($OUNpb)) { goto d71we; } goto HKWg0; HKWg0: $vPuLV->where("\x65\144\165\143\141\x74\151\157\156\137\154\145\x76\x65\x6c\x5f\x69\144", $OUNpb); d71we: if (empty($reZ5X)) { goto Nk60K; } goto G4FTI; bEj8U: return EducationHistoryResource::collection($vPuLV->paginate($jrDoY)); goto sYpAD; QLmyV: $vPuLV->where(function ($So1gL) use($xMreZ) { $So1gL->whereHas("\x65\x6d\160\x6c\157\171\x65\x65", function ($BLSfR) use($xMreZ) { $BLSfR->where("\146\x75\x6c\154\137\156\x61\155\145", "\x4c\x49\113\105", "\x25" . $xMreZ . "\x25")->orWhere("\x65\155\160\154\x6f\x79\145\145\x5f\x63\x6f\x64\145", "\114\111\113\105", "\x25" . $xMreZ . "\x25"); })->orWhere("\x73\143\x68\157\157\154\x5f\156\141\x6d\x65", "\x4c\x49\113\x45", "\x25" . $xMreZ . "\x25")->orWhere("\x6d\141\152\157\x72", "\x4c\111\113\x45", "\x25" . $xMreZ . "\x25")->orWhere("\x63\x65\x72\164\151\x66\151\143\141\164\145\x5f\156\x75\x6d\x62\x65\x72", "\114\x49\113\105", "\45" . $xMreZ . "\x25"); }); wWaWZ: if (empty($Gwil3)) { goto VCpcj; } goto PbeQ3; JuKp2: $xMreZ = Arr::get($qBt9X, "\x6b\x65\171\x77\157\x72\144", ''); $Gwil3 = Arr::get($qBt9X, "\x65\x6d\x70\x6c\x6f\171\145\145\x5f\x69\x64", ''); $OUNpb = Arr::get($qBt9X, "\145\144\x75\143\141\x74\151\157\156\x5f\x6c\145\166\145\154\x5f\151\x64", ''); goto xXzfU; M2pyG: $vPuLV->where("\164\157\137\x64\141\x74\x65", "\x3c\75", $qcZfh); caYhu: $vPuLV->with(["\x65\155\x70\x6c\157\x79\145\x65\x3a\151\144\x2c\x65\155\x70\x6c\157\171\145\x65\x5f\143\157\x64\x65\x2c\x66\x69\x72\163\164\x5f\156\141\x6d\145\54\x6c\x61\x73\164\137\156\x61\x6d\x65\54\x66\x75\x6c\154\137\156\x61\155\x65\54\146\x69\162\x73\164\137\x6e\x61\x6d\x65\137\153\141\156\141\54\x6c\141\x73\164\x5f\156\141\x6d\145\x5f\x6b\x61\156\x61\x2c\146\x75\154\x6c\137\x6e\x61\x6d\x65\x5f\153\141\156\x61", "\x65\x64\165\x63\141\164\151\157\x6e\114\x65\166\x65\x6c\x3a\151\144\x2c\156\141\155\145\x2c\x63\157\144\x65\54\160\x6f\x69\x6e\x74\x5f\166\x61\154\165\145"])->orderBy("\151\x64", "\144\x65\x73\x63"); goto bEj8U; l1PwR: $qBt9X = $request->all(); $vPuLV = EducationHistory::query(); $jrDoY = Arr::get($qBt9X, "\154\151\155\151\x74", static::ITEM_PER_PAGE); goto JuKp2; sYpAD: } public function all(Request $request) { $qBt9X = $request->all(); $jrDoY = Arr::get($qBt9X, "\x6c\151\x6d\x69\x74", static::ITEM_PER_PAGE); $vPuLV = EducationHistory::select("\151\x64", "\x65\155\x70\x6c\x6f\x79\x65\x65\137\x69\x64", "\x65\144\x75\x63\141\164\x69\x6f\x6e\137\x6c\145\166\x65\x6c\137\x69\144", "\x66\162\157\x6d\x5f\144\x61\x74\145", "\x74\x6f\x5f\x64\x61\164\x65", "\163\143\x68\x6f\157\x6c\137\156\141\x6d\145", "\x6d\x61\x6a\x6f\162", "\x63\145\162\x74\x69\146\x69\x63\141\x74\145\137\x6e\165\155\x62\x65\162")->with(["\145\x6d\x70\154\157\171\x65\145\72\x69\144\x2c\145\155\160\x6c\157\x79\x65\145\x5f\x63\157\x64\x65\x2c\x66\x69\x72\x73\x74\137\156\141\155\145\x2c\154\x61\163\x74\137\156\x61\x6d\x65\x2c\x66\x75\154\x6c\137\156\x61\155\x65\x2c\146\x69\162\x73\164\x5f\x6e\x61\x6d\x65\137\153\141\x6e\141\x2c\x6c\141\163\x74\x5f\x6e\141\155\145\x5f\x6b\x61\x6e\x61\54\x66\x75\x6c\154\137\x6e\141\155\x65\x5f\153\141\x6e\141", "\x65\x64\165\143\141\164\x69\x6f\x6e\114\x65\166\x65\x6c\x3a\x69\x64\54\156\x61\155\x65\54\143\x6f\x64\145\x2c\x70\157\151\x6e\164\137\x76\141\154\x75\145"])->orderBy("\151\x64", "\x64\145\163\x63"); return EducationHistoryResource::collection($vPuLV->paginate($jrDoY)); } public function show($Tb1Tr = 0) { $YGKLH = EducationHistory::with(["\145\155\160\154\157\171\x65\x65\72\x69\x64\54\x65\155\160\154\x6f\171\x65\x65\137\143\157\144\145\54\x66\151\x72\x73\164\137\x6e\x61\x6d\145\x2c\x6c\141\163\x74\x5f\x6e\x61\x6d\145\x2c\146\165\x6c\x6c\137\156\141\155\145\x2c\146\x69\x72\163\x74\137\x6e\141\x6d\145\137\x6b\x61\x6e\x61\54\x6c\141\x73\x74\137\156\141\x6d\145\x5f\x6b\141\x6e\141\54\146\165\154\x6c\x5f\x6e\x61\x6d\x65\x5f\x6b\141\156\x61", "\x65\144\165\x63\x61\x74\151\157\156\x4c\145\x76\145\154\72\x69\144\x2c\x6e\x61\155\145\x2c\143\157\x64\x65\54\x70\x6f\x69\x6e\164\x5f\166\x61\154\x75\x65"])->findOrFail($Tb1Tr); return new EducationHistoryResource($YGKLH); } public function store(Request $request) { goto gaR5h; qdy2h: return new EducationHistoryResource($YGKLH); goto L1Fri; knjXM: zC7GP: $params = $request->all(); $YGKLH = EducationHistory::create(["\145\x6d\160\x6c\x6f\171\x65\145\x5f\x69\x64" => $params["\145\x6d\x70\154\x6f\x79\145\x65\137\151\144"], "\x65\x64\x75\x63\141\164\151\x6f\x6e\x5f\154\145\x76\x65\154\137\151\144" => $params["\145\x64\x75\143\141\x74\151\x6f\x6e\137\154\145\166\x65\x6c\137\x69\144"], "\x73\143\150\157\157\154\x5f\x6e\141\155\x65" => $params["\x73\x63\x68\157\x6f\x6c\x5f\x6e\141\155\145"], "\155\x61\152\157\x72" => $params["\x6d\141\152\157\x72"], "\146\162\157\155\137\x64\x61\164\x65" => $params["\x66\162\157\155\x5f\x64\x61\x74\x65"], "\x74\157\137\x64\141\164\x65" => $params["\164\157\137\x64\x61\164\x65"], "\x63\x65\162\x74\151\146\151\143\x61\164\145\137\156\x75\155\x62\145\162" => $params["\x63\x65\162\164\151\146\151\x63\141\x74\145\137\x6e\165\155\142\x65\162"]]); goto qdy2h; gaR5h: $rQHFT = Validator::make($request->all(), ["\145\155\160\x6c\157\171\x65\x65\x5f\x69\x64" => ["\x72\x65\x71\x75\x69\162\x65\144", "\145\170\x69\163\x74\x73\72\145\x6d\160\154\x6f\x79\145\145\x73\54\x69\144"], "\145\144\x75\x63\141\x74\x69\157\156\137\x6c\145\166\x65\154\x5f\x69\x64" => ["\x72\145\x71\165\x69\162\x65\x64", "\x65\x78\151\x73\164\163\72\145\x64\165\143\141\164\x69\157\x6e\137\154\x65\166\145\154\163\x2c\151\x64"], "\163\143\150\x6f\x6f\x6c\x5f\x6e\x61\155\x65" => ["\162\145\x71\x75\151\x72\x65\x64"], "\x6d\x61\152\157\x72" => ["\x72\x65\161\165\151\162\145\144"], "\x66\x72\x6f\x6d\137\x64\141\x74\x65" => ["\x72\x65\x71\165\x69\x72\x65\x64", "\144\x61\164\145"], "\164\157\x5f\144\x61\x74\x65" => ["\162\145\x71\165\x69\162\x65\144", "\144\x61\x74\145"], "\x63\145\162\x74\x69\x66\151\x63\x61\164\x65\137\x6e\165\x6d\142\x65\162" => ["\x72\145\x71\x75\151\162\145\144", "\165\x6e\x69\x71\165\x65\72\145\x64\x75\x63\x61\164\x69\157\x6e\x5f\150\151\x73\x74\x6f\x72\x69\145\163\54\x63\145\x72\x74\151\146\151\143\141\x74\145\x5f\156\x75\x6d\x62\145\x72"]]); if (!$rQHFT->fails()) { goto zC7GP; } return response()->json(["\x65\x72\162\157\162\163" => $rQHFT->errors()], 403); goto knjXM; L1Fri: } public function update(Request $request, $Tb1Tr = 0) { goto nbJNN; nbJNN: $rQHFT = Validator::make($request->all(), ["\145\155\160\154\x6f\171\145\145\137\151\x64" => ["\162\145\161\x75\151\x72\145\x64", "\145\170\x69\x73\164\163\72\x65\x6d\x70\x6c\x6f\171\145\x65\x73\54\151\x64"], "\x65\144\165\143\x61\x74\x69\x6f\x6e\137\154\145\166\x65\154\x5f\x69\x64" => ["\x72\x65\161\x75\x69\x72\145\144", "\x65\x78\x69\163\164\163\72\x65\x64\x75\x63\141\x74\151\157\x6e\x5f\x6c\145\x76\145\154\163\x2c\151\144"], "\163\x63\150\x6f\157\154\137\x6e\x61\155\x65" => ["\x72\145\161\x75\151\x72\x65\x64"], "\x6d\x61\152\157\162" => ["\x72\x65\161\165\x69\x72\x65\144"], "\x66\162\157\x6d\137\144\x61\164\145" => ["\x72\x65\161\x75\151\162\145\144", "\x64\141\164\145"], "\x74\157\137\x64\x61\x74\145" => ["\x72\x65\161\x75\151\162\145\x64", "\144\141\x74\145"], "\x63\145\x72\164\151\x66\x69\x63\x61\164\x65\x5f\156\x75\155\x62\x65\162" => ["\162\145\x71\165\151\x72\x65\144", "\x75\156\x69\x71\165\x65\x3a\145\x64\x75\143\141\x74\151\157\156\137\x68\151\163\x74\157\x72\151\145\163\54\x63\145\x72\x74\x69\x66\151\x63\x61\164\145\x5f\156\165\x6d\x62\x65\x72\x2c" . $Tb1Tr]]); if (!$rQHFT->fails()) { goto ndEnR; } return response()->json(["\145\x72\x72\157\162\x73" => $rQHFT->errors()], 403); goto ke1Ue; itsdh: $YGKLH->update(["\145\155\x70\154\x6f\x79\x65\145\x5f\x69\x64" => $params["\x65\x6d\160\154\x6f\171\145\x65\x5f\x69\x64"], "\145\144\165\x63\141\x74\151\x6f\156\137\x6c\145\166\145\x6c\137\x69\144" => $params["\x65\x64\x75\x63\x61\164\x69\157\156\137\154\x65\166\x65\x6c\x5f\x69\144"], "\163\x63\x68\x6f\157\154\137\156\141\155\x65" => $params["\x73\x63\x68\157\157\x6c\137\156\141\155\145"], "\155\141\x6a\x6f\162" => $params["\x6d\x61\x6a\x6f\162"], "\146\162\x6f\155\x5f\x64\141\164\x65" => $params["\x66\x72\157\x6d\137\x64\x61\164\x65"], "\x74\x6f\x5f\144\141\164\145" => $params["\164\157\x5f\x64\141\164\x65"], "\x63\x65\162\164\x69\x66\x69\143\141\164\145\x5f\156\x75\x6d\142\145\162" => $params["\x63\x65\162\164\151\x66\x69\x63\x61\164\145\x5f\x6e\165\155\142\145\x72"]]); return response()->json(null, 204); goto WTGis; ke1Ue: ndEnR: $YGKLH = EducationHistory::findOrFail($Tb1Tr); $params = $request->all(); goto itsdh; WTGis: } public function destroy($Tb1Tr = 0) { goto A2TDU; NGxQG: return response()->json(null, 204); goto Zbh3k; pmXvq: return response()->json(["\145\162\162\157\x72" => "\x43\x61\156\x6e\x6f\164\x20\x64\145\x6c\145\x74\145\40\x74\x68\145\x20\154\x61\x74\145\x73\x74\40\x65\x64\x75\143\x61\x74\x69\x6f\156\x20\x68\x69\x73\x74\157\x72\x79\40\162\145\143\x6f\162\x64\x2e"], 403); PfdsX: $YGKLH->delete(); goto NGxQG; A2TDU: $YGKLH = EducationHistory::findOrFail($Tb1Tr); $vFT3K = EducationHistory::where("\x65\155\x70\x6c\x6f\171\x65\x65\137\x69\144", $YGKLH->employee_id)->orderBy("\151\144", "\x64\x65\x73\x63")->first(); if (!($vFT3K && $vFT3K->id == $Tb1Tr)) { goto PfdsX; } goto pmXvq; Zbh3k: } public function destroyMultiple(Request $request) { goto y76ym; tL4l6: return response()->json(null, 204); goto C0Lf0; lKNQ8: rFhxN: $mZKr_ = $request->get("\x69\144\x73", []); $nWCzr = EducationHistory::whereIn("\x69\144", $mZKr_)->get(); goto r6bRk; y76ym: $rQHFT = Validator::make($request->all(), ["\x69\144\x73" => "\162\145\161\x75\151\162\145\x64"]); if (!$rQHFT->fails()) { goto rFhxN; } return response()->json(["\x65\162\x72\x6f\162\163" => $rQHFT->errors()], 403); goto lKNQ8; r6bRk: foreach ($nWCzr as $pOpkd) { $vFT3K = EducationHistory::where("\x65\155\160\x6c\x6f\171\145\x65\137\x69\144", $pOpkd->employee_id)->orderBy("\151\x64", "\144\x65\163\x63")->first(); if (!($vFT3K && in_array($vFT3K->id, $mZKr_))) { goto m9itf; } return response()->json(["\x65\162\x72\157\x72" => "\x43\x61\156\156\x6f\164\x20\144\x65\154\x65\164\145\x20\164\150\145\x20\x6c\x61\164\145\x73\164\40\x65\144\165\143\141\x74\x69\x6f\x6e\x20\x68\151\163\164\x6f\162\x79\40\162\145\x63\x6f\162\144\56"], 403); m9itf: xNFEw: } OcEeY: EducationHistory::whereIn("\151\x64", $mZKr_)->delete(); goto tL4l6; C0Lf0: } }