<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:03
 namespace App\Http\Controllers; use App\Http\Resources\MenuResource; use Illuminate\Support\Facades\Cache; use App\Menu; class MenuController extends Controller { const ITEM_PER_PAGE = 25; public function index() { $qSuSG = Menu::with("\163\x6c\151\144\x65\162")->select("\x69\144", "\x6e\141\155\x65", "\x74\x79\160\145", "\x6c\151\156\153", "\143\141\164\145\147\x6f\x72\x79\x5f\x69\144", "\x70\141\x72\x65\x6e\164\x5f\151\144")->isPublished()->orderBy("\x6f\x72\144\x65\162")->orderBy("\x69\144")->get(); $FBnMd = $this->getChildItems($qSuSG, 0); return response()->json(["\x64\141\164\x61" => $FBnMd], 200); } public function getChildItems($qSuSG, $eTKPE = 0) { $FBnMd = []; foreach ($qSuSG as $Y28S5) { if (!($Y28S5->parent_id == $eTKPE)) { goto bHs0_; } $Y28S5["\x65\154\145\155\x65\x6e\164\x73"] = $this->getChildItems($qSuSG, $Y28S5->id); $Y28S5["\150\141\163\103\150\x69\154\x64"] = count($Y28S5["\x65\x6c\145\x6d\x65\156\x74\x73"]) > 0 ? true : false; $FBnMd[] = $Y28S5; bHs0_: kLSyp: } djbAl: return $FBnMd; } public function header() { $qSuSG = Cache::remember("\155\x65\156\165\x5f\150\145\x61\x64\145\162", 7 * 24 * 60 * 60, function () { $tRryv = Menu::with("\163\x6c\151\x64\x65\162")->select("\x69\144", "\x6e\141\x6d\x65", "\x74\171\x70\x65", "\x6c\151\x6e\x6b", "\160\157\x73\x69\164\151\157\156")->isPublished()->where("\x70\157\x73\x69\164\151\x6f\156", "\x68\x65\141\144\145\162")->orderBy("\x6f\x72\144\x65\162")->orderBy("\x69\144")->get(); return ["\151\x74\x65\x6d\163" => $tRryv, "\x6c\141\163\164\115\x6f\144\x69\x66\171" => gmdate("\x44\54\40\144\x20\x4d\40\131\40\110\72\x69\72\x73") . "\x20\107\115\124"]; }); return response()->json(["\x64\x61\x74\141" => $qSuSG["\x69\164\x65\x6d\163"]], 200)->header("\114\x61\x73\164\55\x4d\x6f\x64\x69\146\x69\145\144", $qSuSG["\154\x61\x73\164\x4d\x6f\x64\151\146\171"]); } public function footer() { $qSuSG = Cache::remember("\155\145\156\x75\x5f\x66\x6f\157\164\145\162", 7 * 24 * 60 * 60, function () { $tRryv = Menu::with("\x73\x6c\151\144\x65\x72")->select("\151\x64", "\x6e\141\x6d\145", "\164\171\160\x65", "\154\x69\x6e\153", "\160\157\x73\x69\164\151\x6f\x6e")->isPublished()->where("\x70\x6f\x73\151\164\151\x6f\156", "\x66\157\157\x74\x65\x72")->orderBy("\x6f\x72\x64\145\162")->orderBy("\x69\x64")->get(); return ["\151\164\145\x6d\163" => $tRryv, "\x6c\141\163\x74\115\x6f\x64\x69\146\x79" => gmdate("\x44\54\x20\144\x20\x4d\x20\131\x20\x48\x3a\151\72\x73") . "\x20\x47\x4d\124"]; }); return response()->json(["\x64\141\164\x61" => $qSuSG["\151\164\145\155\x73"]], 200)->header("\x4c\x61\163\164\x2d\115\157\144\151\x66\151\x65\144", $qSuSG["\x6c\141\163\x74\115\x6f\144\x69\x66\171"]); } }