<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:12:29
 namespace Database\Seeders; use App\Level; use App\LevelHistory; use App\Payout; use App\Services\EmployeeService; use App\SeverancePayment; use Illuminate\Database\Seeder; use Carbon\Carbon; use App\User; use App\LeaveHistory; use App\PointRate; use App\PointTable; use App\PositionHistory; use App\TransitionPoint; use App\Department; use App\Position; use App\LeaveType; use App\Employee; use DB; class DatabaseSeeder extends Seeder { public function run() { goto ChgCf; ChgCf: $zMpDo = User::findOrFail(1); $PuEee = new EmployeeService(); $HPfLT = Payout::select("\x79\145\x61\x72\163", "\162\141\x74\x65")->orderBy("\x79\x65\x61\162\163")->get()->toArray(); goto eigts; O7Ly_: echo "\x3c\x70\x72\x65\76"; print_r($HcXO5); echo "\74\x2f\160\162\x65\x3e"; goto OyNMq; eigts: $KRf3L = PointTable::select("\171\x65\141\x72\x73", "\x70\x6f\x69\156\164\x73")->pluck("\x70\157\x69\156\164\163", "\171\145\141\162\163")->toArray(); $tC7Wf = Employee::with("\x6c\145\x76\145\x6c", "\x70\x6f\x73\151\164\151\x6f\x6e")->select("\52")->where("\x65\155\x70\154\x6f\171\145\x65\137\x63\x6f\144\x65", "\x41\61\x30\60\x30\x31\60")->orderBy("\151\x64", "\x61\x73\x63")->first(); $HcXO5 = $PuEee->calculateSeverancePayment($tC7Wf, $HPfLT, $KRf3L, 2025); goto O7Ly_; OyNMq: die; goto JTJA2; JTJA2: } private function splitDateRangeToFiscalYears($CVPgw, $qb2KV) { goto DCg2Z; NZZRX: return $HcXO5; Nu5wx: $HcXO5[] = ["\146\x72\157\x6d" => $hV6q2->format("\x59\x2d\x6d\x2d\x64"), "\164\x6f" => $YCUMl->format("\x59\55\155\55\144")]; goto eeOO2; eeOO2: $vkjd7 = $YCUMl->copy()->addDay(); sF9ge: if (!$vkjd7->copy()->addMonths(11)->endOfMonth()->lessThan($O_bTx)) { goto DR1km; } goto NtIx2; ZQKXb: $YCUMl = Carbon::parse($CVPgw)->month(3)->endOfMonth(); if (!($hV6q2->month > 3)) { goto cpljN; } $YCUMl->addYear(); goto XG0ta; DCg2Z: $HcXO5 = []; $hV6q2 = Carbon::parse($CVPgw); $O_bTx = Carbon::parse($qb2KV); goto ZQKXb; ObaAG: goto sF9ge; DR1km: if (!$vkjd7->lessThanOrEqualTo($O_bTx)) { goto iTohq; } goto B4mQo; B4mQo: $HcXO5[] = ["\146\x72\157\155" => $vkjd7->format("\131\55\155\x2d\144"), "\x74\x6f" => $O_bTx->format("\x59\x2d\x6d\x2d\144")]; iTohq: return $HcXO5; goto l6XSC; XG0ta: cpljN: if (!$YCUMl->greaterThan($O_bTx)) { goto Nu5wx; } $HcXO5[] = ["\x66\x72\157\x6d" => $hV6q2->format("\x59\55\x6d\x2d\144"), "\x74\x6f" => $O_bTx->format("\x59\55\x6d\x2d\144")]; goto NZZRX; NtIx2: $WT3Fa = $vkjd7->copy()->month(3)->endOfMonth(); if (!($vkjd7->month > 3)) { goto CUtgw; } $WT3Fa->addYear(); goto dDKP4; dDKP4: CUtgw: $HcXO5[] = ["\146\162\157\155" => $vkjd7->format("\x59\55\155\55\x64"), "\164\x6f" => $WT3Fa->format("\131\55\155\55\144")]; $vkjd7 = $WT3Fa->copy()->addDay(); goto ObaAG; l6XSC: } private function randomPositionHistory($apH36, $Mr2iw) { $Y02yr = 1; foreach ($apH36 as $tC7Wf) { goto Ly_05; Ly_05: PositionHistory::where("\x65\x6d\160\154\x6f\x79\x65\145\x5f\151\x64", $tC7Wf->id)->delete(); $SHJNE = rand(0, 5); $LH51h = Carbon::parse($tC7Wf->join_date); goto JYU4V; DAXn3: $XVvWF = $xp1jI->timestamp; if (!($q88OW >= $XVvWF)) { goto D7USN; } goto D8z_d; goto EaNZj; hHGDs: goto tN4Z4; X_vW2: $ZTNXR = []; goto N1shG; N1shG: if (!($SHJNE > 0)) { goto o_S65; } $ZTNXR[] = $LH51h->format("\131\55\x6d\55\x64"); $npj98 = 1; goto VWAs2; JOEui: X0Gw5: hpLHK: tN4Z4: goto nAyaP; VWAs2: nZ9W3: if (!($npj98 < $SHJNE)) { goto D8z_d; } $q88OW = Carbon::parse($ZTNXR[$npj98 - 1])->addMonth()->timestamp; goto DAXn3; Xbu3e: $Q89c9 = array_values(array_diff($Mr2iw, [$Y02yr])); $bfF1d = rand(1, 5); switch ($bfF1d) { case 1: if (!rand(0, 1)) { goto YiE81; } $tC7Wf->position_id = $Y02yr; $tC7Wf->save(); YiE81: goto hpLHK; case 2: goto DHD9j; uPU55: goto hpLHK; goto utcrQ; DHD9j: if (!$ZTNXR) { goto aFBGy; } $O_bTx = Carbon::parse($ZTNXR[0])->addMonths(rand(1, 12))->min($xp1jI)->format("\131\55\x6d\55\x64"); PositionHistory::create(["\x65\155\x70\154\157\171\x65\145\137\x69\x64" => $tC7Wf->id, "\x70\x6f\x73\x69\x74\x69\x6f\156\137\x69\x64" => $Q89c9[array_rand($Q89c9)], "\146\162\x6f\155\137\x64\141\164\x65" => $ZTNXR[0], "\x74\157\137\x64\x61\164\x65" => $O_bTx, "\143\x6f\156\143\165\x72\x72\x65\x6e\x74\137\144\165\x74\151\x65\163" => "\124\145\163\x74\x20\x63\x61\163\x65\x20\x32", "\x69\x73\x73\165\x65\144\x5f\142\x79" => "\x53\171\x73\x74\145\x6d"]); goto P8rXr; P8rXr: $tC7Wf->position_id = $Y02yr; $tC7Wf->save(); aFBGy: goto uPU55; utcrQ: case 3: goto t_WoU; mV3ox: vDdSf: goto hpLHK; goto bvxrn; t_WoU: if (!$ZTNXR) { goto vDdSf; } PositionHistory::create(["\145\155\x70\154\x6f\171\145\145\x5f\151\144" => $tC7Wf->id, "\x70\157\163\151\x74\151\157\x6e\x5f\151\144" => $Q89c9[array_rand($Q89c9)], "\146\x72\157\x6d\x5f\144\141\164\x65" => $ZTNXR[0], "\x74\x6f\x5f\144\x61\x74\x65" => null, "\143\157\156\x63\165\x72\162\145\156\x74\x5f\x64\165\x74\x69\x65\163" => "\124\x65\163\x74\x20\143\141\x73\145\x20\63", "\x69\163\163\x75\x65\x64\137\x62\171" => "\x53\171\x73\x74\145\155"]); if (!rand(0, 1)) { goto T1Z40; } goto anbMM; anbMM: $tC7Wf->position_id = $Y02yr; $tC7Wf->save(); T1Z40: goto mV3ox; bvxrn: case 4: foreach ($ZTNXR as $AcSFD => $Htn_C) { goto F8sIJ; F8sIJ: $T7dBS = rand(0, 1); $qb2KV = null; if (!($T7dBS && isset($ZTNXR[$AcSFD + 1]))) { goto p7F1A; } goto NFKRm; IEzNC: OR5Sd: goto OX77q; NFKRm: $qb2KV = Carbon::parse($ZTNXR[$AcSFD + 1])->subDay()->min($xp1jI)->format("\131\x2d\x6d\x2d\x64"); p7F1A: PositionHistory::create(["\145\x6d\160\154\x6f\171\145\145\137\x69\x64" => $tC7Wf->id, "\x70\157\163\x69\x74\x69\x6f\156\137\x69\144" => $Q89c9[array_rand($Q89c9)], "\146\x72\157\155\137\x64\x61\x74\145" => $Htn_C, "\x74\x6f\137\144\x61\164\145" => $qb2KV, "\x63\157\156\x63\x75\162\162\145\156\x74\x5f\x64\x75\x74\151\145\163" => "\x54\145\x73\164\40\x63\x61\163\145\x20\64\x2e" . ($AcSFD + 1), "\x69\x73\163\x75\x65\x64\137\142\x79" => "\123\x79\x73\164\145\155"]); goto IEzNC; OX77q: } whlhH: goto hpLHK; case 5: goto cWviG; JRPm3: $tC7Wf->position_id = $Q89c9[array_rand($Q89c9)]; $tC7Wf->save(); o4BiS: goto ujB2E; ujB2E: goto hpLHK; goto yy0Pj; cWviG: foreach ($ZTNXR as $AcSFD => $Htn_C) { $qb2KV = null; if (!isset($ZTNXR[$AcSFD + 1])) { goto XoFZ1; } $qb2KV = Carbon::parse($ZTNXR[$AcSFD + 1])->subDay()->min($xp1jI)->format("\x59\55\x6d\55\x64"); XoFZ1: PositionHistory::create(["\145\155\x70\154\x6f\x79\x65\x65\137\151\144" => $tC7Wf->id, "\x70\x6f\163\151\x74\x69\157\156\x5f\x69\x64" => $Q89c9[array_rand($Q89c9)], "\146\162\x6f\x6d\x5f\144\x61\164\145" => $Htn_C, "\164\x6f\x5f\144\x61\164\x65" => $qb2KV, "\x63\x6f\156\143\165\162\x72\145\156\x74\137\x64\165\164\x69\145\x73" => "\124\145\163\164\x20\x63\x61\163\145\40\65\x2e" . ($AcSFD + 1), "\x69\163\x73\165\145\x64\137\x62\x79" => "\123\171\163\164\145\x6d"]); GNllF: } WRcrd: if ($tC7Wf->resigned_date) { goto o4BiS; } goto JRPm3; yy0Pj: } goto JOEui; THNl7: D8z_d: sort($ZTNXR); o_S65: goto Xbu3e; EaNZj: D7USN: $JZZ20 = Carbon::createFromTimestamp(rand($q88OW, $XVvWF))->format("\131\x2d\x6d\55\144"); $ZTNXR[] = $JZZ20; goto vFJ6P; vFJ6P: GaNLS: $npj98++; goto nZ9W3; goto THNl7; JYU4V: $xp1jI = $tC7Wf->resigned_date ? Carbon::parse($tC7Wf->resigned_date) : Carbon::now(); $xp1jI = $xp1jI->min(Carbon::now()); if (!$LH51h->greaterThan($xp1jI)) { goto X_vW2; } goto hHGDs; nAyaP: } ko0pi: } private function randomPositionHistory2($apH36, $Mr2iw) { $Y02yr = 1; foreach ($apH36 as $tC7Wf) { goto cjpOT; hcx_j: $JZZ20 = Carbon::createFromTimestamp(rand($q88OW, $XVvWF))->format("\131\55\155\x2d\x64"); $wjkSi[] = $JZZ20; WhceQ: goto p_6mB; Yp8EA: if (!($npj98 < $jnA4u)) { goto I4RFu; } $q88OW = $npj98 == 0 ? $LH51h->addMonth()->timestamp : Carbon::parse($wjkSi[$npj98 - 1])->addMonth()->timestamp; $XVvWF = $xp1jI->timestamp; goto HvYYz; YGTzX: PositionHistory::create(["\x65\155\x70\x6c\x6f\171\145\x65\x5f\x69\144" => $tC7Wf->id, "\160\157\x73\x69\164\151\x6f\x6e\137\x69\x64" => $qKlQQ, "\x66\162\157\155\x5f\x64\141\x74\x65" => $LH51h->format("\131\x2d\x6d\55\144"), "\164\x6f\137\144\x61\164\x65" => $xp1jI->format("\131\x2d\x6d\55\144"), "\143\x6f\156\x63\x75\x72\162\x65\x6e\164\x5f\x64\x75\x74\151\x65\x73" => "\106\x69\156\141\x6c\x20\x70\157\163\151\164\151\x6f\x6e\x20\x62\x65\x66\x6f\x72\145\x20\162\145\163\x69\147\156\141\164\x69\x6f\156", "\151\x73\x73\165\x65\144\137\x62\171" => "\123\171\163\164\x65\x6d"]); $tC7Wf->position_id = $Y02yr; $tC7Wf->save(); goto thfBX; vPc2M: foreach ($wjkSi as $eHaKX) { PositionHistory::create(["\x65\155\160\154\x6f\171\145\x65\x5f\x69\x64" => $tC7Wf->id, "\x70\x6f\x73\x69\x74\x69\157\x6e\x5f\x69\x64" => $qKlQQ, "\146\x72\x6f\155\x5f\144\x61\164\145" => $LH51h->format("\x59\x2d\x6d\55\x64"), "\164\x6f\137\x64\x61\x74\x65" => $eHaKX, "\x63\x6f\156\x63\165\162\x72\145\x6e\164\137\x64\165\164\x69\145\x73" => "\124\x65\163\x74\40\144\141\x74\141", "\151\x73\163\x75\x65\144\137\142\x79" => "\x53\171\163\x74\x65\155"]); $qKlQQ = $Q89c9[array_rand($Q89c9)]; $LH51h = Carbon::parse($eHaKX); ERt2j: } nYF5c: if (!$tC7Wf->resigned_date) { goto yyXEd; } goto YGTzX; knACH: $xp1jI = $tC7Wf->resigned_date ? Carbon::parse($tC7Wf->resigned_date) : Carbon::now(); $xp1jI = $xp1jI->min(Carbon::now()); $wjkSi = []; goto sMyh3; nZkwy: sort($wjkSi); qqwnk: $Q89c9 = array_values(array_diff($Mr2iw, [$Y02yr])); goto FsPj4; cjpOT: PositionHistory::where("\x65\155\160\x6c\x6f\171\145\145\137\151\144", $tC7Wf->id)->delete(); $jnA4u = rand(0, 5); $LH51h = Carbon::parse($tC7Wf->join_date); goto knACH; p_6mB: $npj98++; goto qrmmA; I4RFu: goto nZkwy; sMyh3: if (!($jnA4u > 0)) { goto qqwnk; } $npj98 = 0; qrmmA: goto Yp8EA; thfBX: yyXEd: U8acT: goto ST43n; HvYYz: if (!($q88OW >= $XVvWF)) { goto IYWSF; } goto I4RFu; IYWSF: goto hcx_j; FsPj4: $qKlQQ = $Q89c9[array_rand($Q89c9)]; $tC7Wf->position_id = $qKlQQ; $tC7Wf->save(); goto vPc2M; ST43n: } c3r17: } }