<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:01
 namespace App\Http\Controllers; use App\Comment; use App\CommentDetail; use App\Http\Resources\CommentResource; use App\Http\Resources\TopicResource; use App\Quote; use App\Rank; use App\Topic; use http\Env\Response; use Illuminate\Http\Request; use function GuzzleHttp\Psr7\str; use Validator; class CommentController extends Controller { public function topic($JXi5a = 0) { $prdjZ = Topic::select("\x69\x64", "\x63\x6f\144\x65")->published()->where("\x63\157\144\x65", $JXi5a)->first(); if (isset($prdjZ)) { goto A8cAD; } return response()->json(["\x73\164\x61\164\x75\163" => "\x65\162\x72\157\162", "\x6d\145\163\x73\141\x67\145" => "\x54\x6f\x70\151\143\40\151\x73\x20\x6e\157\164\x20\166\x61\x6c\151\x64\x2e"], 403); A8cAD: $rBLYC = Comment::published()->where("\164\157\160\x69\x63\137\x69\144", $prdjZ->id)->orderBy("\x69\x64")->paginate(50); return CommentResource::collection($rBLYC); } public function like($HTuW5 = 0) { goto GezU3; vQQtw: return response()->json(["\163\164\x61\164\165\x73" => "\x73\165\143\x63\x65\163\x73"], 200); goto aDp3S; GezU3: $lmYJ9 = Comment::published()->where("\151\144", $HTuW5)->first(); if (isset($lmYJ9)) { goto CBFf2; } return response()->json(["\x73\x74\141\164\165\163" => "\145\162\162\x6f\x72", "\x6d\145\x73\x73\x61\147\145" => "\x43\157\155\155\145\x6e\x74\40\151\163\40\x6e\157\164\x20\x76\x61\154\x69\144\56"], 403); goto lIm5w; lIm5w: CBFf2: $lmYJ9->like += 1; $lmYJ9->save(); goto vQQtw; aDp3S: } public function dislike($HTuW5 = 0) { goto bhG5p; bhG5p: $lmYJ9 = Comment::published()->where("\x69\144", $HTuW5)->first(); if (isset($lmYJ9)) { goto O08j4; } return response()->json(["\163\x74\x61\164\x75\x73" => "\x65\162\162\157\162", "\x6d\x65\163\163\141\147\x65" => "\103\x6f\x6d\x6d\145\x6e\164\x20\151\x73\x20\156\x6f\x74\40\x76\141\154\151\144\x2e"], 403); goto bN4mK; bN4mK: O08j4: $lmYJ9->dislike += 1; $lmYJ9->save(); goto j65RB; j65RB: return response()->json(["\163\164\x61\164\x75\x73" => "\x73\x75\x63\x63\145\163\x73"], 200); goto CEp8F; CEp8F: } public function store(Request $request) { goto kUAU2; ktcRc: $lmYJ9->save(); $SXQvC = preg_split("\57\x5c\x72\134\156\174\134\162\174\134\156\57", $params["\143\157\x6e\164\145\x6e\x74"]); $R3i8Z = []; goto A680P; BMOIm: if (isset($prdjZ)) { goto mQWGf; } return response()->json(["\163\164\141\x74\165\x73" => "\x65\162\x72\x6f\x72", "\155\x65\x73\x73\141\147\x65" => "\124\x6f\160\x69\x63\40\x69\x73\x20\x6e\x6f\164\x20\166\x61\154\x69\x64\56"], 403); mQWGf: goto HMuUM; LDtWV: x3iMP: $lmYJ9 = Comment::create($TiUHT); if ($params["\x69\x73\137\163\150\x6f\x77\137\151\144"] == true) { goto CuBvM; } goto YfN0z; YfN0z: $tQK3x = Comment::published()->where("\x74\x6f\160\x69\x63\x5f\151\144", $prdjZ->id)->count(); $lmYJ9->idx = $tQK3x == 0 ? 1 : $tQK3x; goto qTCJC; goto VaJmI; HMuUM: $TiUHT = ["\164\x6f\x70\x69\x63\137\x69\144" => $prdjZ->id, "\143\157\x6e\x74\145\156\x74" => $params["\143\157\156\x74\x65\156\164"], "\x6c\151\x6b\145" => 0, "\144\151\x73\x6c\x69\x6b\145" => 0, "\141\165\164\x68\157\162" => !$params["\x69\x73\x5f\x61\156\x6f\156\x79\x6d\157\165\x73"] ? $params["\141\x75\164\150\157\162"] : '', "\151\163\x5f\141\x6e\x6f\156\x79\155\x6f\x75\x73" => $params["\151\x73\137\x61\x6e\157\x6e\x79\155\157\x75\163"], "\151\163\137\x73\150\x6f\167\137\x69\144" => $params["\151\x73\x5f\x73\150\x6f\167\137\x69\x64"], "\151\x73\137\x61\154\x6c\x6f\x77\x5f\x63\x6f\155\x6d\x65\x6e\164" => true, "\x63\x72\145\141\x74\x65\x64\x5f\x61\164" => date("\131\55\x6d\55\144\x20\x48\x3a\x69\72\163"), "\x75\160\x64\x61\x74\x65\x64\x5f\x61\164" => date("\x59\x2d\155\x2d\x64\40\x48\72\x69\x3a\163")]; if (!(isset($params["\150\141\163\137\164\x68\x75\x6d\x62\x6e\141\151\154"]) && $params["\x68\x61\163\x5f\x74\x68\x75\155\x62\x6e\x61\x69\154"] != false && $params["\x74\150\165\155\x62\x6e\x61\x69\x6c"] != '')) { goto x3iMP; } $TiUHT["\x69\x6d\x61\147\145"] = CommentResource::saveImage($params["\x74\x68\x75\155\x62\x6e\x61\151\x6c"]); goto LDtWV; VaJmI: CuBvM: $lmYJ9->idx = $lmYJ9->id; qTCJC: goto ktcRc; JHnYZ: qnIH7: $params = $request->all(); $prdjZ = Topic::select("\x69\x64", "\143\157\x64\145", "\164\157\x74\x61\154\x5f\x63\x6f\x6d\x6d\x65\156\x74")->published()->where("\x63\157\144\145", $params["\143\x6f\x64\145"])->first(); goto BMOIm; dSlzP: if (!(count($R3i8Z) > 0)) { goto YRgKo; } CommentDetail::insert($R3i8Z); YRgKo: goto tI9oy; tI9oy: $prdjZ->total_comment += 1; $prdjZ->save(); return new CommentResource($lmYJ9); goto LJhnp; kUAU2: $VI2ZI = Validator::make($request->all(), ["\143\157\144\145" => ["\x72\145\161\165\151\162\x65\144"], "\143\x6f\x6e\164\145\156\x74" => ["\162\x65\161\x75\151\162\145\x64"]]); if (!$VI2ZI->fails()) { goto qnIH7; } return response()->json(["\x65\162\x72\x6f\162\163" => $VI2ZI->errors()], 403); goto JHnYZ; A680P: $wO5_n = []; foreach ($SXQvC as $e2Dhy) { goto lC2q_; VJTtM: $R3i8Z[] = $CuK_m; goto QoU_O; TK_Xi: goto GBaUu; lC2q_: if (!(!empty($e2Dhy) && $e2Dhy != '')) { goto z2gzq; } $wCIqO = trim($e2Dhy); $wCIqO = str_replace("\15\xa", '', $wCIqO); goto onomv; ZeKHR: $CuK_m["\x64\157\x6d\141\x69\x6e"] = $uWVE1["\x64\x6f\x6d\x61\151\156"]; MhcAB: if (!(isset($uWVE1["\164\151\164\x6c\x65"]) && $uWVE1["\164\151\164\x6c\x65"] != '')) { goto lju7o; } goto ZWgqw; p9c9i: if (!(count($uWVE1) > 0)) { goto xWnLS; } $CuK_m["\151\x73\137\x75\x72\154"] = 1; if (!(isset($uWVE1["\x64\157\155\141\151\x6e"]) && $uWVE1["\144\157\x6d\141\151\x6e"] != '')) { goto MhcAB; } goto ZeKHR; KFdiP: if (!($TiOdr != '' && preg_match("\x23\x5e\150\164\x74\160\163\77\72\57\57\x23\151", $TiOdr) === 1)) { goto hhx84; } $CuK_m["\x74\150\x75\x6d\x62\156\141\x69\154"] = CommentResource::createThumb($TiOdr); $CuK_m["\x63\x75\x72\x72\x65\156\x74\x5f\151\x6d\x67"] = 0; goto N6mGX; AqtJL: goto HOEXd; S5MYt: $CuK_m["\144\x65\163\143\162\x69\x70\164\x69\x6f\x6e"] = $uWVE1["\155\x65\x74\141\124\141\147\x73"]["\144\x65\163\x63\x72\x69\x70\x74\151\157\156"]; goto pG50u; XNhl7: $CuK_m = ["\143\157\155\x6d\145\x6e\x74\137\x69\144" => $lmYJ9->id, "\143\x6f\x6e\164\145\x6e\x74" => $e2Dhy, "\x74\151\164\x6c\145" => '', "\x64\x6f\x6d\141\x69\x6e" => '', "\144\145\163\143\162\x69\160\x74\x69\157\x6e" => '', "\164\x68\x75\155\142\156\x61\x69\154" => "\156\x6f\151\x6d\147\x40\62\x78\56\x70\x6e\x67", "\x63\165\x72\162\x65\x6e\x74\x5f\x69\x6d\x67" => -1, "\151\163\137\165\162\x6c" => 0, "\x63\162\x65\141\x74\145\x64\x5f\x61\x74" => date("\131\x2d\155\x2d\144\40\x48\x3a\x69\x3a\163"), "\165\x70\144\x61\x74\x65\x64\x5f\141\x74" => date("\x59\x2d\155\55\x64\x20\110\x3a\151\x3a\x73")]; if (!(preg_match("\43\x5e\150\x74\164\x70\x73\x3f\x3a\57\x2f\43\x69", $e2Dhy) === 1)) { goto f8KD0; } $uWVE1 = CommentResource::getMetaInfo($e2Dhy); goto p9c9i; x_p15: bes8l: h4tFg: if (!($TiOdr == '' && isset($uWVE1["\155\x65\x74\x61\124\141\147\163"]["\151\x6d\141\147\x65\163"]) && is_array($uWVE1["\x6d\145\164\141\124\141\147\x73"]["\151\x6d\141\147\145\163"]) && count($uWVE1["\155\x65\164\141\x54\141\147\x73"]["\151\155\141\x67\145\x73"]))) { goto lhnJE; } goto yekY9; pG50u: goto HOEXd; thZ3b: $CuK_m["\144\145\x73\x63\x72\x69\160\164\151\x6f\x6e"] = $uWVE1["\155\x65\164\141\124\141\x67\163"]["\x74\x77\151\164\164\x65\162\137\x64\145\x73\x63\162\151\160\x74\151\x6f\156"]; goto z2fM8; LMNUV: Quote::create(["\x70\x61\162\145\x6e\x74\137\x69\144" => $jwdVt->id, "\143\157\155\x6d\x65\156\x74\x5f\151\144" => $lmYJ9->id, "\143\157\x6e\164\x65\x6e\164" => $wCIqO, "\x63\162\x65\x61\x74\x65\x64\x5f\141\x74" => date("\x59\x2d\155\55\144\x20\x48\72\x69\x3a\163"), "\165\160\x64\141\164\145\x64\x5f\x61\164" => date("\131\55\155\x2d\x64\40\110\x3a\x69\x3a\163")]); $wO5_n[] = $TI3Or; R7SuL: goto YZbKg; yekY9: foreach ($uWVE1["\155\145\x74\x61\124\141\147\x73"]["\151\x6d\141\147\145\163"] as $XvabV) { goto iiMB6; qfSy2: goto Bqo3B; l9xkz: $TiOdr = $XvabV["\163\x72\143"]; goto gssOt; oAiX4: goto Bqo3B; BkEhq: $TiOdr = $XvabV["\x64\x61\x74\141\137\163\x72\143"]; goto KnjTH; KnjTH: goto Bqo3B; enC87: $TiOdr = $XvabV["\163\x72\143\137\x73\145\x74"]; goto qfSy2; mBPLz: vfjVh: rPv2c: goto vIA7m; iiMB6: if ($XvabV["\x64\x61\164\x61\137\x73\162\x63"] != '') { goto BkEhq; } if ($XvabV["\x73\162\x63\x5f\x73\145\x74"] != '') { goto enC87; } if ($XvabV["\163\162\x63"] != '') { goto l9xkz; } goto oAiX4; gssOt: Bqo3B: if (!($TiOdr != '')) { goto vfjVh; } goto RQwRu; goto mBPLz; vIA7m: } RQwRu: lhnJE: goto KFdiP; N6mGX: hhx84: xWnLS: f8KD0: goto VJTtM; ZWgqw: $CuK_m["\x74\151\164\x6c\x65"] = $uWVE1["\164\x69\x74\154\x65"]; lju7o: $TiOdr = ''; goto f6EiJ; onomv: $wCIqO = str_replace("\15", '', $wCIqO); $wCIqO = str_replace("\12", '', $wCIqO); if (preg_match("\43\136\76\x3e\x23\x69", $wCIqO) === 1) { goto TK_Xi; } goto XNhl7; f6EiJ: if (!(isset($uWVE1["\x6d\145\164\x61\x54\x61\147\163"]) && is_array($uWVE1["\x6d\x65\x74\141\124\141\x67\163"]) && count($uWVE1["\x6d\145\164\141\124\141\x67\163"]) > 0)) { goto h4tFg; } if (isset($uWVE1["\x6d\x65\164\x61\124\141\x67\163"]["\x64\145\163\x63\x72\x69\160\x74\151\157\156"]) && $uWVE1["\x6d\145\164\x61\x54\x61\x67\x73"]["\144\145\x73\143\x72\151\160\164\151\x6f\156"] != '') { goto S5MYt; } if (isset($uWVE1["\155\145\x74\141\124\x61\147\163"]["\164\167\x69\x74\164\145\x72\137\144\x65\x73\143\162\x69\x70\x74\x69\157\156"]) && $uWVE1["\x6d\145\x74\x61\x54\141\x67\x73"]["\164\167\151\164\x74\x65\162\137\x64\145\163\143\162\151\x70\164\x69\x6f\156"] != '') { goto thZ3b; } goto AqtJL; GBaUu: $TI3Or = str_replace("\76\76", '', $wCIqO); $jwdVt = Comment::published()->where("\164\x6f\160\x69\x63\137\x69\144", $prdjZ->id)->where("\151\144\x78", $TI3Or)->first(); if (!(isset($jwdVt) && !in_array($TI3Or, $wO5_n))) { goto R7SuL; } goto LMNUV; YZbKg: QoU_O: z2gzq: tPKWr: goto YK5Uk; z2fM8: HOEXd: if (!(isset($uWVE1["\x6d\145\x74\x61\x54\x61\147\163"]["\164\167\151\x74\x74\x65\162\137\x69\155\141\x67\145"]) && $uWVE1["\155\145\x74\x61\x54\x61\147\163"]["\164\x77\151\x74\164\x65\162\137\x69\155\x61\x67\145"] != '')) { goto bes8l; } $TiOdr = $uWVE1["\x6d\145\164\x61\x54\141\x67\x73"]["\164\x77\x69\x74\164\145\162\x5f\151\155\x61\x67\145"]; goto x_p15; YK5Uk: } yDfds: goto dSlzP; LJhnp: } public function storeSub($JXi5a = 0, Request $request) { goto D6orT; NCR2R: $prdjZ->total_comment += 1; $prdjZ->save(); $orzwF = Comment::with("\x64\x65\164\x61\x69\154", "\161\165\157\164\145")->where("\x69\144", $lmYJ9->id)->first(); goto jYcYv; P_Jih: $TiUHT = ["\x74\157\x70\151\143\x5f\151\144" => $prdjZ->id, "\143\x6f\156\164\x65\x6e\x74" => $params["\x63\x6f\156\164\x65\x6e\164"], "\154\151\x6b\145" => 0, "\x64\151\x73\154\151\153\145" => 0, "\141\x75\164\150\x6f\162" => !$params["\151\163\x5f\141\156\x6f\156\x79\155\x6f\x75\163"] ? $params["\x61\165\164\150\x6f\x72"] : '', "\x69\163\x5f\x61\x6e\157\x6e\x79\x6d\x6f\x75\163" => $params["\151\x73\137\x61\x6e\157\x6e\x79\155\x6f\x75\x73"], "\151\x73\137\x73\x68\x6f\167\137\x69\x64" => $params["\x69\x73\137\163\150\x6f\167\x5f\151\x64"], "\151\163\x5f\141\154\154\157\x77\x5f\x63\x6f\155\x6d\x65\x6e\x74" => true, "\143\162\145\x61\x74\x65\x64\137\141\164" => date("\x59\55\155\x2d\144\x20\110\72\x69\x3a\x73"), "\x75\160\x64\141\164\x65\144\137\141\x74" => date("\131\55\x6d\x2d\x64\x20\110\72\x69\x3a\163")]; if (!(isset($params["\x68\141\163\137\x74\x68\x75\155\142\x6e\141\151\x6c"]) && $params["\x68\x61\x73\137\164\x68\165\155\142\156\141\151\154"] != false && $params["\164\x68\165\x6d\142\156\141\151\x6c"] != '')) { goto EFz5H; } $TiUHT["\x69\x6d\141\147\x65"] = CommentResource::saveImage($params["\x74\x68\165\155\x62\156\x61\x69\x6c"]); goto kXpMq; jYP8C: ShYJl: $lmYJ9->idx = $lmYJ9->id; eaBoC: goto qee8f; kXpMq: EFz5H: $lmYJ9 = Comment::create($TiUHT); if ($params["\x69\163\137\x73\150\157\x77\x5f\x69\144"] == true) { goto ShYJl; } goto nacuR; PgS0M: BvOuS: $params = $request->all(); $prdjZ = Topic::select("\151\x64", "\x63\157\x64\145", "\x74\x6f\164\141\x6c\x5f\143\x6f\155\155\x65\156\x74")->published()->where("\143\x6f\x64\x65", $JXi5a)->first(); goto hmxEq; hBWIG: if (!(count($R3i8Z) > 0)) { goto YkS0b; } CommentDetail::insert($R3i8Z); YkS0b: goto NCR2R; D6orT: $VI2ZI = Validator::make($request->all(), ["\143\157\156\164\x65\156\x74" => ["\x72\145\x71\x75\151\162\x65\x64"]]); if (!$VI2ZI->fails()) { goto BvOuS; } return response()->json(["\x65\x72\x72\x6f\x72\163" => $VI2ZI->errors()], 403); goto PgS0M; nacuR: $tQK3x = Comment::published()->where("\x74\x6f\x70\151\143\137\x69\x64", $prdjZ->id)->count(); $lmYJ9->idx = $tQK3x == 0 ? 1 : $tQK3x; goto eaBoC; goto jYP8C; jYcYv: return response()->json(["\x64\141\x74\x61" => $orzwF], 200); goto ZcF5N; qee8f: $lmYJ9->save(); $SXQvC = preg_split("\57\134\162\x5c\x6e\174\134\162\x7c\134\156\57", $params["\x63\x6f\156\164\x65\x6e\164"]); $R3i8Z = []; goto M4WZT; hmxEq: if (isset($prdjZ)) { goto wLO3J; } return response()->json(["\144\x61\x74\x61" => ["\163\x74\141\164\165\163" => "\145\x72\x72\x6f\162", "\x6d\145\x73\x73\x61\147\x65" => "\x54\x6f\x70\x69\143\x20\x69\163\40\x6e\157\x74\x20\x76\141\154\151\144\x2e"]], 403); wLO3J: goto P_Jih; M4WZT: $wO5_n = []; foreach ($SXQvC as $e2Dhy) { goto Mc9Ax; QB1__: $CuK_m["\x64\157\155\141\x69\156"] = $uWVE1["\x64\x6f\x6d\141\151\x6e"]; sZ9Fj: if (!(isset($uWVE1["\164\151\x74\154\145"]) && $uWVE1["\x74\151\164\154\x65"] != '')) { goto hYuN9; } goto A1dCF; Tl_xc: D1yR3: if (!(isset($uWVE1["\x6d\x65\164\x61\x54\141\x67\x73"]["\x74\167\x69\164\x74\x65\x72\x5f\x69\155\141\147\x65"]) && $uWVE1["\155\145\x74\x61\124\x61\147\163"]["\x74\167\151\164\x74\x65\162\x5f\151\x6d\x61\147\x65"] != '')) { goto Lyg58; } $TiOdr = $uWVE1["\155\x65\164\141\x54\x61\x67\163"]["\164\167\151\164\164\145\162\x5f\x69\155\141\x67\145"]; goto iW9z0; COr6J: if (!(count($uWVE1) > 0)) { goto lPhlm; } $CuK_m["\x69\x73\x5f\165\162\154"] = 1; if (!(isset($uWVE1["\x64\x6f\155\x61\151\156"]) && $uWVE1["\x64\x6f\x6d\x61\151\x6e"] != '')) { goto sZ9Fj; } goto QB1__; xHEpl: if (!($TiOdr != '' && preg_match("\43\136\150\164\164\x70\163\77\x3a\57\57\43\151", $TiOdr) === 1)) { goto bjw97; } $CuK_m["\164\x68\165\x6d\142\x6e\x61\151\154"] = CommentResource::createThumb($TiOdr); $CuK_m["\x63\165\162\x72\145\x6e\164\137\x69\x6d\x67"] = 0; goto N_qAJ; mnZ8O: Quote::create(["\160\x61\x72\145\x6e\164\137\x69\144" => $jwdVt->id, "\x63\157\155\155\x65\156\164\x5f\151\144" => $lmYJ9->id, "\x63\157\156\x74\145\156\x74" => $wCIqO, "\x63\162\x65\141\x74\145\144\137\141\164" => date("\x59\55\155\x2d\x64\x20\110\x3a\x69\72\163"), "\165\x70\x64\x61\164\x65\x64\x5f\x61\x74" => date("\131\x2d\x6d\x2d\x64\x20\110\72\x69\x3a\163")]); $wO5_n[] = $TI3Or; Q1ZKe: goto ONBlS; iW9z0: Lyg58: dMHlP: if (!($TiOdr == '' && isset($uWVE1["\x6d\145\x74\141\124\x61\x67\x73"]["\x69\155\x61\x67\x65\163"]) && is_array($uWVE1["\x6d\145\x74\141\124\141\x67\x73"]["\x69\155\x61\147\x65\163"]) && count($uWVE1["\x6d\x65\x74\141\124\x61\x67\x73"]["\151\155\141\x67\145\x73"]))) { goto mnu33; } goto rjrvv; Mc9Ax: if (!(!empty($e2Dhy) && $e2Dhy != '')) { goto oFrwh; } $wCIqO = trim($e2Dhy); $wCIqO = str_replace("\15\xa", '', $wCIqO); goto h_kmp; h_kmp: $wCIqO = str_replace("\15", '', $wCIqO); $wCIqO = str_replace("\12", '', $wCIqO); if (preg_match("\43\136\x3e\76\43\151", $wCIqO) === 1) { goto q5iJO; } goto pzONL; pzONL: $CuK_m = ["\x63\157\155\x6d\145\x6e\164\137\x69\x64" => $lmYJ9->id, "\x63\157\156\164\x65\156\x74" => $e2Dhy, "\164\x69\x74\x6c\x65" => '', "\144\x6f\x6d\x61\151\x6e" => '', "\144\145\x73\143\162\151\160\164\x69\x6f\156" => '', "\x74\150\165\155\x62\x6e\141\x69\154" => "\x6e\157\151\x6d\147\100\62\x78\x2e\160\156\147", "\x63\x75\x72\162\145\x6e\x74\137\x69\x6d\x67" => -1, "\151\163\137\x75\x72\154" => 0, "\143\162\x65\x61\x74\x65\144\137\141\164" => date("\131\55\x6d\x2d\x64\40\110\72\x69\72\x73"), "\165\160\144\141\164\145\x64\x5f\141\164" => date("\x59\55\x6d\55\144\x20\110\72\x69\x3a\163")]; if (!(preg_match("\43\136\x68\x74\x74\x70\163\77\72\57\x2f\x23\151", $e2Dhy) === 1)) { goto Migv5; } $uWVE1 = CommentResource::getMetaInfo($e2Dhy); goto COr6J; ONBlS: v0GBM: oFrwh: TfH7w: goto z7DWY; Cnl5O: if (!(isset($uWVE1["\155\145\x74\x61\124\141\147\x73"]) && is_array($uWVE1["\155\x65\164\141\124\x61\x67\x73"]) && count($uWVE1["\x6d\x65\x74\x61\x54\x61\x67\163"]) > 0)) { goto dMHlP; } if (isset($uWVE1["\155\x65\164\141\124\x61\x67\x73"]["\x64\x65\163\x63\x72\x69\x70\164\151\157\156"]) && $uWVE1["\x6d\x65\x74\x61\x54\x61\x67\163"]["\144\x65\163\143\x72\x69\160\x74\151\x6f\x6e"] != '') { goto SfXby; } if (isset($uWVE1["\155\145\164\141\x54\141\x67\x73"]["\164\167\151\164\x74\145\162\137\144\x65\163\143\162\x69\x70\x74\x69\157\x6e"]) && $uWVE1["\x6d\x65\164\x61\x54\x61\x67\163"]["\164\x77\151\164\164\145\x72\137\144\x65\163\143\x72\x69\x70\164\x69\157\156"] != '') { goto gbuNE; } goto ksnaB; N_qAJ: bjw97: lPhlm: Migv5: goto i4250; A1dCF: $CuK_m["\164\x69\164\x6c\x65"] = $uWVE1["\164\x69\x74\x6c\145"]; hYuN9: $TiOdr = ''; goto Cnl5O; i4250: $R3i8Z[] = $CuK_m; goto v0GBM; q5iJO: goto gaI3l; cb2Sd: goto D1yR3; gbuNE: $CuK_m["\144\x65\x73\x63\162\151\x70\164\151\x6f\156"] = $uWVE1["\x6d\145\164\141\124\141\147\163"]["\x74\x77\151\x74\164\x65\x72\137\144\x65\163\143\162\x69\160\x74\151\157\x6e"]; goto Tl_xc; gaI3l: $TI3Or = str_replace("\76\x3e", '', $wCIqO); $jwdVt = Comment::published()->where("\x74\157\160\151\x63\x5f\x69\x64", $prdjZ->id)->where("\151\x64\x78", $TI3Or)->first(); if (!(isset($jwdVt) && !in_array($TI3Or, $wO5_n))) { goto Q1ZKe; } goto mnZ8O; rjrvv: foreach ($uWVE1["\155\145\x74\141\x54\141\147\x73"]["\x69\155\x61\147\145\163"] as $XvabV) { goto JdS9y; JdS9y: if ($XvabV["\x64\x61\x74\141\137\163\162\143"] != '') { goto ORimg; } if ($XvabV["\x73\x72\x63\137\x73\x65\x74"] != '') { goto z9Y1K; } if ($XvabV["\163\162\143"] != '') { goto b3Uaa; } goto gt642; IdlP3: Tf6bA: XZXrL: goto fZKtm; PNR2I: goto zeyxp; z9Y1K: $TiOdr = $XvabV["\x73\x72\x63\x5f\163\145\164"]; goto UmYwN; UmYwN: goto zeyxp; b3Uaa: $TiOdr = $XvabV["\x73\x72\x63"]; goto TMHj_; TMHj_: zeyxp: if (!($TiOdr != '')) { goto Tf6bA; } goto AbHaX; goto IdlP3; gt642: goto zeyxp; ORimg: $TiOdr = $XvabV["\x64\141\164\x61\x5f\163\162\143"]; goto PNR2I; fZKtm: } AbHaX: mnu33: goto xHEpl; ksnaB: goto D1yR3; SfXby: $CuK_m["\x64\145\163\x63\x72\x69\x70\164\x69\157\x6e"] = $uWVE1["\155\x65\x74\x61\124\141\x67\163"]["\144\x65\x73\x63\162\151\x70\164\x69\x6f\156"]; goto cb2Sd; z7DWY: } c6Nea: goto hBWIG; ZcF5N: } public function getPaginate($JXi5a = 0, $JBSmE = 1) { goto nLQsl; DElQ1: $Jghbl["\154\151\163\x74"][] = $JBSmE - 2; $Jghbl["\154\151\163\164"][] = $JBSmE - 1; $Jghbl["\154\151\163\x74"][] = $JBSmE; goto UZ_wr; JxOCJ: goto ySKb1; je6pf: goto ZO4_M; goto Ls8C_; Z6tys: $Jghbl["\x6c\x69\163\164"][] = $iabl1 - 1; $Jghbl["\x6c\151\163\x74"][] = $iabl1; dz7gQ: goto DJJ4c; nLQsl: $JBSmE = (int) $JBSmE; $prdjZ = Topic::select("\151\x64", "\143\x6f\144\x65")->published()->where("\x63\x6f\144\x65", $JXi5a)->first(); $Jghbl = ["\146\151\162\x73\x74" => 1, "\x70\x72\145\166" => $JBSmE > 1 ? $JBSmE - 1 : null, "\x63\x75\162\x72\x65\x6e\164\137\x70\141\147\x65" => $JBSmE, "\156\145\x78\x74" => null, "\x6c\141\163\x74" => null, "\164\x6f\x74\141\x6c" => null, "\154\x69\x73\164" => []]; goto dv6Dx; Ty4vM: $Jghbl["\154\151\163\164"][] = $JBSmE - 2; PNjHB: if (!($JBSmE - 1 > 0)) { goto XFSM5; } goto M1Ee6; QjtuC: if (!($qvJIc % 500 != 0)) { goto Gzvxl; } $iabl1 += 1; Gzvxl: goto R06wu; R06wu: $Jghbl["\x74\157\x74\141\x6c"] = $qvJIc; $Jghbl["\154\141\x73\x74"] = $iabl1; $Jghbl["\x6e\x65\170\164"] = $JBSmE < $iabl1 ? $JBSmE + 1 : null; goto vcUrK; vOUIM: $Jghbl["\x6c\151\163\x74"][] = $JBSmE + 1; $Jghbl["\x6c\x69\x73\x74"][] = $JBSmE + 2; $Jghbl["\154\151\163\164"][] = "\56\56\56"; goto tsJjE; bDmHG: mOcr3: if (!($NLbgt <= $iabl1)) { goto h4QCK; } $Jghbl["\154\151\163\x74"][] = $NLbgt; goto jGUYk; gQD0E: $Jghbl["\x6c\151\163\164"][] = "\x2e\x2e\56"; $Jghbl["\x6c\x69\x73\x74"][] = $JBSmE - 1; $Jghbl["\x6c\x69\163\x74"][] = $JBSmE; goto vOUIM; Ls8C_: N5FHD: $Jghbl["\x6c\151\x73\x74"][] = 1; $Jghbl["\x6c\x69\x73\164"][] = 2; goto gQD0E; M1Ee6: $Jghbl["\x6c\x69\163\164"][] = $JBSmE - 1; XFSM5: $Jghbl["\154\151\163\164"][] = $JBSmE; goto uhIxg; Exke9: $Jghbl["\x6c\x69\163\x74"][] = $NLbgt; ksmYJ: $NLbgt++; goto JxOCJ; gNYB7: return response()->json(["\x64\x61\x74\141" => $Jghbl], 200); goto dcJG2; DJJ4c: goto owMTD; yx561: $NLbgt = 1; goto bDmHG; vcUrK: if ($iabl1 <= 10) { goto yx561; } if ($JBSmE <= 4) { goto HtfzQ; } if ($JBSmE < $iabl1 - 4) { goto N5FHD; } goto m85xN; UZ_wr: $NLbgt = $JBSmE + 1; ySKb1: if (!($NLbgt <= $iabl1)) { goto je6pf; } goto Exke9; m85xN: $Jghbl["\x6c\151\x73\164"][] = 1; $Jghbl["\154\151\x73\x74"][] = 2; $Jghbl["\154\151\x73\164"][] = "\x2e\56\56"; goto DElQ1; pvVwx: h4QCK: owMTD: mHLgs: goto gNYB7; dv6Dx: if (!isset($prdjZ)) { goto mHLgs; } $qvJIc = Comment::published()->where("\164\157\160\x69\x63\x5f\151\x64", $prdjZ->id)->count(); $iabl1 = floor($qvJIc / 500); goto QjtuC; tsJjE: $Jghbl["\154\x69\x73\164"][] = $iabl1 - 1; $Jghbl["\154\151\x73\x74"][] = $iabl1; ZO4_M: goto rgFFi; jGUYk: FYRfD: $NLbgt++; goto mOcr3; goto pvVwx; rue4P: $Jghbl["\x6c\x69\163\x74"][] = $JBSmE - 3; PX3dS: if (!($JBSmE - 2 > 0)) { goto PNjHB; } goto Ty4vM; rgFFi: goto dz7gQ; HtfzQ: if (!($JBSmE - 3 > 0)) { goto PX3dS; } goto rue4P; uhIxg: $Jghbl["\x6c\x69\163\x74"][] = $JBSmE + 1; $Jghbl["\154\x69\163\164"][] = $JBSmE + 2; $Jghbl["\154\x69\x73\x74"][] = "\x2e\x2e\56"; goto Z6tys; dcJG2: } public function show($JXi5a = 0, $xCATt = 0) { goto zFvVm; QjeLw: return response()->json(["\x64\x61\x74\x61" => ["\x73\164\141\x74\165\x73" => "\145\162\162\x6f\x72", "\x6d\x65\x73\x73\141\147\x65" => "\x43\x6f\x6d\x6d\x65\156\x74\40\x69\x73\40\x6e\x6f\164\40\166\141\x6c\151\144\x2e"]], 403); wLn66: return new CommentResource($lmYJ9); goto V0yiZ; zFvVm: $prdjZ = Topic::select("\x69\x64", "\143\x6f\144\x65")->published()->where("\143\x6f\144\145", $JXi5a)->first(); if (isset($prdjZ)) { goto o5kyx; } return response()->json(["\x64\x61\164\141" => ["\163\x74\x61\x74\165\163" => "\x65\x72\x72\x6f\162", "\x6d\145\163\163\x61\147\x65" => "\124\x6f\x70\x69\143\x20\x69\x73\40\156\x6f\x74\x20\x76\x61\x6c\151\144\56"]], 403); goto oBgJF; oBgJF: o5kyx: $lmYJ9 = Comment::with("\144\x65\x74\x61\x69\x6c")->published()->where("\164\x6f\160\151\143\x5f\x69\x64", $prdjZ->id)->where("\151\144\x78", $xCATt)->first(); if (isset($lmYJ9)) { goto wLn66; } goto QjeLw; V0yiZ: } public function getSubComment($JXi5a = 0, $xCATt = 0) { goto dRjcu; dRjcu: $prdjZ = Topic::select("\151\144", "\x63\x6f\x64\145")->published()->where("\143\157\144\145", $JXi5a)->first(); if (isset($prdjZ)) { goto ZNHrK; } return response()->json(["\144\141\164\x61" => ["\163\x74\141\x74\165\x73" => "\145\162\162\157\x72", "\x6d\x65\163\163\x61\147\145" => "\x54\x6f\160\x69\143\x20\x69\163\x20\156\157\164\x20\166\141\x6c\151\144\56"]], 403); goto KBlFk; KBlFk: ZNHrK: $lmYJ9 = Comment::published()->where("\164\157\160\151\x63\137\x69\144", $prdjZ->id)->where("\x69\144\170", $xCATt)->first(); if (isset($lmYJ9)) { goto SzEYl; } goto qfiPh; qfiPh: return response()->json(["\x64\x61\x74\141" => ["\163\164\x61\x74\165\163" => "\145\x72\162\157\x72", "\155\x65\163\163\x61\x67\145" => "\103\157\x6d\155\145\156\164\40\x69\163\40\156\x6f\164\40\166\141\x6c\151\144\x2e"]], 403); SzEYl: $dyDwW = Quote::with("\143\157\x6d\155\145\x6e\164")->where("\160\x61\162\145\x6e\164\137\151\x64", $lmYJ9->id)->orderBy("\x69\144")->paginate(200); goto esSQv; esSQv: return response()->json($dyDwW, 200); goto A_eQG; A_eQG: } }