<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:57
 namespace App\Http\Controllers\Admin; use App\PointCalculation; use App\Http\Controllers\Controller; use App\Http\Resources\Admin\PointCalculationResource; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Validator; use Carbon\Carbon; class PointCalculationController extends Controller { const ITEM_PER_PAGE = 100; public function index(Request $request) { goto Z9Aqa; jQnnL: $W1b6h = Arr::get($JlwXq, "\x6b\145\x79\x77\157\162\144", ''); $C89fF = Arr::get($JlwXq, "\x65\155\x70\154\157\x79\145\145\x5f\x69\144", ''); $l2A7J = Arr::get($JlwXq, "\x66\x72\x6f\x6d\x5f\x64\141\164\x65", ''); goto ppXv6; rp0Yw: $QESWg->where("\143\141\154\x63\165\154\x61\164\x69\157\156\x5f\x64\141\x74\x65", "\x3c\75", $fy3vI); LJFVp: if (empty($xpP28)) { goto lxN0L; } goto gdkd2; fb0Ib: return PointCalculationResource::collection($QESWg->paginate($mZOVf)); goto FjWXd; Z9Aqa: $JlwXq = $request->all(); $QESWg = PointCalculation::query(); $mZOVf = Arr::get($JlwXq, "\x6c\151\x6d\151\x74", static::ITEM_PER_PAGE); goto jQnnL; ppXv6: $fy3vI = Arr::get($JlwXq, "\x74\x6f\x5f\144\x61\164\x65", ''); $xpP28 = Arr::get($JlwXq, "\143\141\154\143\165\x6c\x61\164\151\157\x6e\x5f\x74\171\160\145", ''); if (empty($W1b6h)) { goto FnuF2; } goto VhPZa; VhPZa: $QESWg->where(function ($m6Nho) use($W1b6h) { $m6Nho->whereHas("\x65\155\160\154\157\x79\x65\145", function ($CVNJ1) use($W1b6h) { $CVNJ1->where("\146\x75\154\x6c\x5f\x6e\x61\x6d\x65", "\x4c\x49\x4b\x45", "\x25" . $W1b6h . "\45")->orWhere("\x65\155\160\154\x6f\171\x65\x65\137\143\157\x64\145", "\x4c\111\113\105", "\x25" . $W1b6h . "\45")->orWhere("\x66\x69\x72\x73\x74\137\x6e\141\155\145", "\114\x49\113\105", "\x25" . $W1b6h . "\x25")->orWhere("\x6c\141\163\164\x5f\x6e\x61\x6d\145", "\x4c\111\113\x45", "\x25" . $W1b6h . "\x25"); }); }); FnuF2: if (empty($C89fF)) { goto xBtqB; } goto lW8Iz; gdkd2: $QESWg->where("\x63\x61\154\x63\165\154\141\x74\x69\x6f\x6e\x5f\164\171\x70\x65", $xpP28); lxN0L: $QESWg->orderBy("\x63\141\154\x63\x75\154\x61\164\151\x6f\x6e\137\x64\141\164\x65", "\x64\x65\163\x63")->orderBy("\151\x64", "\x64\x65\x73\143"); goto fb0Ib; Qwt3J: $QESWg->where("\x63\141\154\143\x75\154\x61\x74\x69\x6f\x6e\x5f\x64\141\x74\145", "\76\75", $l2A7J); BD5rR: if (empty($fy3vI)) { goto LJFVp; } goto rp0Yw; lW8Iz: $QESWg->where("\145\x6d\x70\x6c\157\171\x65\x65\137\151\x64", $C89fF); xBtqB: if (empty($l2A7J)) { goto BD5rR; } goto Qwt3J; FjWXd: } public function all() { return PointCalculationResource::collection(PointCalculation::select("\x2a")->orderBy("\x63\x61\154\x63\x75\154\141\x74\151\157\156\x5f\144\x61\x74\145", "\144\x65\x73\143")->orderBy("\x69\x64", "\144\145\163\x63")->get()); } public function show($nfksM = 0) { $N5EQb = PointCalculation::findOrFail($nfksM); return new PointCalculationResource($N5EQb); } public function store(Request $request) { goto Mp2xi; S3C1n: OaUu0: $params = $request->all(); $W45E5 = Carbon::parse($params["\143\x61\x6c\143\165\x6c\141\164\151\x6f\156\x5f\144\141\164\145"]); goto VvpZw; VvpZw: if (!($params["\143\141\x6c\x63\x75\x6c\141\x74\151\157\156\x5f\164\x79\x70\145"] === 2)) { goto iJByq; } $m7VE2 = PointCalculation::where("\x65\x6d\160\x6c\157\x79\x65\145\x5f\x69\x64", $params["\x65\155\160\x6c\157\171\x65\145\x5f\151\x64"])->where("\143\x61\154\x63\165\154\x61\x74\151\157\156\x5f\x74\x79\160\x65", 2)->whereYear("\143\141\x6c\x63\165\x6c\x61\x74\x69\x6f\x6e\137\144\141\x74\145", $W45E5->year)->whereMonth("\143\x61\x6c\143\x75\x6c\x61\164\x69\157\x6e\x5f\x64\141\x74\145", $W45E5->month)->exists(); if (!$m7VE2) { goto SF024; } goto ScIha; rU7ZC: $N5EQb = PointCalculation::create(["\145\x6d\x70\154\x6f\171\x65\x65\x5f\151\144" => $params["\145\155\160\x6c\157\x79\x65\145\137\x69\144"], "\x63\141\154\143\165\x6c\x61\164\151\x6f\x6e\137\144\141\164\x65" => $params["\x63\x61\154\x63\x75\154\x61\x74\151\157\x6e\137\x64\141\164\x65"], "\x74\x65\x6e\165\x72\145\x5f\160\x6f\151\x6e\164\x73" => 0, "\160\157\x73\x69\x74\x69\157\156\137\x70\157\151\156\x74\x73" => 0, "\145\x64\165\143\x61\164\151\157\156\137\160\x6f\x69\156\164\x73" => 0, "\164\162\x61\156\x73\151\164\x69\157\x6e\x5f\160\157\x69\156\164\x73" => 0, "\164\x6f\164\x61\x6c\x5f\160\157\151\156\164\163" => 0, "\143\141\x6c\x63\165\154\x61\164\151\x6f\x6e\x5f\x74\171\x70\x65" => $params["\143\x61\x6c\x63\x75\x6c\141\164\x69\157\x6e\137\x74\171\x70\x65"]]); return new PointCalculationResource($N5EQb); goto DgWH8; ScIha: return response()->json(["\x65\x72\162\157\162" => "\x43\x61\156\x6e\157\164\x20\143\x72\145\141\164\145\40\x63\x61\x6c\143\165\154\141\164\151\157\156\56\x20\x54\150\x65\162\x65\x20\x69\x73\x20\x61\x6c\162\145\x61\144\171\40\141\156\40\x6f\146\146\151\143\x69\x61\154\x20\x63\141\154\x63\x75\x6c\x61\x74\x69\x6f\156\x20\146\x6f\x72\40\x74\150\x69\163\40\155\157\156\164\x68\x2e"], 403); SF024: iJByq: goto rU7ZC; Mp2xi: $F_81B = Validator::make($request->all(), ["\145\155\x70\x6c\x6f\171\145\145\x5f\151\x64" => ["\162\x65\161\x75\x69\162\x65\x64", "\145\x78\x69\163\164\x73\72\145\155\160\x6c\157\171\145\x65\163\54\x69\x64"], "\143\x61\x6c\143\165\x6c\141\x74\x69\x6f\x6e\x5f\x64\x61\164\145" => ["\x72\x65\x71\165\151\162\145\x64", "\x64\x61\x74\x65"], "\143\141\x6c\x63\x75\154\141\164\x69\157\156\x5f\x74\x79\x70\x65" => ["\162\145\x71\165\151\162\145\144", "\x69\156\72\61\x2c\x32"]]); if (!$F_81B->fails()) { goto OaUu0; } return response()->json(["\145\162\x72\157\x72\163" => $F_81B->errors()], 403); goto S3C1n; DgWH8: } public function update(Request $request, $nfksM) { goto wNNfL; Db2XF: uxLcO: $N5EQb = PointCalculation::findOrFail($nfksM); $params = $request->all(); goto tM05u; YQINQ: bX2sA: $N5EQb->update(["\143\141\154\x63\165\x6c\141\164\x69\157\x6e\137\144\141\x74\145" => $params["\x63\141\x6c\x63\x75\x6c\x61\164\151\157\x6e\137\x64\141\164\145"], "\164\x65\156\165\x72\x65\137\x70\157\151\x6e\x74\x73" => 0, "\x70\157\163\x69\x74\x69\x6f\156\137\160\x6f\x69\x6e\x74\x73" => 0, "\x65\x64\x75\x63\x61\164\151\157\x6e\137\160\x6f\151\156\x74\x73" => 0, "\164\162\x61\x6e\x73\151\164\151\x6f\x6e\x5f\x70\x6f\x69\156\x74\x73" => 0, "\x74\157\x74\141\154\137\160\x6f\151\156\x74\163" => 0, "\143\141\154\143\165\154\x61\164\x69\157\156\137\x74\x79\160\x65" => $params["\x63\141\154\143\x75\x6c\x61\164\x69\x6f\156\x5f\164\171\160\145"]]); return response()->json(null, 204); goto zTkk9; xZTVy: if (!$m7VE2) { goto vkUJo; } return response()->json(["\x65\x72\162\x6f\x72" => "\103\141\x6e\x6e\157\164\x20\143\162\145\x61\x74\145\x20\x63\141\x6c\143\x75\x6c\x61\x74\x69\157\156\x2e\x20\x54\150\145\162\x65\x20\x69\163\40\x61\154\x72\145\141\x64\171\40\x61\x6e\x20\x6f\x66\x66\151\143\151\x61\154\x20\143\x61\154\143\165\154\141\164\151\157\x6e\x20\x66\x6f\162\40\164\150\151\163\x20\155\x6f\x6e\x74\150\56"], 403); vkUJo: goto YQINQ; tM05u: $W45E5 = Carbon::parse($params["\143\141\x6c\x63\165\x6c\141\x74\x69\x6f\x6e\x5f\x64\x61\x74\x65"]); if (!($params["\143\141\x6c\x63\x75\x6c\x61\x74\151\157\156\x5f\x74\x79\x70\x65"] === 2)) { goto bX2sA; } $m7VE2 = PointCalculation::where("\x65\155\x70\154\x6f\171\145\145\x5f\151\x64", $params["\145\x6d\160\x6c\157\171\145\x65\x5f\151\144"])->where("\143\x61\x6c\x63\x75\154\141\164\151\x6f\156\x5f\x74\x79\160\x65", 2)->whereYear("\x63\141\154\143\165\x6c\141\164\151\157\156\x5f\x64\x61\x74\145", $W45E5->year)->whereMonth("\x63\141\154\x63\x75\x6c\141\164\151\x6f\x6e\x5f\x64\141\x74\145", $W45E5->month)->exists(); goto xZTVy; wNNfL: $F_81B = Validator::make($request->all(), ["\145\155\x70\x6c\157\x79\145\145\137\x69\144" => ["\162\145\x71\x75\151\x72\145\144", "\145\x78\151\163\x74\163\x3a\x65\155\x70\154\157\x79\x65\x65\163\x2c\151\144"], "\x63\141\154\143\165\154\x61\x74\151\157\156\137\144\141\164\x65" => ["\162\x65\161\x75\x69\162\x65\x64", "\144\141\164\145"], "\143\x61\154\x63\x75\154\x61\x74\x69\x6f\x6e\x5f\x74\x79\160\145" => ["\162\145\x71\165\151\x72\145\x64", "\x69\156\x3a\61\x2c\x32"]]); if (!$F_81B->fails()) { goto uxLcO; } return response()->json(["\x65\162\x72\x6f\162\x73" => $F_81B->errors()], 403); goto Db2XF; zTkk9: } public function destroy($nfksM) { $N5EQb = PointCalculation::findOrFail($nfksM); if (!($N5EQb->calculation_type != 1)) { goto dTNBV; } return response()->json(["\145\x72\162\x6f\x72" => "\x43\x61\x6e\156\157\x74\40\144\145\x6c\x65\164\145\x20\x63\x61\x6c\143\165\x6c\141\164\x69\157\x6e\56\x20\x4f\156\154\171\40\x74\x72\151\141\x6c\x20\x63\141\x6c\x63\165\154\141\x74\151\x6f\x6e\x73\40\x63\141\156\40\x62\x65\x20\144\145\x6c\x65\164\145\x64\x2e"], 403); dTNBV: $N5EQb->delete(); return response()->json(null, 204); } public function trial(Request $request) { goto FEYpz; FEYpz: $F_81B = Validator::make($request->all(), ["\x65\155\x70\x6c\157\171\x65\x65\x5f\x69\x64" => ["\162\145\x71\x75\151\162\145\x64", "\x65\170\151\163\x74\163\72\145\155\x70\154\x6f\171\145\145\x73\54\x69\144"], "\143\x61\154\143\165\154\x61\164\151\157\156\x5f\x64\x61\164\145" => ["\162\x65\161\x75\151\x72\x65\144", "\x64\141\x74\145"]]); if (!$F_81B->fails()) { goto nN2sr; } return response()->json(["\145\x72\x72\x6f\162\163" => $F_81B->errors()], 403); goto weuNK; weuNK: nN2sr: $params = $request->all(); $W45E5 = Carbon::parse($params["\143\x61\x6c\x63\165\154\x61\164\x69\157\156\x5f\144\x61\x74\x65"]); goto FC4b_; tBIv3: NvsLX: $spboS = $this->calculatePoints($params["\145\155\160\154\157\x79\x65\145\137\x69\144"], $W45E5, "\164\x72\151\141\x6c"); return response()->json($spboS); goto OtFFY; FC4b_: $DokqE = PointCalculation::where("\145\x6d\160\154\157\x79\145\145\x5f\x69\x64", $params["\x65\155\160\154\x6f\171\145\x65\137\x69\x64"])->whereYear("\x63\141\154\143\x75\x6c\x61\x74\151\x6f\156\x5f\x64\x61\164\x65", $W45E5->year)->whereMonth("\143\x61\x6c\x63\165\154\x61\164\x69\x6f\x6e\137\144\141\x74\x65", $W45E5->month)->where("\x74\171\x70\x65", "\x6f\146\x66\x69\143\151\x61\154")->exists(); if (!$DokqE) { goto NvsLX; } return response()->json(["\x65\x72\162\x6f\x72" => "\x43\x61\x6e\156\157\164\x20\143\141\x6c\143\165\x6c\x61\164\x65\x20\160\157\x69\156\164\163\x2e\x20\124\x68\x65\162\145\40\x69\x73\x20\x61\x6c\x72\145\141\144\x79\x20\x61\x6e\40\157\146\146\151\x63\151\141\154\40\143\141\x6c\x63\165\154\x61\x74\x69\157\156\40\x66\157\162\40\164\x68\x69\x73\x20\145\155\160\x6c\157\x79\x65\x65\40\x69\x6e\40\164\x68\x69\x73\40\x6d\157\156\164\x68\56"], 403); goto tBIv3; OtFFY: } public function official(Request $request) { goto WqaF8; KxTeQ: iycE2: $spboS = $this->calculatePoints($params["\x65\155\x70\154\157\171\145\145\x5f\x69\144"], $W45E5, "\x6f\x66\146\x69\143\151\x61\x6c"); $N5EQb = PointCalculation::create(["\145\155\x70\x6c\157\x79\x65\145\x5f\151\x64" => $params["\x65\155\160\x6c\157\x79\x65\x65\137\x69\144"], "\x63\x61\x6c\143\x75\x6c\x61\x74\x69\x6f\x6e\x5f\x64\x61\164\x65" => $W45E5, "\160\157\151\156\164\x5f\x72\141\x74\145\x5f\x69\144" => $spboS["\x70\x6f\151\156\x74\137\x72\x61\x74\145\x5f\x69\x64"], "\142\x61\x73\145\137\160\x6f\x69\156\x74\x73" => $spboS["\142\141\163\145\137\x70\157\151\156\164\x73"], "\x64\x65\x64\165\143\x74\145\144\x5f\160\157\x69\156\164\163" => $spboS["\x64\145\144\x75\x63\x74\145\x64\x5f\x70\157\x69\156\x74\x73"], "\146\x69\x6e\x61\x6c\137\x70\x6f\x69\x6e\x74\x73" => $spboS["\146\x69\156\x61\x6c\x5f\160\x6f\x69\x6e\164\x73"], "\x6d\x6f\156\x65\x79\137\160\145\162\x5f\x70\157\x69\x6e\164" => $spboS["\x6d\x6f\156\x65\171\x5f\x70\145\x72\137\x70\157\x69\x6e\164"], "\x74\157\164\x61\x6c\x5f\155\157\156\x65\x79" => $spboS["\x74\x6f\164\141\x6c\137\155\157\156\x65\171"], "\x74\171\x70\145" => "\x6f\146\x66\151\x63\151\x61\154", "\x73\164\141\x74\x75\x73" => "\x70\x65\x6e\144\x69\156\x67", "\x6e\157\x74\x65" => $params["\156\157\x74\x65"] ?? null]); goto O8Afd; O8Afd: return new PointCalculationResource($N5EQb); goto e8Dvb; WqaF8: $F_81B = Validator::make($request->all(), ["\145\x6d\x70\154\x6f\171\x65\145\x5f\x69\144" => ["\162\145\161\165\151\162\145\x64", "\145\170\x69\x73\164\163\x3a\x65\x6d\x70\x6c\x6f\171\145\145\x73\x2c\x69\x64"], "\x63\141\154\x63\x75\x6c\x61\x74\x69\x6f\x6e\137\144\x61\164\x65" => ["\x72\x65\x71\x75\x69\x72\x65\144", "\x64\x61\x74\x65"]]); if (!$F_81B->fails()) { goto eliZv; } return response()->json(["\x65\x72\162\x6f\162\x73" => $F_81B->errors()], 403); goto Iv8m4; h82l_: $DokqE = PointCalculation::where("\145\x6d\x70\x6c\157\x79\x65\x65\137\x69\x64", $params["\x65\155\160\x6c\157\x79\x65\145\137\x69\144"])->whereYear("\x63\141\154\x63\x75\x6c\141\x74\151\x6f\x6e\137\x64\x61\164\x65", $W45E5->year)->whereMonth("\x63\141\x6c\x63\x75\x6c\x61\x74\x69\157\156\137\144\141\164\145", $W45E5->month)->where("\x74\x79\x70\x65", "\x6f\x66\146\151\143\x69\141\154")->exists(); if (!$DokqE) { goto iycE2; } return response()->json(["\x65\x72\162\157\x72" => "\x43\x61\x6e\x6e\157\x74\40\143\x61\x6c\x63\x75\154\x61\x74\145\40\160\x6f\151\156\x74\x73\x2e\40\124\150\x65\162\145\40\151\x73\x20\141\x6c\162\145\x61\x64\171\x20\141\156\x20\x6f\146\x66\x69\143\x69\x61\154\x20\x63\141\154\x63\x75\x6c\141\164\x69\157\156\x20\x66\x6f\162\40\164\x68\151\x73\x20\x65\155\160\x6c\x6f\x79\x65\x65\x20\151\x6e\40\164\x68\151\x73\x20\x6d\157\156\x74\150\56"], 403); goto KxTeQ; Iv8m4: eliZv: $params = $request->all(); $W45E5 = Carbon::parse($params["\x63\141\154\x63\x75\154\x61\x74\x69\x6f\156\137\x64\141\164\x65"]); goto h82l_; e8Dvb: } public function approve($nfksM = 0) { goto YfKYW; Sv0Ej: Yqul0: if (!($N5EQb->status !== "\x70\145\156\x64\151\156\x67")) { goto K79xs; } return response()->json(["\x65\162\162\x6f\x72" => "\x43\141\x6e\x6e\157\164\x20\141\x70\x70\162\x6f\166\145\x20\x63\x61\154\143\x75\x6c\x61\164\x69\157\156\56\x20\117\x6e\154\171\x20\160\x65\156\x64\151\x6e\x67\40\x63\141\x6c\143\x75\154\x61\164\x69\x6f\x6e\163\x20\143\141\156\x20\142\x65\40\x61\160\160\162\x6f\166\145\144\56"], 403); goto VyGYu; YfKYW: $N5EQb = PointCalculation::findOrFail($nfksM); if (!($N5EQb->type !== "\157\x66\x66\151\143\x69\x61\154")) { goto Yqul0; } return response()->json(["\x65\x72\x72\157\162" => "\x43\x61\156\156\157\x74\x20\141\160\160\162\157\x76\145\x20\143\141\154\143\x75\x6c\141\x74\151\157\x6e\56\x20\x4f\156\x6c\171\x20\x6f\x66\146\x69\143\151\x61\154\40\x63\141\154\143\x75\154\141\x74\x69\157\x6e\163\x20\143\x61\x6e\x20\142\x65\40\141\160\x70\162\157\166\145\x64\x2e"], 403); goto Sv0Ej; VyGYu: K79xs: $N5EQb->update(["\163\x74\141\164\x75\x73" => "\141\160\160\x72\x6f\166\x65\x64"]); return response()->json(null, 204); goto Lo2Wk; Lo2Wk: } public function reject($nfksM = 0) { goto eLeQT; cHICa: vI3X9: if (!($N5EQb->status !== "\x70\x65\156\144\151\156\x67")) { goto gdHkK; } return response()->json(["\145\x72\162\157\162" => "\x43\x61\x6e\x6e\157\x74\x20\x72\x65\152\x65\x63\164\x20\143\x61\154\x63\165\154\x61\x74\151\157\x6e\56\40\x4f\x6e\x6c\x79\x20\160\145\156\x64\x69\156\147\40\143\x61\154\x63\165\154\x61\x74\x69\x6f\x6e\x73\40\x63\141\x6e\x20\142\145\x20\162\145\x6a\x65\x63\164\145\144\x2e"], 403); goto MAZZR; MAZZR: gdHkK: $N5EQb->update(["\163\x74\x61\164\x75\x73" => "\162\x65\152\145\143\x74\x65\x64"]); return response()->json(null, 204); goto aR3hX; eLeQT: $N5EQb = PointCalculation::findOrFail($nfksM); if (!($N5EQb->type !== "\x6f\146\x66\x69\143\x69\x61\154")) { goto vI3X9; } return response()->json(["\x65\x72\x72\157\x72" => "\103\x61\x6e\x6e\x6f\x74\40\x72\x65\x6a\145\143\164\40\143\141\154\x63\x75\154\x61\164\151\x6f\156\x2e\40\117\x6e\x6c\171\x20\x6f\x66\146\x69\143\151\141\x6c\x20\143\141\x6c\143\165\x6c\141\164\x69\157\156\x73\x20\x63\x61\156\40\x62\145\40\x72\145\152\x65\143\164\145\x64\56"], 403); goto cHICa; aR3hX: } public function calculateTrial(Request $request) { $F_81B = Validator::make($request->all(), ["\x65\x6d\x70\154\x6f\171\x65\145\137\x69\144" => ["\162\145\x71\165\x69\162\x65\x64", "\x65\170\151\163\164\x73\x3a\x65\155\160\154\157\171\x65\145\x73\x2c\151\144"], "\143\141\x6c\x63\x75\154\141\x74\151\157\x6e\x5f\x64\x61\x74\x65" => ["\162\145\x71\x75\x69\162\x65\x64", "\x64\x61\x74\x65"]]); if (!$F_81B->fails()) { goto Nlef9; } return response()->json(["\x65\162\x72\x6f\x72\163" => $F_81B->errors()], 403); Nlef9: $spboS = $this->calculatePoints($request->get("\145\x6d\160\154\x6f\171\x65\x65\x5f\151\x64"), Carbon::parse($request->get("\x63\141\x6c\143\x75\x6c\141\x74\151\x6f\156\x5f\144\141\164\145")), "\x74\x72\x69\x61\x6c"); return response()->json($spboS); } public function calculateOfficial(Request $request) { goto AQNQL; AQNQL: $F_81B = Validator::make($request->all(), ["\145\x6d\x70\x6c\x6f\x79\x65\145\x5f\x69\144" => ["\162\145\161\165\151\162\x65\144", "\x65\170\x69\163\x74\163\x3a\x65\155\x70\x6c\x6f\x79\x65\x65\x73\x2c\151\x64"], "\x63\x61\x6c\143\165\154\x61\164\x69\x6f\x6e\x5f\x64\x61\x74\145" => ["\162\x65\x71\x75\x69\x72\x65\144", "\144\x61\x74\x65"]]); if (!$F_81B->fails()) { goto Gfgnb; } return response()->json(["\145\162\x72\157\162\163" => $F_81B->errors()], 403); goto DkawB; DkawB: Gfgnb: $W45E5 = Carbon::parse($request->get("\143\x61\154\143\x75\x6c\x61\x74\151\157\156\137\144\x61\164\145")); $m7VE2 = PointCalculation::where("\x65\155\160\154\x6f\x79\145\x65\x5f\x69\144", $request->get("\145\x6d\160\154\x6f\x79\x65\x65\137\151\x64"))->where("\x74\x79\x70\x65", "\157\146\x66\151\143\151\x61\x6c")->whereYear("\143\141\154\143\165\154\x61\x74\x69\157\156\137\x64\x61\x74\x65", $W45E5->year)->whereMonth("\143\141\x6c\143\x75\154\141\164\x69\157\156\x5f\x64\x61\x74\145", $W45E5->month)->exists(); goto aKbBO; UzJgx: $spboS = $this->calculatePoints($request->get("\x65\x6d\x70\154\x6f\x79\145\145\x5f\x69\144"), $W45E5, "\157\x66\146\151\143\151\141\154"); return response()->json($spboS); goto t0aLf; aKbBO: if (!$m7VE2) { goto zxa7A; } return response()->json(["\x65\x72\x72\x6f\x72" => "\103\x61\156\156\157\164\40\143\x61\154\x63\165\x6c\x61\x74\145\x20\x70\x6f\151\x6e\164\163\x2e\40\124\x68\x65\x72\x65\x20\151\x73\40\x61\x6c\162\x65\x61\x64\x79\x20\x61\x6e\40\x6f\x66\x66\x69\143\x69\141\154\x20\143\x61\154\x63\x75\154\x61\x74\x69\157\156\40\x66\157\x72\x20\x74\150\x69\163\x20\x6d\x6f\x6e\x74\150\56"], 403); zxa7A: goto UzJgx; t0aLf: } protected function calculatePoints($C89fF, $W45E5, $mjlzt) { return ["\160\157\151\x6e\x74\x5f\162\x61\164\145\137\151\144" => 1, "\x62\141\163\145\137\160\157\151\x6e\x74\163" => 100, "\144\145\x64\x75\143\164\145\144\x5f\x70\x6f\x69\156\164\163" => 10, "\x66\151\x6e\x61\x6c\x5f\x70\157\x69\156\x74\163" => 90, "\x6d\x6f\x6e\145\x79\x5f\x70\x65\162\x5f\160\157\x69\156\164" => 50000, "\x74\157\164\141\154\x5f\155\x6f\156\x65\171" => 4500000]; } }