<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:58
 namespace App\Http\Controllers\Admin; use App\Events\SaveDataEvent; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Arr; use App\Http\Resources\Admin\SeoResource; use Illuminate\Support\Facades\Artisan; use Validator; use App\Seo; use App\SeoFormat; use App\Article; class SeoController extends Controller { const ITEM_PER_PAGE = 20; public function index(Request $request) { goto emmv4; BGvH_: $g5oSI->where("\x69\x73\137\141\143\164\x69\x76\x61\x74\x65\144", $bxBFE); rJRh3: $g5oSI->orderBy("\x75\162\x69"); goto LeFgY; emmv4: $rkJHT = $request->all(); $g5oSI = Seo::select("\x2a"); $A4GVy = Arr::get($rkJHT, "\154\151\x6d\151\x74", static::ITEM_PER_PAGE); goto I38h7; mQvJO: $g5oSI->where("\165\x72\151", "\114\111\113\105", "\x25" . $VfT6n . "\x25"); m0zOs: if (!($bxBFE != '')) { goto rJRh3; } goto BGvH_; LeFgY: return SeoResource::collection($g5oSI->paginate($A4GVy)); goto GXPpq; I38h7: $VfT6n = Arr::get($rkJHT, "\x6b\x65\171\167\157\x72\144", ''); $bxBFE = Arr::get($rkJHT, "\163\164\141\164\165\x73", ''); if (empty($VfT6n)) { goto m0zOs; } goto mQvJO; GXPpq: } public function all() { $g5oSI = Seo::select("\x69\144", "\165\x72\151", "\164\151\x74\154\145", "\x6b\x65\x79\167\x6f\162\144\x73", "\x64\145\x73\143\x72\x69\x70\164\151\x6f\x6e", "\151\x6d\x61\147\145", "\x69\x73\x5f\141\155\160")->orderBy("\x69\x64"); return SeoResource::collection($g5oSI->get()); } public function show($hvlbd = 0) { $VjUGt = Seo::where("\151\x64", $hvlbd)->first(); if (isset($VjUGt)) { goto CQnDX; } return response()->json(["\145\162\162\x6f\x72\x73" => "\x53\x65\x6f\x20\x69\x73\40\x6e\157\x74\40\166\141\x6c\x69\x64"], 403); CQnDX: return new SeoResource($VjUGt); } public function seoFormat() { $XXtFl = SeoFormat::all(); return response()->json(["\144\141\x74\141" => $XXtFl], 200); } public function seoCheck(Request $request) { goto g0ITf; JORw8: if (!(isset($VjUGt) && $VjUGt->id != null)) { goto IbLYu; } $NQALy = ["\163\164\x61\164\165\x73" => "\x73\165\143\143\145\x73\x73", "\x69\x64" => $VjUGt->id]; IbLYu: goto X15ix; X15ix: return response()->json($NQALy, 200); goto D9z8B; g0ITf: $zPdL0 = $request->get("\x75\x72\151"); $VjUGt = Seo::where("\x75\x72\151", $zPdL0)->first(); $NQALy = ["\163\x74\x61\164\x75\x73" => "\145\x72\x72\157\162", "\x69\x64" => null]; goto JORw8; D9z8B: } public function noteArticleSeo(Request $request) { goto QFzaT; nHL9J: vB5L3: $params = $request->all(); $params["\144\145\x73\x63\x72\151\160\164\151\157\156"] = trim($params["\144\x65\163\143\162\x69\160\164\151\x6f\156"]); goto Pp0eQ; ga7jq: if (!($Lkoli != '' && strpos($Lkoli, $Zvk9y) !== false)) { goto ai7_R; } $HDDr2 = 1; nArKl: goto ZCx8S; GcPxO: goto nArKl; iQa7J: ai7_R: goto rk589; rgoh0: $g5oSI = Article::where("\x69\163\137\x64\x65\x6c\145\164\x65\144", false)->get(); foreach ($g5oSI as $SZGgF) { goto svEvp; lVk75: $teZZc["\165\160\x64\141\164\x65\144\137\x61\164"] = date("\131\55\155\55\x64\40\x48\x3a\151\72\x73"); Seo::where("\165\x72\x69", $zPdL0)->update($teZZc); $DoaSS++; goto YhoBq; svEvp: $zPdL0 = $G0XrO . $SZGgF->slug; $wtcZY = str_replace("\x25\x74\x69\164\x6c\x65\x25", $SZGgF->title, $params["\x74\151\164\154\x65"]); $wtcZY = str_replace("\45\x74\151\164\x6c\145\40\45", $SZGgF->title, $wtcZY); goto jRFT0; cZSpe: $bemek = trim($bemek); if (!(trim($bemek) == "\45\143\x6f\156\x74\145\156\x74\174" . $VQDxU . "\x25")) { goto ADd1i; } $bemek = ''; goto rMznP; phrYC: goto JRg4w; MjMdF: $teZZc = []; goto no5QT; YhoBq: LXBV_: JRg4w: W5gn1: goto vklAa; c2T_H: $teZZc = $NQALy; clrR6: if (!(count($teZZc) > 0)) { goto LXBV_; } goto lVk75; k5BlA: $xnPFh = Seo::where("\x75\162\151", $zPdL0)->first(); if (isset($xnPFh) && $xnPFh->id != null) { goto MjMdF; } $NQALy["\x63\x72\x65\141\164\145\144\137\x61\x74"] = date("\x59\x2d\x6d\55\144\x20\110\72\x69\x3a\x73"); goto heeO0; CsZSY: $Sgvxt = str_replace("\x26\156\142\163\x70\73", "\40", $Sgvxt); $LYH22 = mb_substr(trim($Sgvxt), 0, $VQDxU); $bemek = str_replace("\x25\143\157\156\x74\145\156\164\174" . $VQDxU . "\x25", $LYH22, $bemek); goto LD1MD; rMznP: ADd1i: $Rz6Uf = str_replace("\x25\x74\x69\164\154\x65\45", $SZGgF->title, $params["\x6b\x65\x79\167\x6f\162\144\163"]); $Rz6Uf = str_replace("\x25\x20\164\x69\164\154\145\x25", $SZGgF->title, $Rz6Uf); goto B9ArV; aKMHi: $bemek = str_replace("\45\40\143\x6f\x6e\x74\x65\x6e\164\40\x7c", "\x25\x63\x6f\156\x74\x65\156\x74\x7c", $bemek); $bemek = str_replace("\45\x63\x6f\x6e\164\145\156\164\x7c\x20" . $VQDxU . "\x20\x25", "\45\143\x6f\x6e\164\145\156\164\174" . $VQDxU . "\45", $bemek); $bemek = str_replace("\45\143\157\156\164\145\x6e\x74\x7c" . $VQDxU . "\x20\x25", "\x25\143\157\156\164\x65\156\x74\x7c" . $VQDxU . "\x25", $bemek); goto GiWZ0; S1Nhn: thV0S: if (!($xnPFh->description == null && $xnPFh->description == '')) { goto Z8Q7u; } $teZZc["\x64\145\163\x63\162\x69\160\164\151\x6f\156"] = $NQALy["\144\145\163\x63\x72\x69\160\164\x69\157\x6e"]; goto yJhxz; KZNfW: if (!($VQDxU != '' && is_numeric($VQDxU))) { goto xPZ5L; } $bemek = str_replace("\45\40\x63\157\156\x74\145\156\x74\40\x7c", "\45\x63\157\156\x74\x65\x6e\164\x7c", $bemek); $bemek = str_replace("\45\143\x6f\156\164\145\156\164\40\174", "\x25\x63\x6f\156\164\x65\156\x74\x7c", $bemek); goto aKMHi; jRFT0: $wtcZY = str_replace("\x25\x20\x74\x69\164\154\145\45", $SZGgF->title, $wtcZY); $wtcZY = str_replace("\x25\40\164\151\x74\154\145\40\45", $SZGgF->title, $wtcZY); $bemek = str_replace("\x25\164\151\x74\154\145\45", $SZGgF->title, $params["\144\145\x73\x63\162\x69\x70\164\x69\157\x6e"]); goto I8OVR; LD1MD: oJxiN: xPZ5L: $bemek = str_replace("\15\12", '', $bemek); goto cfdku; yJhxz: Z8Q7u: goto clrR6; xu8Rf: goto c2T_H; cfdku: $bemek = str_replace("\xd", '', $bemek); $bemek = str_replace("\12", '', $bemek); $bemek = str_replace("\x26\156\142\163\x70\73", "\x20", $bemek); goto cZSpe; GWAg2: UKQXo: if (!($xnPFh->keywords == null && $xnPFh->keywords == '')) { goto thV0S; } $teZZc["\x6b\x65\x79\167\x6f\x72\x64\x73"] = $NQALy["\x6b\145\171\x77\x6f\x72\x64\163"]; goto S1Nhn; heeO0: $NQALy["\x75\x70\x64\x61\164\145\144\x5f\141\x74"] = date("\131\x2d\155\x2d\144\x20\x48\72\151\72\163"); Seo::create($NQALy); $tQaGv++; goto phrYC; GiWZ0: $bemek = str_replace("\x25\x63\x6f\156\x74\145\156\x74\174\x20" . $VQDxU . "\45", "\45\x63\157\x6e\x74\145\156\x74\x7c" . $VQDxU . "\45", $bemek); if (!($SZGgF->content != null && $SZGgF->content != '')) { goto oJxiN; } $Sgvxt = strip_tags($SZGgF->content); goto CsZSY; no5QT: if ($params["\x6f\166\145\x72\x72\x69\x64\x65"] == true || $params["\157\166\x65\x72\x72\x69\144\145"] == "\x74\x72\165\145" || $params["\x6f\x76\x65\162\162\151\144\145"] == 1 && $params["\157\166\x65\x72\162\151\x64\145"] == "\61") { goto xu8Rf; } if (!($xnPFh->title == null && $xnPFh->title == '')) { goto UKQXo; } $teZZc["\x74\151\164\154\145"] = $NQALy["\x74\x69\164\154\x65"]; goto GWAg2; I8OVR: $bemek = str_replace("\x25\x20\x74\x69\x74\154\x65\45", $SZGgF->title, $bemek); $bemek = str_replace("\x25\164\151\x74\x6c\x65\x20\45", $SZGgF->title, $bemek); $bemek = str_replace("\x25\40\164\x69\164\154\x65\x20\45", $SZGgF->title, $bemek); goto KZNfW; B9ArV: $Rz6Uf = str_replace("\x25\x74\151\x74\154\x65\x20\x25", $SZGgF->title, $Rz6Uf); $Rz6Uf = str_replace("\45\40\164\151\164\x6c\145\x20\x25", $SZGgF->title, $Rz6Uf); $NQALy = ["\x75\162\151" => $zPdL0, "\164\151\164\x6c\x65" => $wtcZY, "\x6b\145\171\167\157\162\x64\x73" => $Rz6Uf, "\144\145\x73\x63\x72\151\160\164\x69\x6f\156" => $bemek, "\x74\171\x70\x65" => "\x6e\157\x74\145\137\141\162\x74\x69\x63\154\145", "\x70\x6f\x73\x74\137\x69\144" => $SZGgF->id]; goto k5BlA; vklAa: } If4gg: goto Igm9q; Pp0eQ: $Lkoli = trim($params["\x64\x65\163\x63\162\151\x70\164\151\x6f\x6e"]); $Lkoli = str_replace("\45\x20\x63\157\x6e\164\145\x6e\164\x20\174", "\x25\x63\157\156\164\145\156\164\174", $Lkoli); $Lkoli = str_replace("\45\143\157\156\x74\145\x6e\x74\x20\174", "\45\143\x6f\156\x74\145\x6e\x74\x7c", $Lkoli); goto XUXcF; QFzaT: $Oh54c = Validator::make($request->all(), ["\164\151\164\x6c\x65" => ["\162\x65\x71\x75\151\162\x65\144"], "\x64\x65\163\x63\162\x69\x70\x74\151\x6f\156" => ["\162\145\x71\x75\x69\x72\x65\144"]]); if (!$Oh54c->fails()) { goto vB5L3; } return response()->json(["\x65\x72\x72\157\162\163" => $Oh54c->errors()], 403); goto nHL9J; rk589: $G0XrO = "\57\x6e\x6f\x74\x65\57\x61\162\x74\x69\143\x6c\x65\x2f"; if (!($params["\157\166\x65\x72\x72\x69\144\x65"] == true || $params["\157\x76\145\162\162\x69\144\145"] == "\164\162\165\145" || $params["\x6f\x76\x65\x72\162\151\144\x65"] == 1 && $params["\157\166\145\162\x72\151\144\x65"] == "\61")) { goto Q4HWv; } Seo::where("\x75\162\151", "\154\151\x6b\x65", $G0XrO . "\x25")->delete(); goto PwBbn; PwBbn: Q4HWv: $DoaSS = 0; $tQaGv = 0; goto rgoh0; XUXcF: $Lkoli = str_replace("\45\40\143\157\x6e\x74\x65\156\x74\x7c", "\x25\x63\x6f\x6e\x74\145\x6e\x74\174", $Lkoli); $VQDxU = ''; $Zvk9y = "\45\x63\x6f\156\164\145\156\164\174"; goto ga7jq; Igm9q: SeoFormat::where("\164\x79\x70\145", "\x6e\x6f\164\x65\137\141\x72\164\x69\x63\154\145")->update(["\x74\151\164\x6c\145" => $params["\164\x69\x74\154\x65"], "\x6b\x65\171\x77\157\162\x64\x73" => $params["\153\145\x79\x77\x6f\x72\x64\163"], "\x64\x65\x73\x63\162\151\160\164\151\157\x6e" => $params["\x64\x65\x73\x63\162\x69\160\164\x69\157\156"], "\165\160\144\141\164\145\144\137\x61\x74" => date("\x59\55\155\x2d\144\40\x48\x3a\151\72\163")]); Artisan::call("\143\141\143\150\x65\72\x63\x6c\145\141\162"); return response()->json(["\x64\141\x74\x61" => ["\163\164\x61\164\165\x73" => "\x73\165\x63\x63\145\x73\163", "\143\x72\x65\141\164\x65\x64" => $tQaGv, "\x75\x70\144\x61\164\x65\144" => $DoaSS]], 200); goto yLzej; ZCx8S: if (!($HDDr2 <= 1000)) { goto iQa7J; } if (!(strpos($Lkoli, $Zvk9y . $HDDr2 . "\45") !== false || strpos($Lkoli, $Zvk9y . "\40" . $HDDr2 . "\x20\x25") !== false || strpos($Lkoli, $Zvk9y . "\40" . $HDDr2 . "\x25") !== false || strpos($Lkoli, $Zvk9y . $HDDr2 . "\40\45") !== false)) { goto eLY6j; } $VQDxU = $HDDr2; goto UJM1R; UJM1R: eLY6j: uabE6: $HDDr2++; goto GcPxO; yLzej: } public function store(Request $request) { goto WsVdR; mWM_e: Iahcz: $mHNJS = Seo::where("\x75\x72\x69", $zPdL0)->first(); if (!isset($mHNJS)) { goto P8yoX; } goto oOYJi; t7koo: $zPdL0 = str_replace("\77\46", "\x3f", $zPdL0); if (!(strlen($zPdL0) > 1 && $zPdL0[strlen($zPdL0) - 1] == "\57")) { goto Iahcz; } $zPdL0 = substr($zPdL0, 0, -1); goto mWM_e; WsVdR: $Oh54c = Validator::make($request->all(), ["\165\162\x69" => ["\162\145\x71\165\151\162\145\144"], "\x74\151\164\154\145" => ["\x72\x65\x71\x75\151\x72\x65\144"]]); if (!$Oh54c->fails()) { goto ZgRZj; } return response()->json(["\x65\162\162\157\x72\x73" => $Oh54c->errors()], 403); goto QbN59; WdlRm: $VjUGt = Seo::create(["\x75\162\151" => $zPdL0, "\164\151\164\x6c\x65" => $params["\164\x69\x74\154\145"], "\153\x65\171\x77\x6f\162\144\163" => $params["\153\x65\x79\167\x6f\x72\144\163"], "\144\145\163\143\x72\151\x70\x74\151\x6f\x6e" => $params["\144\145\163\143\x72\151\160\x74\x69\157\x6e"], "\x6e\x6f\164\x65" => $params["\x6e\x6f\x74\145"], "\151\155\x61\x67\145" => $params["\151\x6d\141\147\145"], "\164\x79\x70\145" => $F508M["\164\171\x70\x65"], "\160\x6f\x73\x74\137\x69\144" => $F508M["\x70\x6f\163\x74\137\151\x64"], "\x69\x73\137\141\155\160" => $params["\151\163\137\141\155\160"] == true || $params["\151\x73\137\141\x6d\x70"] == "\164\x72\x75\145" ? 1 : 0, "\143\162\145\141\x74\145\x64\137\141\164" => date("\131\55\155\x2d\144\x20\110\x3a\x69\x3a\x73"), "\x75\x70\x64\141\x74\145\x64\137\x61\164" => date("\131\x2d\x6d\x2d\144\x20\110\x3a\x69\72\163")]); Artisan::call("\143\141\143\x68\145\x3a\143\x6c\x65\141\x72"); return new SeoResource($VjUGt); goto sDBci; z_C0L: $zPdL0 = str_replace("\57\x20", "\x2f", $zPdL0); $zPdL0 = str_replace("\40\x2f\40", "\57", $zPdL0); $zPdL0 = str_replace("\x20\57", "\57", $zPdL0); goto Tk9mQ; oOYJi: return response()->json(["\x65\162\x72\157\x72\163" => "\125\x72\x69\40\x69\x73\x20\145\x78\151\163\x74"], 403); P8yoX: $F508M = $this->detectSeoType($zPdL0); goto WdlRm; xWIZm: $zPdL0 = str_replace("\57\77", "\77", $zPdL0); $zPdL0 = str_replace("\77\57", "\x3f", $zPdL0); $zPdL0 = str_replace("\x3f\77", "\77", $zPdL0); goto t7koo; Tk9mQ: $zPdL0 = str_replace("\x20", "\x2d", $zPdL0); $zPdL0 = str_replace("\57\57", "\57", $zPdL0); $zPdL0 = str_replace("\46\46", "\x26", $zPdL0); goto xWIZm; QbN59: ZgRZj: $params = $request->all(); $zPdL0 = trim("\57" . $params["\x75\x72\x69"]); goto z_C0L; sDBci: } public function update($hvlbd = 0, Request $request) { goto fCLte; fCLte: $Oh54c = Validator::make($request->all(), ["\x75\162\x69" => ["\162\145\161\x75\x69\x72\x65\144"], "\164\151\164\154\x65" => ["\162\x65\x71\165\x69\162\145\144"]]); if (!$Oh54c->fails()) { goto AHMi6; } return response()->json(["\x65\x72\x72\x6f\162\163" => $Oh54c->errors()], 403); goto NpFiC; NpFiC: AHMi6: $VjUGt = Seo::where("\151\144", $hvlbd)->first(); if (isset($VjUGt)) { goto Dc_3P; } goto qHNdk; qHNdk: return response()->json(["\x65\162\162\x6f\162\x73" => "\x53\x65\157\40\x69\x73\40\156\x6f\x74\x20\x76\141\x6c\x69\x64"], 403); Dc_3P: $params = $request->all(); goto dykTF; dykTF: $VjUGt->update(["\164\151\164\x6c\145" => $params["\164\151\x74\x6c\145"], "\153\145\171\x77\x6f\162\x64\x73" => $params["\153\x65\x79\167\157\162\x64\163"], "\144\145\163\x63\162\151\x70\x74\151\x6f\x6e" => $params["\144\x65\x73\143\x72\x69\x70\x74\151\x6f\x6e"], "\156\x6f\164\145" => $params["\156\x6f\x74\x65"], "\151\155\141\x67\x65" => $params["\x69\155\141\147\145"], "\151\x73\137\141\x6d\x70" => $params["\x69\163\137\141\x6d\160"] == true || $params["\151\163\137\x61\x6d\160"] == "\164\162\165\145" ? 1 : 0, "\165\160\144\141\164\145\144\137\141\x74" => date("\x59\x2d\155\x2d\144\x20\110\72\151\72\x73")]); Artisan::call("\x63\x61\x63\x68\145\x3a\143\154\x65\141\162"); return response()->json(null, 204); goto x_tdE; x_tdE: } public function destroy($hvlbd = 0) { goto mlbOO; mlbOO: $VjUGt = Seo::where("\x69\x64", $hvlbd)->first(); if (isset($VjUGt)) { goto nzEJL; } response()->json(["\x65\x72\162\157\162" => "\105\x68\150\150\41\x20\x43\141\x6e\x20\156\x6f\x74\x20\x64\145\x6c\145\x74\x65\40\x74\x68\151\163\x20\163\x65\157"], 403); goto dfBlX; dfBlX: nzEJL: try { $VjUGt->delete(); } catch (\Exception $bWfUi) { response()->json(["\x65\162\162\157\x72" => $bWfUi->getMessage()], 403); } Artisan::call("\x63\141\143\x68\145\x3a\x63\x6c\x65\141\162"); goto sgxoV; sgxoV: return response()->json(null, 204); goto lan3u; lan3u: } public function destroyMultiple(Request $request) { goto goo7L; f_eI3: zh2gm: $yklh2 = $request->get("\x69\144\163", []); $RiAXs = Seo::whereIn("\x69\144", $yklh2)->get(); goto bnyoV; bnyoV: if (!($RiAXs->count() <= 0)) { goto eYprH; } response()->json(["\145\162\x72\x6f\x72" => "\123\145\x6f\x20\x69\x73\x20\x6e\x6f\164\40\166\x61\x6c\151\x64\56"], 403); eYprH: goto nEdij; goo7L: $Oh54c = Validator::make($request->all(), ["\151\144\163" => "\162\x65\x71\165\x69\x72\x65\x64"]); if (!$Oh54c->fails()) { goto zh2gm; } return response()->json(["\145\x72\162\157\162\163" => $Oh54c->errors()], 403); goto f_eI3; nEdij: try { Seo::whereIn("\151\x64", $yklh2)->delete(); } catch (\Exception $bWfUi) { response()->json(["\145\162\x72\x6f\x72" => $bWfUi->getMessage()], 403); } Artisan::call("\143\x61\143\x68\145\x3a\x63\154\x65\141\x72"); return response()->json(null, 204); goto CSY4g; CSY4g: } private function detectSeoType($zPdL0 = '') { goto XaKpN; Yd5OY: $WOxby["\x74\171\160\x65"] = "\x71\x75\145\x73\164\x69\x6f\156"; GMtIw: return $WOxby; goto De460; rodUc: $Zvk9y = str_replace("\x2f\143\x6f\154\165\155\156\57\x64\x65\164\x61\x69\x6c\57", '', $zPdL0); $Bd74J = explode("\x2f", $Zvk9y); $RomMF = Article::select("\x69\144")->where("\x69\163\137\x64\x65\154\x65\x74\145\144", false)->where("\151\x64", $Bd74J[0])->first(); goto LuaT7; LuaT7: $WOxby["\x70\157\x73\x74\137\x69\144"] = isset($RomMF) ? $RomMF->id : null; $WOxby["\x74\x79\x70\145"] = "\x63\x6f\x6c\165\x6d\x6e"; trrkv: goto olO92; olO92: goto GMtIw; Wprlh: $Zvk9y = str_replace("\x2f\x62\x62\x73\57\x64\145\164\x61\151\154\57", '', $zPdL0); goto Jn1CV; XaKpN: $WOxby = ["\164\171\x70\x65" => "\143\x75\163\164\x6f\x6d", "\x70\157\163\164\x5f\x69\x64" => null]; if (strpos($zPdL0, "\57\142\142\163\x2f") !== false) { goto Wprlh; } if (!(strpos($zPdL0, "\x2f\x63\157\x6c\x75\155\156\57") !== false)) { goto trrkv; } goto rodUc; Jn1CV: $Bd74J = explode("\57", $Zvk9y); $RomMF = Article::select("\x69\144")->where("\151\163\x5f\x64\145\x6c\145\164\145\144", false)->where("\151\x64", $Bd74J[0])->first(); $WOxby["\x70\x6f\163\x74\137\151\x64"] = isset($RomMF) ? $RomMF->id : null; goto Yd5OY; De460: } }