<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:56
 namespace App\Http\Controllers\Admin; use App\Category; use App\CategoryDetail; use App\Events\SaveDataEvent; use App\Gutenberg; use App\Helpers\Helper; use App\Http\Controllers\Controller; use App\Keyword; use App\KeywordDetail; use App\Seo; use App\SeoFormat; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Arr; use App\Article; use App\Http\Resources\Admin\ArticleResource; use Validator; use Auth; class NewsController extends Controller { const ITEM_PER_PAGE = 20; const POST_TYPE = "\156\x65\x77\163"; protected $_pathFile; protected $_pathTemp; public function __construct() { $this->_pathFile = public_path("\x75\160\154\x6f\141\x64\x73\x2f\151\155\x61\147\145\x2f\x61\162\x74\151\143\154\x65\x2f"); $this->_pathTemp = storage_path("\x61\160\x70\x2f\x70\165\142\x6c\151\143\x2f\x75\160\x6c\x6f\x61\144\163\x2f\x74\145\x6d\x70\57\151\155\141\147\x65\x2f"); } public function index(Request $request) { goto IqBTT; H_wfb: $WzwAH->where("\151\163\137\141\x63\x74\x69\x76\x61\164\145\144", $pcakj); RT2f4: $WzwAH->orderBy("\x69\x64", "\x44\105\123\x43"); goto aSxKK; IqBTT: $KZpxr = $request->all(); $WzwAH = Article::notDeleted()->where("\x74\171\160\145", static::POST_TYPE); $DZhUa = Arr::get($KZpxr, "\154\151\155\x69\x74", static::ITEM_PER_PAGE); goto GeNOS; GeNOS: $vuewg = Arr::get($KZpxr, "\x6b\x65\171\167\x6f\x72\144", ''); $pcakj = Arr::get($KZpxr, "\163\x74\x61\164\165\x73", ''); if (empty($vuewg)) { goto SFlXg; } goto pZJ1F; aSxKK: return ArticleResource::collection($WzwAH->paginate($DZhUa)); goto gaU3q; pZJ1F: $WzwAH->where("\164\151\x74\x6c\145", "\x4c\111\113\105", "\45" . $vuewg . "\x25"); SFlXg: if (!($pcakj != '')) { goto RT2f4; } goto H_wfb; gaU3q: } public function all() { $WzwAH = Article::select("\x69\144", "\164\x69\x74\154\x65", "\163\154\x75\x67")->notDeleted()->where("\x74\x79\160\x65", static::POST_TYPE)->orderBy("\151\144"); return ArticleResource::collection($WzwAH->get()); } public function show($YNNyZ = 0) { $eBFz1 = Article::notDeleted()->where("\151\x64", $YNNyZ)->where("\164\171\x70\x65", static::POST_TYPE)->first(); if (isset($eBFz1)) { goto ivlbJ; } return response()->json(["\145\162\x72\x6f\x72\x73" => "\101\162\x74\151\143\154\x65\x20\151\x73\x20\156\x6f\x74\40\x76\141\154\x69\144"], 403); ivlbJ: return new ArticleResource($eBFz1); } public function store(Request $request) { goto TnCDe; boSEs: if (!($params["\151\x73\137\141\x63\164\151\166\141\164\145\x64"] != true || $params["\x69\163\137\141\143\x74\x69\166\141\x74\x65\144"] != "\x74\162\165\x65" || $params["\151\x73\x5f\141\x63\164\x69\166\x61\164\x65\x64"] != 1)) { goto Mw6ki; } $Rp7x0 = md5(rand(0, 1000) . date("\131\x2d\155\x2d\x64\110\72\151\72\x73")); Mw6ki: goto ephNK; inlsZ: $BOrCN = str_replace("\165\x70\154\157\141\144\163\57\x69\155\141\x67\x65", "\x2f\165\x70\x6c\x6f\x61\144\163\x2f\x69\x6d\141\147\145", $BOrCN); $BOrCN = str_replace("\x2f\57\x75\x70\x6c\x6f\141\144\x73\x2f\151\155\x61\x67\x65", "\x2f\165\160\x6c\x6f\141\x64\163\x2f\151\x6d\x61\x67\x65", $BOrCN); $BOrCN = str_replace("\x2f\57\57\x75\x70\x6c\157\141\x64\x73\x2f\x69\x6d\x61\x67\x65", "\x2f\x75\160\x6c\157\141\x64\163\x2f\x69\155\141\147\x65", $BOrCN); goto cGtQQ; yS1pv: CategoryDetail::insert($WKf03); BrkFU: Fe_HR: goto KtjrD; D7mFs: foreach ($params["\143\x61\x74\x65\x67\x6f\x72\x79"] as $Bt7no) { if (!($Bt7no == '' || $Bt7no == null)) { goto zjK2y; } goto iLLHj; zjK2y: $WKf03[] = ["\141\162\x74\x69\x63\x6c\145\x5f\151\144" => $eBFz1->id, "\x63\141\164\145\x67\x6f\162\171\x5f\151\x64" => $Bt7no, "\x63\162\x65\141\164\x65\144\x5f\x61\x74" => date("\131\x2d\155\55\144\x20\x48\x3a\x69\x3a\163"), "\165\x70\x64\141\x74\x65\144\137\141\x74" => date("\x59\55\155\55\144\x20\110\72\151\72\x73")]; iLLHj: } c00uC: if (!(count($WKf03) > 0)) { goto BrkFU; } goto yS1pv; KbCTo: $BOrCN = str_replace("\x68\x72\145\146\x3d\x22\x66\157\x72\164\165\x6e\145\x2d\x74\145\x6c\154\145\x72\x2f", "\150\162\145\146\x3d\x22\x2f\x66\157\162\x74\x75\156\145\55\164\145\154\154\x65\x72\x2f", $BOrCN); $icQX9 = Helper::slug($params["\x73\154\165\x67"]); if (!empty($icQX9)) { goto hkR2U; } goto My7rS; EECe1: $BOrCN = $params["\143\x6f\156\164\145\x6e\164"]; if ($params["\x65\x64\151\164\157\162"] == "\147\x75\164\145\156\142\x65\162\x67") { goto Yj7dy; } $params["\145\x64\x69\164\x6f\x72"] = "\164\151\156\171\155\x63\x65"; goto mwU75; cGtQQ: $BOrCN = str_replace("\x3c\150\62\76\x3c\57\150\62\76", "\74\160\76\x26\x6e\142\x73\x70\73\74\57\160\x3e", $BOrCN); $BOrCN = str_replace("\74\x68\62\x3e\46\156\142\x73\160\73\74\57\x68\62\76", "\x3c\160\x3e\x26\x6e\x62\x73\x70\x3b\74\57\x70\x3e", $BOrCN); $BOrCN = str_replace("\74\x68\62\76\46\156\142\x73\160\73\x26\156\x62\163\160\x3b\74\x2f\150\62\x3e", "\x3c\160\76\46\x6e\142\x73\x70\73\74\57\160\76", $BOrCN); goto f1Abe; ephNK: $eBFz1 = Article::create(["\164\x69\x74\x6c\145" => $params["\164\151\x74\x6c\145"], "\163\154\165\x67" => $icQX9, "\144\x65\163\x63\162\151\x70\x74\x69\x6f\x6e" => $params["\x64\145\163\143\x72\x69\x70\x74\151\157\x6e"], "\x65\144\x69\164\x6f\162" => $params["\145\x64\151\x74\x6f\x72"], "\147\165\x5f\143\x6f\156\x74\x65\x6e\164" => $params["\147\165\137\x63\157\x6e\x74\x65\156\164"], "\x63\x6f\x6e\164\x65\156\164" => $BOrCN, "\x74\x68\165\x6d\142\156\141\151\154" => $params["\x74\x68\x75\x6d\142\156\x61\151\x6c"], "\x73\150\x6f\160\137\x69\144" => $params["\x73\150\157\x70\137\151\x64"], "\x66\x6f\162\x74\x75\x6e\145\x5f\x74\x65\x6c\x6c\x65\x72\137\151\x64" => $params["\146\x6f\162\164\165\156\x65\137\164\x65\x6c\154\x65\162\x5f\x69\x64"], "\151\155\160\157\162\x74\x61\x6e\164" => $params["\x69\155\x70\x6f\162\x74\x61\x6e\164"], "\160\165\x62\x6c\151\163\x68\137\141\x74" => $T0Oez, "\x75\163\145\x72\x5f\151\x64" => auth("\141\x70\151")->user()->id, "\160\x72\145\166\x69\x65\x77" => $Rp7x0, "\164\x79\x70\x65" => static::POST_TYPE, "\x69\x73\137\x70\165\142\154\151\x73\x68\x65\144" => $params["\151\x73\137\x61\x63\164\151\166\141\x74\x65\144"] === true ? 1 : 0, "\151\x73\x5f\141\143\x74\x69\x76\x61\x74\145\144" => $params["\x69\x73\x5f\141\143\x74\151\x76\141\x74\145\144"] === true ? 1 : 0, "\143\162\145\141\x74\145\x64\x5f\x61\164" => date("\x59\x2d\x6d\x2d\x64\40\110\72\151\72\163"), "\x75\160\x64\x61\164\x65\144\x5f\141\164" => date("\x59\x2d\155\x2d\144\40\x48\72\151\x3a\x73")]); if (!(isset($params["\143\141\x74\x65\x67\x6f\x72\171"]) && $params["\x63\x61\164\x65\147\x6f\x72\x79"] != null)) { goto Fe_HR; } $WKf03 = []; goto D7mFs; JBeHJ: if (!($params["\x63\157\x6e\x74\145\x6e\164"] != '' && $params["\143\157\156\164\x65\156\164"] != null && ($params["\x67\165\x5f\x63\x6f\156\164\x65\x6e\x74"] == '' || $params["\147\x75\x5f\x63\157\x6e\x74\145\156\164"] == null))) { goto uSEH0; } $params["\147\x75\x5f\x63\157\x6e\164\145\156\x74"] = $params["\x63\x6f\156\164\x65\x6e\164"]; uSEH0: goto In5dd; In5dd: $BOrCN = $this->gutenbergRenderContent($params["\147\165\x5f\143\157\x6e\164\145\x6e\x74"]); FOAxu: $BOrCN = str_replace("\x2e\56\x2f\56\56\57\x2e\56\57\56\56\57\x75\x70\x6c\157\x61\x64\163\x2f\151\155\141\147\x65", "\57\165\160\154\x6f\141\x64\x73\x2f\151\x6d\141\147\x65", $BOrCN); goto TL3oR; TL3oR: $BOrCN = str_replace("\x2e\x2e\57\56\x2e\x2f\56\x2e\x2f\165\160\x6c\x6f\141\144\163\x2f\x69\x6d\141\147\x65", "\57\x75\x70\154\x6f\141\x64\163\x2f\x69\155\141\x67\x65", $BOrCN); $BOrCN = str_replace("\x2e\x2e\x2f\56\56\x2f\165\160\154\x6f\141\x64\x73\57\151\x6d\x61\x67\x65", "\x2f\165\x70\154\157\141\x64\x73\x2f\x69\155\x61\x67\145", $BOrCN); $BOrCN = str_replace("\56\56\57\x75\x70\x6c\157\x61\144\163\57\151\155\141\x67\145", "\x2f\165\160\x6c\x6f\x61\x64\163\x2f\x69\155\141\x67\x65", $BOrCN); goto inlsZ; My7rS: $icQX9 = Helper::slug($params["\x74\x69\x74\154\145"]); hkR2U: $Rp7x0 = null; goto boSEs; TnCDe: $wKUHl = Validator::make($request->all(), ["\x74\x69\x74\x6c\145" => ["\x72\145\161\x75\x69\x72\145\144"], "\x69\163\x5f\141\x63\164\151\166\x61\x74\x65\144" => ["\x72\145\x71\x75\x69\x72\145\x64"]]); if (!$wKUHl->fails()) { goto nq0q1; } return response()->json(["\x65\162\162\157\162\x73" => $wKUHl->errors()], 403); goto CF7lI; KtjrD: if (!(isset($params["\153\145\171\x77\157\162\144"]) && is_array($params["\153\x65\171\x77\157\162\144"]))) { goto D_6SI; } $U0Fiq = []; foreach ($params["\x6b\x65\171\x77\157\x72\x64"] as $Bt7no) { goto oQ2Yo; oQ2Yo: $pztp8 = trim($Bt7no["\164\x65\x78\x74"]); $TaBgL = Keyword::where("\x69\163\x5f\x64\145\154\145\164\145\144", 0)->where(function ($DtJ2p) use($pztp8) { $DtJ2p->where("\156\x61\155\x65", $pztp8)->orWhere("\x6e\x61\x6d\145", strtolower($pztp8))->orWhere("\x6e\141\x6d\x65", strtoupper($pztp8))->orWhere("\156\x61\x6d\x65", ucfirst($pztp8)); })->first(); if (!(!isset($TaBgL) || $TaBgL->id == null)) { goto I_1JN; } goto mllRj; mllRj: $TaBgL = Keyword::create(["\156\x61\155\x65" => $pztp8, "\x69\x73\137\x61\x63\x74\x69\x76\141\164\x65\x64" => true, "\x69\x73\137\144\145\154\x65\164\x65\x64" => false, "\x63\x72\x65\x61\164\145\x64\x5f\141\x74" => date("\131\x2d\x6d\x2d\x64\40\110\x3a\x69\72\x73"), "\165\x70\x64\141\164\x65\144\x5f\x61\x74" => date("\x59\x2d\155\x2d\x64\40\110\x3a\x69\72\x73")]); I_1JN: $U0Fiq[] = ["\153\x65\x79\x77\157\162\x64\137\x69\144" => $TaBgL->id, "\162\x65\146\137\x69\144" => $eBFz1->id, "\164\x79\160\145" => "\141\x72\164\151\x63\x6c\145", "\143\162\145\141\164\145\144\137\141\164" => date("\131\x2d\155\55\144\x20\x48\x3a\x69\72\x73"), "\x75\x70\x64\141\164\x65\144\x5f\x61\x74" => date("\x59\x2d\155\55\144\x20\110\x3a\x69\72\x73")]; goto h2NQn; h2NQn: nTMCW: goto MEbpF; MEbpF: } goto mxwi6; oToIb: event(new SaveDataEvent()); return new ArticleResource($eBFz1); goto AP2VU; f1Abe: $BOrCN = str_replace("\74\150\62\x3e\46\x6e\x62\163\x70\x3b\x26\156\x62\x73\160\73\x26\x6e\x62\x73\x70\73\74\57\150\x32\76", "\x3c\x70\x3e\46\x6e\x62\163\160\x3b\x3c\x2f\160\x3e", $BOrCN); $BOrCN = str_replace("\x3c\x68\x32\76\46\156\x62\163\160\73\46\156\x62\x73\160\73\x26\156\142\x73\x70\x3b\x26\156\x62\x73\160\73\x3c\57\150\x32\x3e", "\74\x70\76\x26\156\142\x73\160\73\x3c\x2f\160\x3e", $BOrCN); $BOrCN = str_replace("\150\x72\145\146\75\x22\56\56\x2f", "\150\162\145\x66\x3d\42\x2f", $BOrCN); goto KbCTo; mxwi6: F4i7z: if (!(count($U0Fiq) > 0)) { goto Spoqr; } KeywordDetail::insert($U0Fiq); goto KxEO5; KxEO5: Spoqr: D_6SI: $this->updateSeoInfo("\x6e\x6f\x74\x65\137\141\162\164\x69\143\154\145", "\57\x6e\x6f\164\x65\x2f\x61\162\x74\x69\143\x6c\x65\57" . $icQX9, $params["\164\x69\164\154\x65"], $BOrCN, $eBFz1->id); goto oToIb; CF7lI: nq0q1: $params = $request->all(); $T0Oez = isset($params["\160\x75\x62\154\x69\163\x68\137\x61\164"]) && $params["\x70\165\142\154\x69\163\x68\x5f\x61\x74"] != null && $params["\160\x75\142\154\x69\163\150\x5f\x61\x74"] != '' ? Carbon::parse($params["\160\x75\142\x6c\151\163\150\x5f\x61\x74"])->format("\131\x2d\155\55\x64\40\110\x3a\x69\x3a\x73") : date("\131\55\155\x2d\x64\40\x48\72\151\72\x73"); goto EECe1; mwU75: $params["\x67\x75\137\143\157\x6e\x74\x65\x6e\164"] = null; goto FOAxu; Yj7dy: goto JBeHJ; AP2VU: } public function update($YNNyZ = 0, Request $request) { goto vrSNI; sKzNy: U19Ap: if (!(isset($params["\x6b\145\171\167\157\x72\144"]) && is_array($params["\153\145\171\x77\157\x72\144"]))) { goto mhlT_; } KeywordDetail::where("\162\x65\x66\137\x69\x64", $eBFz1->id)->where("\x74\171\160\x65", "\141\x72\x74\x69\x63\x6c\145")->delete(); goto Rbqij; berTJ: btqOB: CategoryDetail::where("\x61\x72\x74\x69\x63\154\x65\x5f\151\x64", $eBFz1->id)->delete(); if (!(isset($params["\143\x61\x74\x65\147\x6f\x72\171"]) && $params["\x63\x61\164\x65\x67\157\x72\x79"] != null)) { goto U19Ap; } goto TMwgI; mX4Yu: if (!empty($icQX9)) { goto l00bw; } $icQX9 = Helper::slug($params["\x74\151\x74\x6c\x65"]); l00bw: goto P3YVU; rsdd2: $params["\145\x64\151\164\157\x72"] = "\x74\151\x6e\171\155\x63\x65"; $params["\147\x75\137\x63\157\x6e\164\x65\156\164"] = null; goto hKYVx; goto VGcZj; aRNOZ: $BOrCN = str_replace("\x68\x72\145\146\x3d\42\56\x2e\57", "\x68\x72\x65\x66\x3d\42\57", $BOrCN); $BOrCN = str_replace("\x68\162\145\146\x3d\42\x66\x6f\162\x74\165\x6e\x65\55\x74\145\x6c\154\145\x72\x2f", "\150\x72\x65\x66\x3d\x22\x2f\x66\157\x72\164\x75\x6e\x65\x2d\164\145\x6c\154\145\162\x2f", $BOrCN); $icQX9 = Helper::slug($params["\163\x6c\x75\147"]); goto mX4Yu; ZMoAu: Y4ZXV: $BOrCN = $this->gutenbergRenderContent($params["\x67\165\x5f\x63\x6f\x6e\164\145\156\x74"]); hKYVx: goto HwFvD; VGcZj: Q1Z9h: if (!($params["\x63\x6f\156\164\145\156\164"] != '' && $params["\x63\157\156\164\x65\156\x74"] != null && ($params["\147\x75\x5f\143\x6f\x6e\164\145\156\164"] == '' || $params["\147\165\x5f\x63\157\x6e\164\145\x6e\164"] == null))) { goto Y4ZXV; } $params["\147\165\x5f\143\x6f\x6e\x74\145\x6e\x74"] = $params["\143\x6f\156\164\x65\x6e\164"]; goto ZMoAu; P3YVU: $Rp7x0 = $eBFz1->preview; if (!($params["\151\x73\x5f\141\143\164\151\166\x61\164\145\144"] != true || $params["\x69\163\x5f\x61\143\x74\151\x76\x61\x74\x65\144"] != "\x74\x72\x75\145" || $params["\x69\x73\137\141\143\x74\x69\x76\141\164\145\144"] != 1)) { goto IPYEm; } if (!($Rp7x0 == null || $Rp7x0 == '')) { goto aw6Y6; } goto EZ59F; TMwgI: $WKf03 = []; foreach ($params["\x63\x61\164\x65\x67\157\162\171"] as $Bt7no) { goto gkNzp; gkNzp: if (!($Bt7no == '' || $Bt7no == null)) { goto uThK5; } goto hjAAs; uThK5: goto iXBGo; iXBGo: $sIho9 = Category::where("\x69\x73\137\x61\143\164\151\x76\141\x74\x65\x64", true)->where("\x69\x73\x5f\144\145\154\x65\164\145\144", false)->where("\151\144", $Bt7no)->count(); if (!($sIho9 > 0)) { goto uFS5P; } $WKf03[] = ["\141\162\164\151\143\154\x65\x5f\x69\x64" => $eBFz1->id, "\143\141\164\145\147\157\162\x79\x5f\x69\144" => $Bt7no, "\x63\x72\145\141\164\145\144\x5f\x61\x74" => date("\131\x2d\155\55\x64\x20\110\x3a\x69\x3a\163"), "\x75\160\144\141\164\145\x64\x5f\x61\164" => date("\131\55\155\55\144\x20\110\x3a\151\72\x73")]; goto ViQCP; ViQCP: uFS5P: hjAAs: goto JBVzm; JBVzm: } ExHat: goto Inf4s; S5OcW: $BOrCN = str_replace("\x3c\150\62\x3e\x26\156\142\163\160\73\46\x6e\x62\x73\160\x3b\x3c\57\150\x32\76", "\x3c\160\76\x26\156\142\x73\160\73\x3c\57\160\x3e", $BOrCN); $BOrCN = str_replace("\74\150\x32\x3e\x26\x6e\142\163\160\73\x26\156\x62\x73\160\73\46\x6e\142\163\160\x3b\74\x2f\150\x32\x3e", "\x3c\x70\x3e\x26\156\142\163\x70\x3b\74\57\x70\76", $BOrCN); $BOrCN = str_replace("\74\x68\62\76\x26\156\142\163\160\73\x26\x6e\142\x73\x70\x3b\46\x6e\142\163\160\73\46\156\x62\x73\x70\73\x3c\57\x68\x32\76", "\74\160\x3e\x26\x6e\x62\x73\160\x3b\x3c\x2f\160\x3e", $BOrCN); goto aRNOZ; UKuiw: $BOrCN = str_replace("\57\x2f\57\165\x70\154\157\141\144\x73\x2f\x69\155\x61\147\145", "\x2f\165\x70\154\x6f\141\x64\163\x2f\151\x6d\141\147\x65", $BOrCN); $BOrCN = str_replace("\74\150\62\76\x3c\x2f\x68\x32\x3e", "\74\x70\x3e\46\x6e\x62\163\160\x3b\x3c\x2f\160\x3e", $BOrCN); $BOrCN = str_replace("\74\150\62\76\x26\x6e\x62\163\x70\x3b\74\x2f\x68\x32\x3e", "\x3c\x70\x3e\x26\156\142\x73\160\x3b\x3c\57\160\x3e", $BOrCN); goto S5OcW; ncMn6: return response()->json(["\145\x72\x72\157\x72\163" => "\101\x72\x74\x69\x63\154\x65\x20\151\x73\x20\156\x6f\x74\x20\x76\x61\154\151\144"], 403); nB0Zd: $params = $request->all(); goto z6fNs; w5afZ: $eBFz1->update(["\164\151\x74\154\145" => $params["\164\151\164\154\145"], "\163\x6c\165\147" => $icQX9, "\x64\x65\163\x63\162\x69\160\164\x69\157\x6e" => $params["\144\x65\x73\143\x72\151\x70\164\x69\157\156"], "\x65\144\x69\164\x6f\x72" => $params["\x65\x64\x69\164\x6f\x72"], "\x67\x75\137\143\x6f\x6e\x74\x65\x6e\x74" => $params["\147\x75\x5f\x63\x6f\156\164\145\156\164"], "\143\157\156\x74\145\x6e\x74" => $BOrCN, "\x74\x68\165\155\142\x6e\141\x69\x6c" => $params["\x74\150\x75\x6d\142\156\x61\151\x6c"], "\163\150\x6f\x70\x5f\151\x64" => $params["\163\150\x6f\160\x5f\151\x64"], "\x66\x6f\x72\164\165\156\x65\137\x74\145\x6c\154\x65\x72\137\151\144" => $params["\x66\x6f\162\164\165\x6e\x65\137\x74\x65\x6c\x6c\x65\162\137\151\144"], "\151\155\160\x6f\162\164\x61\156\x74" => $params["\x69\x6d\160\x6f\x72\164\x61\156\164"], "\160\x75\x62\154\x69\163\150\x5f\x61\164" => $T0Oez, "\x70\x72\x65\166\151\x65\167" => $Rp7x0, "\164\171\x70\x65" => static::POST_TYPE, "\151\x73\x5f\x70\x75\142\x6c\x69\x73\150\x65\x64" => $params["\x69\x73\137\x61\143\164\x69\x76\141\x74\x65\144"] === true ? 1 : 0, "\x69\x73\x5f\x61\x63\164\151\166\x61\x74\145\x64" => $params["\151\163\137\141\143\x74\x69\x76\141\164\x65\144"] === true ? 1 : 0, "\x75\x70\144\141\x74\x65\144\x5f\x61\x74" => date("\x59\x2d\155\x2d\x64\x20\110\72\x69\72\163")]); if (!($eBFz1->user_id == null || $eBFz1->user_id == '')) { goto btqOB; } $eBFz1->update(["\165\x73\145\162\x5f\x69\144" => auth("\x61\x70\151")->user()->id]); goto berTJ; rrXQ9: mhlT_: event(new SaveDataEvent()); return response()->json(null, 204); goto QZIO5; Inf4s: if (!(count($WKf03) > 0)) { goto p5IX4; } CategoryDetail::insert($WKf03); p5IX4: goto sKzNy; EZ59F: $Rp7x0 = md5(rand(0, 1000) . date("\x59\x2d\x6d\x2d\144\110\72\x69\x3a\163")); aw6Y6: IPYEm: goto w5afZ; vrSNI: $wKUHl = Validator::make($request->all(), ["\164\x69\x74\154\145" => ["\162\x65\161\165\151\162\145\144"], "\x69\x73\137\141\x63\164\x69\x76\x61\x74\145\x64" => ["\x72\145\x71\x75\151\162\x65\x64"]]); if (!$wKUHl->fails()) { goto g416o; } return response()->json(["\x65\x72\x72\x6f\x72\163" => $wKUHl->errors()], 403); goto fvVWZ; HwFvD: $BOrCN = str_replace("\56\x2e\x2f\x2e\x2e\x2f\56\x2e\57\x2e\56\x2f\x75\160\x6c\157\141\x64\x73\x2f\x69\x6d\141\147\145", "\x2f\x75\160\154\x6f\141\144\x73\x2f\151\x6d\141\147\x65", $BOrCN); $BOrCN = str_replace("\56\x2e\x2f\x2e\56\x2f\56\x2e\x2f\x75\x70\x6c\157\141\x64\163\57\151\155\x61\x67\x65", "\x2f\165\160\x6c\x6f\x61\x64\163\57\151\x6d\x61\147\145", $BOrCN); $BOrCN = str_replace("\x2e\56\x2f\x2e\x2e\57\165\x70\154\157\x61\144\x73\57\x69\x6d\x61\x67\145", "\x2f\165\x70\x6c\x6f\x61\144\x73\57\x69\155\141\x67\x65", $BOrCN); goto pp9Dv; Rbqij: $U0Fiq = []; foreach ($params["\x6b\145\171\x77\157\162\x64"] as $Bt7no) { goto DMqLY; xOLqc: $TaBgL = Keyword::create(["\156\x61\155\x65" => $pztp8, "\x69\163\x5f\141\x63\164\151\x76\141\164\x65\x64" => true, "\x69\x73\x5f\144\x65\154\145\164\x65\144" => false, "\x63\x72\145\141\x74\145\144\x5f\141\x74" => date("\131\x2d\x6d\55\144\40\x48\x3a\x69\72\163"), "\x75\x70\144\x61\x74\x65\x64\x5f\141\x74" => date("\x59\55\155\55\144\x20\110\72\x69\x3a\163")]); QhjW8: $U0Fiq[] = ["\153\x65\x79\167\x6f\x72\144\x5f\151\144" => $TaBgL->id, "\162\x65\x66\x5f\151\144" => $eBFz1->id, "\164\171\160\x65" => "\141\x72\x74\x69\x63\154\x65", "\x63\162\145\x61\164\145\x64\x5f\x61\164" => date("\x59\55\155\x2d\144\x20\110\x3a\x69\x3a\x73"), "\165\x70\144\x61\164\145\144\137\x61\x74" => date("\131\x2d\155\55\144\x20\110\72\x69\72\x73")]; goto n2Pzh; n2Pzh: NYsE4: goto JL5Rw; DMqLY: $pztp8 = trim($Bt7no["\164\x65\x78\x74"]); $TaBgL = Keyword::where("\x69\x73\x5f\144\145\x6c\x65\164\x65\x64", 0)->where(function ($DtJ2p) use($pztp8) { $DtJ2p->where("\x6e\x61\155\x65", $pztp8)->orWhere("\156\141\x6d\145", strtolower($pztp8))->orWhere("\156\x61\x6d\x65", strtoupper($pztp8))->orWhere("\156\141\x6d\145", ucfirst($pztp8)); })->first(); if (!(!isset($TaBgL) || $TaBgL->id == null)) { goto QhjW8; } goto xOLqc; JL5Rw: } elLA5: goto fMZKq; z6fNs: $T0Oez = isset($params["\160\165\x62\x6c\x69\x73\150\x5f\141\164"]) && $params["\x70\165\142\154\x69\163\150\x5f\x61\x74"] != null && $params["\x70\165\x62\x6c\x69\x73\150\x5f\141\x74"] != '' ? Carbon::parse($params["\160\165\142\154\x69\163\150\137\141\x74"])->format("\x59\55\x6d\55\144\40\x48\x3a\x69\x3a\163") : date("\131\55\155\55\x64\x20\x48\72\x69\x3a\x73"); $BOrCN = $params["\143\157\156\x74\145\x6e\164"]; if ($params["\145\144\x69\x74\157\162"] == "\147\x75\x74\145\x6e\142\145\x72\147") { goto Q1Z9h; } goto rsdd2; fvVWZ: g416o: $eBFz1 = Article::notDeleted()->where("\151\144", $YNNyZ)->first(); if (isset($eBFz1)) { goto nB0Zd; } goto ncMn6; pp9Dv: $BOrCN = str_replace("\56\x2e\57\165\x70\x6c\157\141\x64\163\x2f\151\155\141\147\x65", "\x2f\165\x70\x6c\157\141\x64\x73\x2f\151\155\x61\147\x65", $BOrCN); $BOrCN = str_replace("\x75\x70\154\x6f\141\144\163\x2f\151\x6d\141\x67\145", "\57\165\x70\154\157\x61\144\163\57\x69\x6d\141\147\x65", $BOrCN); $BOrCN = str_replace("\57\57\x75\160\x6c\x6f\141\x64\x73\x2f\151\155\x61\x67\145", "\57\x75\x70\154\157\141\x64\x73\57\151\155\141\x67\x65", $BOrCN); goto UKuiw; fMZKq: if (!(count($U0Fiq) > 0)) { goto viiA5; } KeywordDetail::insert($U0Fiq); viiA5: goto rrXQ9; QZIO5: } public function destroy($YNNyZ = 0) { $eBFz1 = Article::notDeleted()->where("\151\x64", $YNNyZ)->where("\x74\x79\160\145", static::POST_TYPE)->first(); if (isset($eBFz1)) { goto ExNUr; } response()->json(["\x65\162\162\x6f\x72" => "\x45\150\150\x68\41\40\103\x61\156\40\x6e\157\x74\x20\144\145\154\145\164\x65\40\164\150\151\163\40\x61\x72\164\x69\x63\x6c\x65"], 403); ExNUr: try { $eBFz1->update(["\x69\163\x5f\144\x65\x6c\x65\164\x65\144" => true]); event(new SaveDataEvent()); } catch (\Exception $YQZyO) { response()->json(["\x65\162\162\x6f\162" => $YQZyO->getMessage()], 403); } return response()->json(null, 204); } public function destroyMultiple(Request $request) { goto KEMlx; Vka0G: try { Article::notDeleted()->whereIn("\151\144", $U2txP)->where("\164\171\x70\x65", static::POST_TYPE)->update(["\x69\x73\137\144\145\x6c\145\164\x65\x64" => true]); event(new SaveDataEvent()); } catch (\Exception $YQZyO) { response()->json(["\x65\x72\162\157\162" => $YQZyO->getMessage()], 403); } return response()->json(null, 204); goto aq1UP; Wp_zZ: if (!($o6NLy->count() <= 0)) { goto eda0S; } response()->json(["\x65\162\162\157\162" => "\101\x72\164\x69\x63\x6c\x65\x20\x69\163\x20\156\157\x74\x20\166\x61\x6c\x69\x64\x2e"], 403); eda0S: goto Vka0G; KEMlx: $wKUHl = Validator::make($request->all(), ["\x69\x64\163" => "\x72\145\161\165\x69\162\145\x64"]); if (!$wKUHl->fails()) { goto QYlC4; } return response()->json(["\x65\x72\x72\x6f\162\163" => $wKUHl->errors()], 403); goto MtRFj; MtRFj: QYlC4: $U2txP = $request->get("\x69\144\x73", []); $o6NLy = Article::notDeleted()->whereIn("\151\x64", $U2txP)->where("\x74\x79\160\x65", static::POST_TYPE)->get(); goto Wp_zZ; aq1UP: } public function activateMultiple(Request $request) { goto AoQTd; o7VRa: try { Article::notDeleted()->whereIn("\x69\144", $U2txP)->where("\x74\x79\160\145", static::POST_TYPE)->update(["\x69\163\137\141\143\164\x69\166\x61\x74\x65\x64" => true]); event(new SaveDataEvent()); } catch (\Exception $YQZyO) { response()->json(["\145\162\162\157\x72" => $YQZyO->getMessage()], 403); } return response()->json(null, 204); goto SwWyn; cg53V: if (!($o6NLy->count() <= 0)) { goto tLNij; } response()->json(["\145\x72\x72\x6f\x72" => "\101\162\164\151\143\x6c\145\40\x69\x73\x20\156\157\164\x20\x76\141\x6c\151\144\56"], 403); tLNij: goto o7VRa; AoQTd: $wKUHl = Validator::make($request->all(), ["\151\x64\x73" => "\162\x65\x71\x75\x69\x72\x65\x64"]); if (!$wKUHl->fails()) { goto iFTcC; } return response()->json(["\x65\162\x72\157\x72\163" => $wKUHl->errors()], 403); goto fW3kj; fW3kj: iFTcC: $U2txP = $request->get("\151\144\x73", []); $o6NLy = Article::notDeleted()->whereIn("\151\144", $U2txP)->where("\164\x79\160\x65", static::POST_TYPE)->get(); goto cg53V; SwWyn: } public function deactivateMultiple(Request $request) { goto bEQ6_; kA_AV: if (!($o6NLy->count() <= 0)) { goto DYCJe; } response()->json(["\145\162\162\157\x72" => "\x41\162\164\151\x63\x6c\x65\40\x69\163\40\156\x6f\164\40\x76\x61\x6c\151\x64\x2e"], 403); DYCJe: goto DKlu4; DKlu4: try { Article::notDeleted()->whereIn("\x69\144", $U2txP)->where("\x74\171\160\x65", static::POST_TYPE)->update(["\151\163\x5f\x61\x63\164\151\166\141\x74\145\x64" => false]); event(new SaveDataEvent()); } catch (\Exception $YQZyO) { response()->json(["\145\162\162\157\162" => $YQZyO->getMessage()], 403); } return response()->json(null, 204); goto Vb3_E; bEQ6_: $wKUHl = Validator::make($request->all(), ["\151\x64\163" => "\162\145\161\165\151\x72\145\x64"]); if (!$wKUHl->fails()) { goto SPrRL; } return response()->json(["\145\162\x72\157\162\x73" => $wKUHl->errors()], 403); goto T6eZF; T6eZF: SPrRL: $U2txP = $request->get("\151\x64\163", []); $o6NLy = Article::notDeleted()->whereIn("\151\x64", $U2txP)->where("\x74\171\160\145", static::POST_TYPE)->get(); goto kA_AV; Vb3_E: } public function uploadImage(Request $request) { goto puOGb; k1Zik: return response()->json(["\163\164\141\164\x75\x73" => "\x73\165\x63\143\x65\163\x73", "\155\145\163\x73\x61\x67\145" => "\125\x70\x6c\157\x61\144\40\123\x75\x63\x63\x65\x73\163\56", "\x66\151\x6c\x65\137\x6e\x61\155\x65" => $RjDTn, "\x62\141\163\145\x4e\141\x6d\145" => $yQmDT], 200); sUMUJ: return response()->json(["\x73\x74\141\x74\165\x73" => "\145\162\x72\x6f\x72", "\x6d\x65\163\x73\x61\147\x65" => "\125\160\154\157\141\144\40\106\x61\151\x6c\x2e", "\146\x69\154\145\137\x6e\141\x6d\145" => null], 403); goto gyV0U; jSPWf: $RjDTn = md5($yQmDT . rand(1111, 9999) . date("\x59\x6d\144\110\x69\163")) . "\x2e" . $iPuHI->getClientOriginalExtension(); $iPuHI->move($this->_pathTemp, $RjDTn); chmod($this->_pathTemp . $RjDTn, 0777); goto k1Zik; puOGb: if (!$request->hasFile("\x69\155\141\x67\145")) { goto sUMUJ; } $iPuHI = $request->file("\151\155\141\147\145"); $yQmDT = $iPuHI->getClientOriginalName(); goto jSPWf; gyV0U: } public function uploadImages(Request $request) { goto eayNs; TRe6j: $RjDTn = md5($yQmDT . rand(1111, 9999) . date("\131\155\x64\110\x69\163")) . "\x2e" . $iPuHI->getClientOriginalExtension(); $iPuHI->move($this->_pathFile, $RjDTn); chmod($this->_pathFile . $RjDTn, 0777); goto kUdRk; kUdRk: return response()->json(["\150\141\x73\x53\x75\x63\143\x65\x73\163" => true, "\155\145\x73\163\141\x67\x65" => "\x55\160\154\x6f\141\144\x20\123\x75\143\x63\x65\163\x73\x2e", "\x66\151\x6c\x65\137\x6e\x61\155\x65" => $RjDTn, "\x62\x61\163\x65\x4e\141\155\x65" => $yQmDT, "\146\x69\x6c\x65\x73" => ["\146\151\154\145" => $RjDTn]], 200); upVwO: return response()->json(["\150\141\163\123\165\x63\x63\145\163\163" => false, "\155\145\x73\163\x61\147\145" => "\125\x70\154\x6f\x61\x64\x20\106\x61\151\x6c\x2e", "\146\x69\154\145\137\x6e\141\155\x65" => null, "\146\151\154\x65\x73" => null], 403); goto qWN8q; eayNs: if (!$request->hasFile("\x66\151\154\145")) { goto upVwO; } $iPuHI = $request->file("\x66\151\x6c\x65"); $yQmDT = $iPuHI->getClientOriginalName(); goto TRe6j; qWN8q: } private function updateSeoInfo($fmApF, $Al5Bw, $EGI1s, $kRY39, $TnuIm) { goto kBm2v; rbg8t: Seo::create(["\x75\x72\151" => $Al5Bw, "\164\151\164\x6c\x65" => $LGhW2, "\153\145\x79\x77\x6f\162\144\x73" => $U0Fiq, "\144\x65\x73\x63\162\151\160\164\151\x6f\156" => $EuSg7, "\x74\x79\160\x65" => $fmApF, "\x70\157\163\164\137\x69\x64" => $TnuIm, "\x63\162\x65\x61\x74\145\x64\137\141\164" => date("\x59\x2d\x6d\x2d\x64\40\110\72\x69\x3a\x73"), "\x75\160\x64\x61\x74\x65\144\x5f\141\x74" => date("\131\55\x6d\55\x64\40\x48\72\x69\x3a\x73")]); return true; goto jG2Pa; rZ1Li: $EuSg7 = str_replace("\x25\x63\x6f\x6e\x74\x65\x6e\x74\40\x7c", "\45\143\157\x6e\x74\145\156\164\174", $EuSg7); $EuSg7 = str_replace("\45\40\143\x6f\156\164\x65\x6e\164\x20\x7c", "\45\143\157\x6e\x74\145\x6e\164\174", $EuSg7); $EuSg7 = str_replace("\45\x63\157\156\x74\x65\x6e\x74\x7c\x20" . $ViwIY . "\x20\x25", "\45\x63\x6f\156\164\x65\x6e\x74\174" . $ViwIY . "\45", $EuSg7); goto zL7Os; xM0pi: $LGhW2 = str_replace("\x25\x74\x69\164\x6c\145\40\x25", $EGI1s, $LGhW2); $LGhW2 = str_replace("\45\x20\x74\151\164\154\x65\45", $EGI1s, $LGhW2); $LGhW2 = str_replace("\45\40\164\151\x74\154\x65\40\x25", $EGI1s, $LGhW2); goto Whkjl; wKOeA: $U0Fiq = str_replace("\45\40\164\x69\164\154\145\45", $EGI1s, $U0Fiq); $U0Fiq = str_replace("\45\164\x69\x74\154\145\40\45", $EGI1s, $U0Fiq); $U0Fiq = str_replace("\x25\40\164\151\x74\154\145\40\45", $EGI1s, $U0Fiq); goto rbg8t; XdEB6: $EdoEJ = str_replace("\45\x20\x63\x6f\x6e\164\x65\x6e\x74\40\174", "\45\x63\157\x6e\x74\x65\156\164\x7c", $EdoEJ); $EdoEJ = str_replace("\x25\143\157\156\164\145\x6e\164\x20\174", "\x25\x63\x6f\156\x74\x65\156\x74\174", $EdoEJ); $EdoEJ = str_replace("\x25\40\143\157\x6e\x74\145\x6e\164\x7c", "\45\x63\157\156\164\x65\156\164\174", $EdoEJ); goto s2Nfn; zL7Os: $EuSg7 = str_replace("\x25\x63\x6f\x6e\x74\145\156\x74\x7c" . $ViwIY . "\40\45", "\45\x63\x6f\x6e\164\x65\x6e\x74\x7c" . $ViwIY . "\x25", $EuSg7); $EuSg7 = str_replace("\45\x63\157\x6e\x74\145\x6e\164\x7c\40" . $ViwIY . "\45", "\x25\x63\x6f\x6e\x74\145\156\164\174" . $ViwIY . "\45", $EuSg7); if (!($kRY39 != null && $kRY39 != '')) { goto gXIzc; } goto H02DX; kBm2v: $ax2yR = SeoFormat::select("\151\x64", "\x74\151\x74\154\x65", "\153\145\171\x77\157\x72\144\163", "\x64\145\163\x63\x72\151\x70\x74\x69\x6f\x6e")->where("\x74\171\160\x65", $fmApF)->first(); if (isset($ax2yR)) { goto hCTop; } return false; goto Lnzla; EcgyR: QyV9T: Iakb6: $LGhW2 = str_replace("\45\x74\x69\164\x6c\145\45", $EGI1s, $ax2yR->title); goto xM0pi; EySLQ: $EuSg7 = str_replace("\46\x6e\142\x73\160\x3b", "\40", $EuSg7); $EuSg7 = trim($EuSg7); if (!(trim($EuSg7) == "\45\143\157\156\x74\145\156\x74\x7c" . $ViwIY . "\45")) { goto kI4Lk; } goto qvKfs; T1Dis: $QEwq_ = 1; BGD95: if (!($QEwq_ <= 1000)) { goto QyV9T; } goto tXF03; H02DX: $b56wV = strip_tags($kRY39); $b56wV = str_replace("\46\x6e\x62\x73\x70\x3b", "\x20", $b56wV); $ejQpJ = mb_substr(trim($b56wV), 0, $ViwIY); goto Yswiv; s2Nfn: $ViwIY = ''; $wW7Z_ = "\45\143\x6f\156\x74\145\156\x74\x7c"; if (!($EdoEJ != '' && strpos($EdoEJ, $wW7Z_) !== false)) { goto Iakb6; } goto T1Dis; PTep5: $EuSg7 = str_replace("\45\40\164\x69\164\x6c\145\x20\x25", $EGI1s, $EuSg7); if (!($ViwIY != '' && is_numeric($ViwIY))) { goto DdOnO; } $EuSg7 = str_replace("\45\40\143\157\x6e\x74\145\156\164\40\x7c", "\45\143\x6f\156\164\145\156\x74\174", $EuSg7); goto rZ1Li; Whkjl: $EuSg7 = str_replace("\x25\x74\151\x74\x6c\x65\45", $EGI1s, $ax2yR->description); $EuSg7 = str_replace("\45\x20\x74\x69\164\154\x65\x25", $EGI1s, $EuSg7); $EuSg7 = str_replace("\x25\164\151\164\x6c\145\x20\45", $EGI1s, $EuSg7); goto PTep5; an4Pz: wC4k_: $QEwq_++; goto BGD95; goto EcgyR; V7toG: $EuSg7 = str_replace("\15\xa", '', $EuSg7); $EuSg7 = str_replace("\15", '', $EuSg7); $EuSg7 = str_replace("\xa", '', $EuSg7); goto EySLQ; tXF03: if (!(strpos($EdoEJ, $wW7Z_ . $QEwq_ . "\45") !== false || strpos($EdoEJ, $wW7Z_ . "\x20" . $QEwq_ . "\x20\x25") !== false || strpos($EdoEJ, $wW7Z_ . "\40" . $QEwq_ . "\45") !== false || strpos($EdoEJ, $wW7Z_ . $QEwq_ . "\40\x25") !== false)) { goto wxfqn; } $ViwIY = $QEwq_; wxfqn: goto an4Pz; qvKfs: $EuSg7 = ''; kI4Lk: $U0Fiq = str_replace("\45\x74\151\x74\x6c\145\x25", $EGI1s, $ax2yR->keywords); goto wKOeA; Lnzla: hCTop: Seo::where("\165\162\x69", $Al5Bw)->delete(); $EdoEJ = trim($ax2yR->description); goto XdEB6; Yswiv: $EuSg7 = str_replace("\x25\143\157\156\164\145\156\x74\174" . $ViwIY . "\x25", $ejQpJ, $EuSg7); gXIzc: DdOnO: goto V7toG; jG2Pa: } private function gutenbergRenderContent($BOrCN) { $zzzv_ = $BOrCN; try { $TreJa = new Gutenberg(); $TreJa->lb_content = $BOrCN; $TreJa->save(); $zzzv_ = $TreJa->lb_content; $TreJa->delete(); } catch (\Exception $WzcFh) { logger($WzcFh->getMessage()); } return $zzzv_; } }