<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:58
 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 Illuminate\Support\Facades\Artisan; use Validator; use Auth; class QuestionController extends Controller { const ITEM_PER_PAGE = 20; const POST_TYPE = "\161\165\x65\163\x74\x69\157\x6e"; protected $_pathFile; protected $_pathTemp; public function __construct() { $this->_pathFile = public_path("\165\160\154\157\141\144\x73\57\151\155\141\x67\145\57\141\x72\x74\x69\143\x6c\145\x2f"); $this->_pathTemp = storage_path("\x61\x70\x70\57\x70\x75\142\154\x69\x63\x2f\x75\160\x6c\x6f\x61\x64\x73\x2f\164\145\155\160\57\151\155\141\147\x65\x2f"); } public function index(Request $request) { goto fH4ww; nlRnT: $dKwPI->where("\x74\151\164\154\145", "\114\x49\x4b\x45", "\45" . $locRh . "\x25"); mb6sx: if (!($JFQvn != '')) { goto JUb8K; } goto RFz_X; GyZDy: return ArticleResource::collection($dKwPI->paginate($Vz4Hf)); goto AMeLa; RFz_X: $dKwPI->where("\151\x73\137\x61\x63\x74\151\x76\x61\x74\x65\144", $JFQvn); JUb8K: $dKwPI->orderBy("\151\x64", "\x44\105\123\103"); goto GyZDy; fH4ww: $GyZhP = $request->all(); $dKwPI = Article::notDeleted()->where("\164\171\160\145", static::POST_TYPE); $Vz4Hf = Arr::get($GyZhP, "\x6c\151\x6d\x69\x74", static::ITEM_PER_PAGE); goto BgPzO; BgPzO: $locRh = Arr::get($GyZhP, "\153\145\x79\x77\157\x72\144", ''); $JFQvn = Arr::get($GyZhP, "\163\164\x61\164\x75\x73", ''); if (empty($locRh)) { goto mb6sx; } goto nlRnT; AMeLa: } public function all() { $dKwPI = Article::select("\151\x64", "\164\x69\164\154\145", "\163\x6c\165\147")->notDeleted()->where("\x74\171\x70\x65", static::POST_TYPE)->orderBy("\151\144"); return ArticleResource::collection($dKwPI->get()); } public function show($seZ5F = 0) { $IWUsr = Article::notDeleted()->where("\151\144", $seZ5F)->where("\x74\x79\160\x65", static::POST_TYPE)->first(); if (isset($IWUsr)) { goto iPcgc; } return response()->json(["\145\162\x72\157\x72\163" => "\x41\162\x74\151\143\154\x65\x20\151\163\x20\156\157\x74\x20\x76\141\154\151\x64"], 403); iPcgc: return new ArticleResource($IWUsr); } public function store(Request $request) { goto vtslB; AxvYo: $IWUsr = Article::create(["\164\151\164\154\x65" => $params["\164\151\164\154\x65"], "\x73\154\x75\x67" => $NVJ1d, "\x64\145\x73\x63\162\x69\160\164\x69\157\156" => $params["\144\x65\x73\143\162\151\160\x74\x69\157\x6e"], "\x65\x64\151\x74\x6f\x72" => $params["\145\144\151\164\x6f\162"], "\147\165\x5f\x63\157\x6e\164\x65\156\x74" => $params["\x67\x75\137\x63\157\x6e\x74\145\x6e\x74"], "\143\157\156\x74\x65\x6e\164" => $M6InR, "\x74\x68\x75\155\x62\156\141\x69\x6c" => $params["\x74\x68\165\155\142\156\x61\151\154"], "\x73\x68\x6f\160\137\x69\x64" => $params["\163\150\157\160\137\x69\x64"], "\146\x6f\x72\x74\165\x6e\145\x5f\164\145\x6c\154\145\162\137\151\x64" => $params["\x66\157\162\164\165\156\145\137\164\x65\154\x6c\x65\162\x5f\x69\144"], "\x69\x6d\160\x6f\x72\x74\x61\x6e\164" => $params["\151\155\x70\157\162\x74\141\156\164"], "\x70\165\x62\154\x69\163\x68\x5f\141\164" => $A2tqW, "\x63\162\x65\141\164\x65\144\x5f\x62\x79" => $mpZkA, "\x75\x73\x65\162\137\x69\144" => $L_rqV, "\160\162\x65\x76\151\145\167" => $gEKut, "\164\171\160\x65" => static::POST_TYPE, "\161\165\145\163\164\151\x6f\156\x5f\x73\164\x61\x74\x75\163" => $xpdmf, "\x69\163\x5f\x70\x75\x62\154\x69\x73\x68\x65\144" => $params["\x69\163\137\141\x63\164\x69\x76\x61\x74\x65\x64"] === true ? 1 : 0, "\x69\x73\x5f\141\143\164\151\166\141\164\145\x64" => $params["\151\x73\x5f\x61\143\x74\151\x76\141\164\x65\144"] === true ? 1 : 0, "\x63\162\145\x61\164\145\144\x5f\x61\x74" => date("\x59\x2d\155\x2d\x64\40\x48\72\151\72\x73"), "\165\x70\x64\141\x74\145\144\x5f\x61\x74" => date("\x59\x2d\x6d\55\x64\40\x48\x3a\x69\x3a\163")]); if (!(isset($params["\143\141\x74\145\147\x6f\162\171"]) && $params["\x63\141\164\145\147\x6f\x72\x79"] != null)) { goto ewpoa; } $JcGZB = []; goto UqzOs; zTgzF: if (!($mpZkA == null || $mpZkA == '' || $mpZkA == "\x6e\165\154\x6c")) { goto DzFV7; } $mpZkA = auth("\x61\x70\151")->user()->id; DzFV7: goto AxvYo; fD_Dh: $NVJ1d = Helper::slug($params["\x74\151\164\154\145"]); ia30z: $gEKut = null; goto t6fm3; t6fm3: if (!($params["\x69\163\137\x61\x63\x74\x69\166\141\164\x65\x64"] != true || $params["\x69\x73\x5f\141\143\x74\x69\166\x61\x74\x65\144"] != "\164\162\165\145" || $params["\x69\163\x5f\141\x63\x74\151\166\x61\x74\145\x64"] != 1)) { goto hknAB; } $gEKut = md5(rand(0, 1000) . date("\x59\55\x6d\55\144\110\72\151\x3a\163")); hknAB: goto YcPK6; LI3ZD: $M6InR = str_replace("\74\x68\62\x3e\x26\156\142\163\x70\73\46\156\x62\163\160\x3b\x26\156\x62\163\x70\x3b\x3c\x2f\x68\x32\x3e", "\x3c\160\x3e\46\156\x62\163\x70\x3b\74\x2f\x70\x3e", $M6InR); $M6InR = str_replace("\x3c\150\x32\x3e\46\x6e\142\163\x70\73\x26\156\142\163\x70\73\46\x6e\142\163\x70\73\46\156\142\163\160\73\x3c\x2f\x68\62\76", "\x3c\160\x3e\x26\156\x62\163\160\x3b\x3c\x2f\160\x3e", $M6InR); $M6InR = str_replace("\150\162\145\x66\x3d\42\x2e\56\x2f", "\x68\162\x65\146\x3d\x22\57", $M6InR); goto FZzUY; dLNu7: $M6InR = str_replace("\x3c\150\62\76\74\57\x68\62\x3e", "\x3c\160\76\x26\156\x62\x73\160\x3b\74\x2f\160\76", $M6InR); $M6InR = str_replace("\x3c\x68\62\x3e\46\156\x62\163\160\73\x3c\57\150\62\76", "\x3c\x70\x3e\x26\x6e\142\x73\x70\x3b\x3c\57\160\76", $M6InR); $M6InR = str_replace("\74\x68\62\76\x26\156\142\x73\x70\73\x26\156\x62\163\160\73\x3c\57\150\x32\x3e", "\74\160\76\46\x6e\142\x73\x70\x3b\x3c\x2f\x70\x3e", $M6InR); goto LI3ZD; FZzUY: $M6InR = str_replace("\x68\162\145\146\75\42\x66\157\162\x74\165\156\x65\55\x74\145\154\154\145\162\57", "\150\x72\145\x66\75\x22\57\146\157\162\164\165\156\145\x2d\164\145\154\154\145\x72\x2f", $M6InR); $NVJ1d = Helper::slug($params["\163\x6c\165\x67"]); if (!empty($NVJ1d)) { goto ia30z; } goto fD_Dh; Y6xow: $QqReq = ''; if (!(isset($params["\153\x65\171\167\157\162\x64"]) && is_array($params["\153\145\x79\167\157\x72\144"]))) { goto Ta2Gq; } $b3Uhu = []; goto qytXI; VYdkM: $M6InR = str_replace("\x75\160\x6c\157\141\x64\163\57\x69\155\x61\x67\x65", "\57\165\x70\x6c\x6f\x61\144\163\x2f\151\x6d\141\147\145", $M6InR); $M6InR = str_replace("\57\57\165\x70\x6c\x6f\x61\144\163\57\151\x6d\x61\x67\145", "\x2f\165\x70\154\157\141\x64\163\57\x69\155\141\x67\145", $M6InR); $M6InR = str_replace("\57\57\57\x75\160\x6c\x6f\141\x64\163\x2f\x69\155\141\x67\x65", "\57\165\160\x6c\x6f\141\144\163\57\x69\x6d\141\147\145", $M6InR); goto dLNu7; YcPK6: $xpdmf = trim($M6InR) != '' && ($params["\x69\x73\x5f\x61\x63\164\x69\166\141\164\x65\144"] == true || $params["\151\x73\137\x61\143\164\x69\166\141\164\x65\x64"] == 1) ? 1 : 0; $L_rqV = $params["\165\163\x65\x72\x5f\x69\144"]; if (!($L_rqV == null || $L_rqV == 0 || $L_rqV == '')) { goto n2DRz; } goto RSEBi; cZqS4: $M6InR = $params["\143\x6f\156\x74\145\156\164"]; $params["\145\x64\x69\164\157\162"] = "\x74\x69\x6e\171\x6d\143\145"; $M6InR = str_replace("\x2e\x2e\x2f\56\x2e\57\56\x2e\57\x2e\x2e\57\165\160\154\x6f\141\x64\x73\x2f\x69\x6d\141\147\145", "\57\165\160\154\157\x61\144\163\x2f\151\x6d\x61\147\x65", $M6InR); goto v58No; v58No: $M6InR = str_replace("\56\56\57\56\x2e\57\56\56\x2f\165\x70\x6c\157\x61\144\x73\x2f\x69\155\x61\x67\145", "\57\x75\160\x6c\157\141\144\x73\x2f\x69\x6d\141\x67\x65", $M6InR); $M6InR = str_replace("\56\56\x2f\x2e\x2e\x2f\165\160\x6c\157\x61\144\163\x2f\151\x6d\141\x67\x65", "\57\x75\x70\154\x6f\141\144\x73\57\x69\155\x61\147\145", $M6InR); $M6InR = str_replace("\56\56\x2f\x75\x70\154\157\141\x64\163\57\x69\x6d\141\x67\x65", "\x2f\x75\x70\154\157\x61\144\163\x2f\151\x6d\x61\x67\x65", $M6InR); goto VYdkM; UqzOs: foreach ($params["\143\x61\164\x65\x67\157\162\171"] as $PA4IN) { if (!($PA4IN == '' || $PA4IN == null)) { goto E65x3; } goto acFqY; E65x3: $JcGZB[] = ["\141\x72\x74\x69\143\x6c\145\137\151\x64" => $IWUsr->id, "\x63\141\x74\x65\x67\157\x72\171\137\x69\144" => $PA4IN, "\x63\162\x65\141\164\x65\x64\137\141\164" => date("\131\55\x6d\x2d\x64\40\x48\72\x69\72\163"), "\x75\x70\x64\141\164\145\144\x5f\x61\x74" => date("\131\x2d\155\x2d\x64\40\x48\x3a\151\72\x73")]; acFqY: } ZCBzT: if (!(count($JcGZB) > 0)) { goto amgQH; } goto zOQo0; qytXI: foreach ($params["\153\x65\171\167\x6f\x72\x64"] as $PA4IN) { goto ILd7r; c5wHf: $QqReq .= $RaQFX . "\54\40"; Ji4SC: goto fYrfw; OJNOg: $THp2b = Keyword::create(["\x6e\x61\155\145" => $RaQFX, "\151\x73\137\141\143\164\151\166\x61\x74\145\x64" => true, "\x69\x73\x5f\144\x65\154\145\164\x65\144" => false, "\x63\x72\145\141\164\x65\144\137\x61\164" => date("\x59\x2d\x6d\x2d\144\40\110\x3a\151\72\x73"), "\x75\160\144\141\x74\145\x64\137\x61\x74" => date("\x59\x2d\155\x2d\144\40\x48\x3a\151\x3a\x73")]); NLXkd: $b3Uhu[] = ["\x6b\x65\171\x77\157\162\144\137\x69\x64" => $THp2b->id, "\162\x65\146\137\151\144" => $IWUsr->id, "\164\171\160\145" => "\141\x72\x74\x69\143\154\145", "\143\162\x65\141\164\x65\x64\137\141\164" => date("\131\x2d\155\55\144\x20\110\x3a\151\72\x73"), "\165\x70\144\141\x74\x65\x64\137\141\x74" => date("\131\x2d\155\55\144\x20\110\x3a\x69\72\x73")]; goto c5wHf; ILd7r: $RaQFX = trim($PA4IN["\x74\145\170\x74"]); $THp2b = Keyword::where("\151\163\x5f\144\x65\x6c\x65\164\x65\144", 0)->where(function ($LFwqg) use($RaQFX) { $LFwqg->where("\156\x61\155\145", $RaQFX)->orWhere("\x6e\141\x6d\145", strtolower($RaQFX))->orWhere("\156\141\155\145", strtoupper($RaQFX))->orWhere("\156\141\155\145", ucfirst($RaQFX)); })->first(); if (!(!isset($THp2b) || $THp2b->id == null)) { goto NLXkd; } goto OJNOg; fYrfw: } MJB1W: if (!(count($b3Uhu) > 0)) { goto gfYFj; } goto Xocnc; Xocnc: KeywordDetail::insert($b3Uhu); gfYFj: Ta2Gq: goto Ciiy1; RSEBi: $L_rqV = auth("\141\160\151")->user()->id; n2DRz: $mpZkA = trim($params["\143\x72\145\141\164\x65\x64\137\142\x79"]); goto zTgzF; zOQo0: CategoryDetail::insert($JcGZB); amgQH: ewpoa: goto Y6xow; Ciiy1: $this->updateSeoInfo($IWUsr->id, $params["\x74\x69\x74\x6c\145"], $NVJ1d, $QqReq, $params["\144\145\163\x63\x72\151\160\x74\x69\x6f\156"]); Artisan::call("\143\141\143\x68\145\x3a\x63\154\145\141\162"); return new ArticleResource($IWUsr); goto ENkIV; kA9qY: Hl1NF: $params = $request->all(); $A2tqW = isset($params["\160\x75\142\154\151\163\150\137\x61\x74"]) && $params["\160\x75\142\154\x69\163\150\137\x61\164"] != null && $params["\x70\x75\142\x6c\151\x73\150\x5f\x61\164"] != '' ? Carbon::parse($params["\160\165\x62\x6c\151\163\x68\137\141\x74"])->format("\131\55\155\x2d\x64\x20\x48\72\151\72\x73") : date("\131\55\x6d\55\144\x20\x48\x3a\151\72\163"); goto cZqS4; vtslB: $zrWKK = Validator::make($request->all(), ["\164\x69\x74\154\x65" => ["\162\x65\x71\165\x69\162\145\144"], "\x69\x73\137\x61\x63\164\x69\x76\x61\164\x65\144" => ["\x72\x65\x71\x75\151\162\x65\144"]]); if (!$zrWKK->fails()) { goto Hl1NF; } return response()->json(["\145\162\x72\x6f\x72\163" => $zrWKK->errors()], 403); goto kA9qY; ENkIV: } public function update($seZ5F = 0, Request $request) { goto LDmKe; cwrwD: $gEKut = md5(rand(0, 1000) . date("\131\55\155\55\x64\x48\72\151\x3a\163")); DsASr: Mad93: goto DjVDB; pf7eg: return response()->json(["\x65\162\162\x6f\x72\x73" => "\x41\x72\164\151\x63\154\145\x20\x69\163\40\156\157\x74\40\166\x61\x6c\151\x64"], 403); iUYXw: $params = $request->all(); goto bj2PA; Xs2_v: $M6InR = str_replace("\57\x2f\x2f\x75\160\x6c\x6f\141\144\x73\57\x69\x6d\x61\x67\x65", "\x2f\165\x70\x6c\x6f\x61\x64\163\57\x69\x6d\141\x67\x65", $M6InR); $M6InR = str_replace("\x3c\150\x32\x3e\74\x2f\x68\x32\76", "\74\160\x3e\x26\x6e\x62\x73\160\73\74\x2f\160\76", $M6InR); $M6InR = str_replace("\x3c\150\62\76\x26\x6e\142\163\160\73\x3c\57\x68\62\x3e", "\74\x70\x3e\46\x6e\142\x73\160\73\74\x2f\160\76", $M6InR); goto bCFRh; OpsTE: if (!empty($NVJ1d)) { goto j7tNZ; } $NVJ1d = Helper::slug($params["\x74\151\x74\x6c\145"]); j7tNZ: goto heb6A; V0LM4: $IWUsr->update(["\164\151\164\154\145" => $params["\164\151\x74\x6c\x65"], "\163\154\x75\x67" => $NVJ1d, "\x64\145\x73\143\x72\x69\x70\x74\151\x6f\x6e" => $params["\144\x65\x73\x63\x72\x69\160\164\x69\x6f\x6e"], "\145\144\151\164\x6f\x72" => $params["\145\x64\151\x74\x6f\x72"], "\x67\165\137\143\157\x6e\164\x65\156\x74" => $params["\x67\165\137\143\157\156\164\145\156\x74"], "\x63\157\156\x74\x65\x6e\x74" => $M6InR, "\164\150\165\155\142\x6e\x61\x69\154" => $params["\x74\150\165\155\142\x6e\141\x69\154"], "\x73\x68\157\160\x5f\151\144" => $params["\163\150\157\x70\137\151\x64"], "\x66\157\162\164\165\x6e\145\137\x74\145\x6c\154\x65\x72\137\x69\144" => $params["\x66\x6f\162\x74\165\x6e\x65\137\164\145\x6c\154\x65\162\x5f\151\144"], "\151\x6d\x70\x6f\162\x74\141\156\164" => $params["\x69\155\x70\157\162\x74\141\156\x74"], "\160\165\x62\154\151\x73\150\x5f\141\164" => $A2tqW, "\x63\x72\x65\141\x74\145\x64\137\x62\171" => $mpZkA, "\165\x73\x65\x72\137\151\x64" => $L_rqV, "\160\162\145\x76\x69\x65\x77" => $gEKut, "\x74\171\x70\145" => static::POST_TYPE, "\161\x75\x65\163\x74\151\157\156\x5f\x73\x74\141\164\165\163" => $xpdmf, "\x69\x73\x5f\160\x75\142\x6c\x69\163\x68\x65\x64" => $params["\151\163\137\x61\x63\164\151\166\141\164\x65\144"] === true ? 1 : 0, "\151\163\x5f\x61\x63\164\x69\166\x61\x74\145\x64" => $params["\151\163\137\141\143\164\x69\166\x61\x74\x65\144"] === true ? 1 : 0, "\x75\160\x64\141\164\x65\x64\137\x61\x74" => date("\131\55\x6d\55\144\40\110\72\x69\x3a\x73")]); if (!($IWUsr->user_id == null || $IWUsr->user_id == '')) { goto Zkixw; } $IWUsr->update(["\165\163\145\x72\x5f\151\x64" => auth("\141\x70\x69")->user()->id]); goto PmNsw; heb6A: $gEKut = $IWUsr->preview; if (!($params["\x69\x73\x5f\141\143\x74\151\x76\141\x74\x65\x64"] != true || $params["\x69\x73\137\x61\x63\x74\151\x76\x61\164\x65\x64"] != "\164\162\x75\x65" || $params["\x69\163\x5f\141\143\x74\x69\166\141\x74\x65\144"] != 1)) { goto Mad93; } if (!($gEKut == null || $gEKut == '')) { goto DsASr; } goto cwrwD; DjVDB: $xpdmf = trim($M6InR) != '' && ($params["\151\163\x5f\141\x63\164\x69\x76\141\x74\x65\x64"] == true || $params["\x69\163\137\141\143\164\151\x76\x61\164\145\144"] == 1) ? 1 : 3; $L_rqV = $params["\x75\x73\x65\x72\x5f\151\144"]; if (!($L_rqV == null || $L_rqV == 0 || $L_rqV == '')) { goto qu0bQ; } goto Id1fV; Id1fV: $L_rqV = auth("\x61\160\151")->user()->id; qu0bQ: $mpZkA = $IWUsr->created_by; goto IxBYd; dIgiB: jznRB: $IWUsr = Article::notDeleted()->where("\151\x64", $seZ5F)->first(); if (isset($IWUsr)) { goto iUYXw; } goto pf7eg; bj2PA: $A2tqW = isset($params["\160\165\142\x6c\x69\163\150\137\141\x74"]) && $params["\160\x75\142\154\x69\163\x68\137\141\x74"] != null && $params["\160\x75\142\x6c\x69\163\150\x5f\141\x74"] != '' ? Carbon::parse($params["\160\x75\x62\x6c\151\163\150\x5f\141\164"])->format("\x59\55\155\x2d\x64\40\x48\72\x69\72\163") : date("\x59\55\x6d\55\144\40\x48\x3a\x69\x3a\x73"); $M6InR = $params["\143\157\156\x74\x65\156\x74"]; $params["\x65\x64\x69\x74\157\x72"] = "\x74\x69\x6e\x79\155\x63\145"; goto Ta6jr; eSOkE: if (!(count($JcGZB) > 0)) { goto I25JE; } CategoryDetail::insert($JcGZB); I25JE: goto QODXw; QODXw: ckUZh: $QqReq = ''; if (!(isset($params["\153\145\171\x77\157\x72\x64"]) && is_array($params["\x6b\145\x79\x77\x6f\162\x64"]))) { goto fMcpH; } goto m2XBm; Ta6jr: $M6InR = str_replace("\x2e\x2e\x2f\56\56\57\x2e\x2e\57\x2e\x2e\57\x75\160\154\x6f\141\x64\x73\x2f\x69\155\x61\147\x65", "\57\x75\160\154\x6f\x61\x64\x73\x2f\x69\155\141\147\145", $M6InR); $M6InR = str_replace("\56\56\57\x2e\x2e\x2f\x2e\x2e\57\x75\160\154\157\x61\x64\163\57\151\x6d\x61\x67\145", "\57\x75\x70\x6c\157\141\144\163\57\x69\155\141\x67\x65", $M6InR); $M6InR = str_replace("\x2e\56\x2f\56\56\57\x75\x70\x6c\x6f\141\144\x73\x2f\x69\x6d\141\x67\145", "\57\165\160\x6c\x6f\141\x64\x73\57\x69\155\x61\x67\x65", $M6InR); goto Rr_ss; mZUHM: if (!($mpZkA == null || $mpZkA == '' || $mpZkA == "\156\x75\154\154")) { goto xduMf; } $mpZkA = auth("\x61\160\x69")->user()->id; xduMf: goto V0LM4; lymlB: iymWA: fMcpH: $this->updateSeoInfo($IWUsr->id, $params["\x74\151\x74\x6c\145"], $NVJ1d, $QqReq, $params["\144\x65\163\x63\162\x69\x70\x74\151\x6f\156"]); goto A2Ze6; LDmKe: $zrWKK = Validator::make($request->all(), ["\x74\x69\x74\x6c\145" => ["\162\x65\161\165\x69\x72\145\x64"], "\151\x73\x5f\x61\143\164\x69\x76\141\x74\x65\144" => ["\x72\x65\x71\x75\151\x72\145\144"]]); if (!$zrWKK->fails()) { goto jznRB; } return response()->json(["\x65\x72\162\157\x72\x73" => $zrWKK->errors()], 403); goto dIgiB; OoUSD: KTXdD: if (!(count($b3Uhu) > 0)) { goto iymWA; } KeywordDetail::insert($b3Uhu); goto lymlB; bCFRh: $M6InR = str_replace("\x3c\x68\62\76\46\156\x62\x73\x70\x3b\46\x6e\x62\x73\160\x3b\74\57\150\62\x3e", "\74\160\x3e\x26\x6e\142\x73\160\73\x3c\57\160\x3e", $M6InR); $M6InR = str_replace("\x3c\150\62\76\x26\x6e\142\163\160\x3b\46\156\x62\x73\160\73\x26\x6e\x62\163\x70\x3b\x3c\x2f\x68\62\x3e", "\x3c\160\76\46\x6e\142\x73\160\x3b\x3c\57\160\x3e", $M6InR); $M6InR = str_replace("\x3c\x68\62\76\x26\156\142\x73\x70\73\46\156\x62\x73\160\73\46\156\142\163\160\73\x26\156\x62\163\x70\73\74\x2f\x68\62\76", "\x3c\160\76\46\156\142\163\x70\x3b\74\x2f\160\x3e", $M6InR); goto AyJ6t; IxBYd: if (!($params["\x63\162\145\x61\164\x65\x64\137\x62\x79"] != null && $params["\143\162\145\141\x74\x65\144\x5f\142\x79"] != '' && $params["\x63\x72\145\141\164\x65\144\137\142\171"] != "\x6e\x75\154\154")) { goto KyRPY; } $mpZkA = trim($params["\143\x72\145\141\164\x65\x64\x5f\142\x79"]); KyRPY: goto mZUHM; Rr_ss: $M6InR = str_replace("\x2e\x2e\x2f\x75\x70\154\x6f\141\144\163\57\151\155\x61\147\145", "\57\165\160\x6c\157\141\144\x73\x2f\x69\155\141\147\x65", $M6InR); $M6InR = str_replace("\x75\160\x6c\157\x61\144\x73\57\151\155\x61\147\x65", "\57\x75\x70\154\157\141\x64\x73\57\151\x6d\141\147\x65", $M6InR); $M6InR = str_replace("\x2f\57\165\x70\x6c\157\141\144\163\x2f\151\155\141\x67\x65", "\57\x75\x70\154\x6f\141\x64\163\57\151\x6d\141\147\x65", $M6InR); goto Xs2_v; PmNsw: Zkixw: CategoryDetail::where("\x61\162\x74\x69\143\x6c\x65\x5f\151\x64", $IWUsr->id)->delete(); if (!(isset($params["\143\141\x74\x65\147\157\162\171"]) && $params["\x63\x61\164\145\147\x6f\162\x79"] != null)) { goto ckUZh; } goto y99OS; A2Ze6: Artisan::call("\x63\141\x63\150\145\x3a\143\154\145\141\162"); return response()->json(null, 204); goto YrqrK; AyJ6t: $M6InR = str_replace("\x68\x72\x65\146\x3d\x22\56\x2e\57", "\x68\162\x65\x66\x3d\42\x2f", $M6InR); $M6InR = str_replace("\150\x72\x65\146\75\x22\146\x6f\162\164\165\156\145\x2d\x74\x65\x6c\x6c\x65\x72\x2f", "\150\162\x65\x66\75\42\57\146\x6f\x72\x74\165\156\145\x2d\x74\145\154\x6c\145\162\57", $M6InR); $NVJ1d = Helper::slug($params["\163\154\165\x67"]); goto OpsTE; y99OS: $JcGZB = []; foreach ($params["\x63\141\x74\145\147\x6f\x72\171"] as $PA4IN) { goto iWjNM; iWjNM: if (!($PA4IN == '' || $PA4IN == null)) { goto IPyzZ; } goto YRgHo; IPyzZ: goto oVeT6; oVeT6: $q754F = Category::where("\151\x73\x5f\x61\143\x74\151\x76\x61\x74\x65\x64", true)->where("\x69\163\x5f\x64\x65\154\145\x74\x65\144", false)->where("\x69\144", $PA4IN)->count(); if (!($q754F > 0)) { goto pBRM2; } $JcGZB[] = ["\x61\162\164\151\143\x6c\145\137\x69\144" => $IWUsr->id, "\x63\x61\x74\145\147\x6f\162\x79\x5f\151\x64" => $PA4IN, "\143\162\x65\x61\164\x65\144\137\x61\x74" => date("\x59\x2d\155\x2d\x64\x20\110\x3a\x69\x3a\163"), "\x75\x70\144\x61\164\145\x64\x5f\x61\x74" => date("\131\55\x6d\55\144\40\x48\x3a\x69\72\163")]; goto Fimhp; Fimhp: pBRM2: YRgHo: goto Gc0I5; Gc0I5: } gCcfQ: goto eSOkE; m2XBm: KeywordDetail::where("\x72\x65\146\x5f\x69\x64", $IWUsr->id)->where("\164\x79\x70\x65", "\x61\x72\x74\151\x63\x6c\x65")->delete(); $b3Uhu = []; foreach ($params["\x6b\145\171\x77\157\x72\144"] as $PA4IN) { goto OszWh; evtzU: $THp2b = Keyword::create(["\156\141\x6d\x65" => $RaQFX, "\151\x73\137\x61\143\164\151\166\141\164\145\x64" => true, "\151\163\137\x64\x65\154\145\x74\x65\x64" => false, "\x63\162\145\x61\164\145\x64\137\141\164" => date("\x59\x2d\x6d\55\x64\40\x48\72\151\x3a\x73"), "\x75\x70\144\141\164\145\144\137\x61\164" => date("\x59\55\155\55\x64\40\110\72\x69\72\163")]); PJH4q: $b3Uhu[] = ["\153\145\x79\x77\157\x72\x64\137\x69\144" => $THp2b->id, "\162\x65\146\137\151\x64" => $IWUsr->id, "\x74\171\x70\x65" => "\141\162\x74\151\143\154\145", "\x63\162\x65\141\x74\x65\x64\x5f\141\164" => date("\131\x2d\155\55\144\x20\110\x3a\x69\x3a\163"), "\165\x70\x64\141\164\x65\144\x5f\141\x74" => date("\131\55\155\x2d\144\x20\110\x3a\x69\x3a\163")]; goto oWoEv; oWoEv: $QqReq .= $RaQFX . "\54\40"; Kvu15: goto jsWq0; OszWh: $RaQFX = trim($PA4IN["\164\145\170\x74"]); $THp2b = Keyword::where("\x69\163\x5f\144\145\154\x65\164\145\x64", 0)->where(function ($LFwqg) use($RaQFX) { $LFwqg->where("\x6e\x61\155\x65", $RaQFX)->orWhere("\156\141\155\x65", strtolower($RaQFX))->orWhere("\x6e\x61\155\x65", strtoupper($RaQFX))->orWhere("\x6e\x61\155\145", ucfirst($RaQFX)); })->first(); if (!(!isset($THp2b) || $THp2b->id == null)) { goto PJH4q; } goto evtzU; jsWq0: } goto OoUSD; YrqrK: } public function destroy($seZ5F = 0) { $IWUsr = Article::notDeleted()->where("\151\x64", $seZ5F)->where("\164\x79\x70\145", static::POST_TYPE)->first(); if (isset($IWUsr)) { goto Qsoeh; } response()->json(["\x65\162\162\x6f\162" => "\105\150\150\x68\x21\40\x43\x61\x6e\40\x6e\157\x74\x20\x64\x65\154\145\164\145\40\x74\x68\x69\x73\40\x61\162\x74\x69\143\x6c\145"], 403); Qsoeh: try { $IWUsr->update(["\x69\163\x5f\144\145\154\145\x74\145\144" => true]); Seo::where("\x75\162\x69", "\154\x69\x6b\145", "\x2f\142\142\163\x2f\x64\145\x74\x61\151\x6c\x2f" . $IWUsr->id . "\57\x25")->delete(); Artisan::call("\x63\141\143\x68\x65\72\x63\x6c\x65\x61\162"); } catch (\Exception $H1nE3) { response()->json(["\145\162\162\x6f\x72" => $H1nE3->getMessage()], 403); } return response()->json(null, 204); } public function destroyMultiple(Request $request) { goto zz2Ju; wVuYt: try { Article::notDeleted()->whereIn("\151\x64", $Avcka)->where("\x74\171\160\x65", static::POST_TYPE)->update(["\x69\163\x5f\x64\145\x6c\145\164\145\144" => true]); foreach ($Avcka as $dRGw0) { Seo::where("\x75\162\151", "\154\151\x6b\x65", "\57\x62\142\x73\57\144\x65\164\x61\151\154\x2f" . $dRGw0 . "\57\x25")->delete(); J7pEz: } dzBrz: Artisan::call("\143\x61\x63\x68\x65\x3a\143\154\145\x61\x72"); } catch (\Exception $H1nE3) { response()->json(["\145\162\x72\x6f\162" => $H1nE3->getMessage()], 403); } return response()->json(null, 204); goto Faw9q; QD2na: NuW5m: $Avcka = $request->get("\x69\144\163", []); $cfNgv = Article::notDeleted()->whereIn("\151\x64", $Avcka)->where("\x74\171\160\x65", static::POST_TYPE)->get(); goto aq9d0; aq9d0: if (!($cfNgv->count() <= 0)) { goto EZlPc; } response()->json(["\145\162\162\x6f\x72" => "\101\162\164\151\x63\154\145\x20\151\163\40\x6e\x6f\x74\40\x76\141\x6c\151\x64\x2e"], 403); EZlPc: goto wVuYt; zz2Ju: $zrWKK = Validator::make($request->all(), ["\x69\144\163" => "\x72\x65\x71\x75\151\162\145\x64"]); if (!$zrWKK->fails()) { goto NuW5m; } return response()->json(["\x65\162\x72\x6f\x72\x73" => $zrWKK->errors()], 403); goto QD2na; Faw9q: } public function activateMultiple(Request $request) { goto x0Tzl; Vy9aE: FCrf1: $Avcka = $request->get("\151\144\x73", []); $cfNgv = Article::notDeleted()->whereIn("\151\x64", $Avcka)->where("\164\171\160\145", static::POST_TYPE)->get(); goto zl51y; zl51y: if (!($cfNgv->count() <= 0)) { goto ku0wV; } response()->json(["\x65\162\x72\x6f\x72" => "\101\x72\x74\151\x63\x6c\x65\40\x69\x73\x20\156\x6f\164\40\x76\x61\154\x69\144\x2e"], 403); ku0wV: goto bH3u3; x0Tzl: $zrWKK = Validator::make($request->all(), ["\151\144\x73" => "\x72\145\161\165\151\x72\145\x64"]); if (!$zrWKK->fails()) { goto FCrf1; } return response()->json(["\x65\162\162\x6f\x72\x73" => $zrWKK->errors()], 403); goto Vy9aE; bH3u3: try { Article::notDeleted()->whereIn("\151\144", $Avcka)->where("\x74\171\160\x65", static::POST_TYPE)->update(["\151\163\137\141\x63\x74\x69\x76\141\164\145\144" => true]); } catch (\Exception $H1nE3) { response()->json(["\x65\162\x72\x6f\x72" => $H1nE3->getMessage()], 403); } return response()->json(null, 204); goto WRfLA; WRfLA: } public function deactivateMultiple(Request $request) { goto iONJv; iONJv: $zrWKK = Validator::make($request->all(), ["\151\144\x73" => "\x72\x65\x71\x75\x69\162\145\144"]); if (!$zrWKK->fails()) { goto jZGM7; } return response()->json(["\145\x72\162\157\x72\x73" => $zrWKK->errors()], 403); goto NclWV; jONeR: try { Article::notDeleted()->whereIn("\x69\144", $Avcka)->where("\164\171\160\145", static::POST_TYPE)->update(["\151\163\137\x61\143\x74\x69\x76\141\x74\145\144" => false]); } catch (\Exception $H1nE3) { response()->json(["\x65\x72\x72\157\x72" => $H1nE3->getMessage()], 403); } return response()->json(null, 204); goto fHMeG; nC4Xv: if (!($cfNgv->count() <= 0)) { goto uQ2zS; } response()->json(["\x65\x72\x72\157\x72" => "\x41\162\164\151\x63\154\145\x20\151\x73\x20\x6e\157\x74\40\166\141\x6c\151\x64\56"], 403); uQ2zS: goto jONeR; NclWV: jZGM7: $Avcka = $request->get("\x69\144\163", []); $cfNgv = Article::notDeleted()->whereIn("\x69\144", $Avcka)->where("\x74\x79\x70\x65", static::POST_TYPE)->get(); goto nC4Xv; fHMeG: } public function uploadImage(Request $request) { goto fIm1k; fIm1k: if (!$request->hasFile("\x69\x6d\x61\147\x65")) { goto JkZAA; } $NT3KR = $request->file("\x69\x6d\141\x67\x65"); $v2qUW = $NT3KR->getClientOriginalName(); goto VZznp; VZznp: $wwIlX = md5($v2qUW . rand(1111, 9999) . date("\x59\x6d\x64\110\x69\x73")) . "\x2e" . $NT3KR->getClientOriginalExtension(); $NT3KR->move($this->_pathTemp, $wwIlX); chmod($this->_pathTemp . $wwIlX, 0777); goto NnjJQ; NnjJQ: return response()->json(["\x73\164\x61\164\x75\163" => "\163\165\143\143\x65\163\163", "\x6d\x65\163\x73\141\x67\x65" => "\125\160\154\157\141\144\x20\x53\x75\143\143\145\x73\x73\x2e", "\146\151\x6c\145\137\156\141\x6d\x65" => $wwIlX, "\142\141\x73\x65\x4e\141\155\x65" => $v2qUW], 200); JkZAA: return response()->json(["\163\x74\x61\x74\x75\x73" => "\145\162\x72\157\x72", "\x6d\145\x73\163\x61\x67\x65" => "\125\160\x6c\157\141\144\40\106\x61\151\154\56", "\x66\x69\154\x65\x5f\156\x61\155\x65" => null], 403); goto Li1Ja; Li1Ja: } public function uploadImages(Request $request) { goto fsejU; lJmvv: return response()->json(["\x68\141\x73\x53\x75\143\x63\145\163\163" => true, "\155\145\x73\163\141\147\145" => "\125\x70\x6c\157\141\x64\40\123\165\x63\143\145\x73\x73\x2e", "\x66\x69\x6c\145\x5f\x6e\141\155\x65" => $wwIlX, "\x62\x61\x73\145\x4e\x61\155\145" => $v2qUW, "\x66\151\x6c\145\x73" => ["\146\151\154\x65" => $wwIlX]], 200); vlseT: return response()->json(["\x68\x61\163\123\165\x63\143\x65\x73\x73" => false, "\155\145\163\163\x61\147\x65" => "\125\160\154\x6f\141\x64\x20\x46\x61\x69\154\x2e", "\146\x69\x6c\x65\x5f\156\141\155\145" => null, "\146\x69\154\145\x73" => null], 403); goto beVQG; O2hYx: $wwIlX = md5($v2qUW . rand(1111, 9999) . date("\131\x6d\144\110\x69\x73")) . "\56" . $NT3KR->getClientOriginalExtension(); $NT3KR->move($this->_pathFile, $wwIlX); chmod($this->_pathFile . $wwIlX, 0777); goto lJmvv; fsejU: if (!$request->hasFile("\x66\x69\154\x65")) { goto vlseT; } $NT3KR = $request->file("\146\151\154\x65"); $v2qUW = $NT3KR->getClientOriginalName(); goto O2hYx; beVQG: } private function updateSeoInfo($tnvhp, $xW36v, $NVJ1d, $b3Uhu, $XND7i) { Seo::where("\x75\162\x69", "\x6c\151\x6b\145", "\57\142\142\163\x2f\x64\x65\x74\141\151\x6c\x2f" . $tnvhp . "\x2f\45")->delete(); Seo::create(["\x75\162\151" => "\57\x62\x62\163\x2f\144\x65\x74\x61\x69\x6c\x2f" . $tnvhp . "\57" . $NVJ1d, "\164\151\164\154\x65" => $xW36v . "\x20\x7c\40\xe6\x8e\xb2\xe7\xa4\272\346\x9d\277\40\x7c\x20" . config("\x73\x65\x74\164\151\x6e\x67\x73\56\x73\x69\x74\x65\137\156\x61\155\x65"), "\x6b\145\x79\x77\157\x72\144\163" => $b3Uhu, "\x64\x65\x73\143\162\x69\x70\x74\x69\x6f\156" => $XND7i, "\164\x79\x70\x65" => "\142\x62\163", "\160\x6f\x73\164\x5f\x69\144" => $tnvhp, "\x63\x72\x65\141\x74\145\144\137\x61\x74" => date("\131\x2d\155\55\x64\40\x48\72\151\x3a\163"), "\x75\x70\144\141\164\145\x64\x5f\141\x74" => date("\131\x2d\x6d\55\x64\40\x48\72\151\x3a\163")]); } private function gutenbergRenderContent($M6InR) { $tjaCN = $M6InR; try { $uhmbY = new Gutenberg(); $uhmbY->lb_content = $M6InR; $uhmbY->save(); $tjaCN = $uhmbY->lb_content; $uhmbY->delete(); } catch (\Exception $FYn4l) { logger($FYn4l->getMessage()); } return $tjaCN; } }