<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-06-18 09:19:18
 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\Laravue\Acl; 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 ArticleController extends Controller { const ITEM_PER_PAGE = 20; const POST_TYPE = "\141\x72\x74\x69\x63\x6c\x65"; protected $_pathFile; protected $_pathTemp; public function __construct() { $this->_pathFile = public_path("\x75\x70\x6c\x6f\x61\144\163\57\151\x6d\141\147\145\x2f\x61\x72\x74\x69\x63\154\x65\57"); $this->_pathTemp = storage_path("\x61\160\x70\x2f\160\165\142\x6c\x69\x63\x2f\x75\160\154\x6f\141\144\x73\x2f\x74\x65\155\x70\x2f\151\x6d\141\147\x65\x2f"); } public function index(Request $request) { goto yao86; yao86: $Zr7Zn = $request->all(); $HE2a3 = auth("\x61\x70\x69")->user(); $O2OVp = Arr::get($Zr7Zn, "\x6c\x69\x6d\151\x74", static::ITEM_PER_PAGE); goto JBxDM; RDOjV: if ($HE2a3->hasRole(["\x61\144\x6d\151\x6e", "\x6d\141\x6e\x61\x67\x65\162"])) { goto GZuue; } $XesLG->where("\x69\144", 0); GZuue: goto rG2eT; JyX1z: if (!($erjKY != '')) { goto ohkgW; } $XesLG->where("\151\163\x5f\141\x63\x74\151\166\x61\164\x65\x64", $erjKY); ohkgW: goto kVnMi; ChcWu: if ($HE2a3->hasRole(["\x61\144\155\151\x6e", "\155\x61\156\x61\x67\145\x72"])) { goto kLhf_; } $XesLG->where("\165\x73\145\162\x5f\x69\144", $HE2a3->id); kLhf_: goto RDOjV; rG2eT: if (empty($I2u8H)) { goto ifTfV; } $XesLG->where("\164\x69\x74\154\x65", "\114\x49\x4b\x45", "\x25" . $I2u8H . "\x25"); ifTfV: goto JyX1z; JBxDM: $I2u8H = Arr::get($Zr7Zn, "\x6b\145\x79\167\157\x72\144", ''); $erjKY = Arr::get($Zr7Zn, "\x73\x74\141\x74\x75\x73", ''); $XesLG = Article::notDeleted()->where("\164\171\160\x65", static::POST_TYPE); goto ChcWu; kVnMi: $XesLG->orderBy("\x69\144", "\x44\x45\x53\x43"); return ArticleResource::collection($XesLG->paginate($O2OVp)); goto oQtcf; oQtcf: } public function all() { $XesLG = Article::select("\x69\144", "\x74\151\x74\154\145", "\x73\x6c\165\x67")->notDeleted()->where("\x74\x79\160\x65", static::POST_TYPE)->orderBy("\x69\144"); return ArticleResource::collection($XesLG->get()); } public function show($YXMul = 0) { $bem5l = Article::notDeleted()->where("\x69\x64", $YXMul)->where("\x74\171\x70\x65", static::POST_TYPE)->first(); if (isset($bem5l)) { goto exp0Y; } return response()->json(["\145\x72\162\157\x72\x73" => "\101\162\164\x69\x63\x6c\145\x20\151\x73\x20\156\157\x74\x20\x76\x61\154\x69\144"], 403); exp0Y: return new ArticleResource($bem5l); } public function store(Request $request) { goto P60m3; s0Xzx: $lwigm = str_replace("\x3c\150\62\76\46\x6e\142\x73\x70\x3b\x26\x6e\x62\x73\160\x3b\46\x6e\142\163\160\73\74\x2f\150\62\76", "\74\x70\76\x26\x6e\x62\x73\x70\x3b\74\57\160\x3e", $lwigm); $lwigm = str_replace("\x3c\150\x32\x3e\x26\x6e\142\163\160\73\x26\x6e\142\x73\x70\73\46\156\x62\163\x70\73\46\156\x62\x73\160\73\74\x2f\150\x32\76", "\x3c\160\x3e\46\156\142\163\x70\x3b\x3c\57\160\76", $lwigm); $lwigm = str_replace("\150\162\145\146\75\42\x2e\x2e\x2f", "\150\162\145\146\75\42\x2f", $lwigm); goto PDnSt; MQBZE: $lwigm = $this->gutenbergRenderContent($params["\x67\165\137\143\157\x6e\164\x65\x6e\x74"]); kFgpM: $lwigm = str_replace("\x2e\x2e\x2f\x2e\x2e\57\x2e\x2e\x2f\x2e\x2e\57\x75\160\x6c\x6f\141\144\x73\57\151\x6d\141\x67\145", "\57\165\x70\x6c\157\141\x64\163\57\x69\x6d\141\147\145", $lwigm); goto uKZ34; dCN3_: PXAkI: $je56I = ''; if (!(isset($params["\153\145\171\x77\x6f\x72\x64"]) && is_array($params["\153\145\x79\167\x6f\x72\144"]))) { goto mqD1_; } goto FY6bj; XU8jH: if (!(count($nBXmV) > 0)) { goto ro5s5; } KeywordDetail::insert($nBXmV); ro5s5: goto ht4yy; P60m3: $pDyFf = Validator::make($request->all(), ["\x74\x69\x74\154\145" => ["\x72\x65\x71\x75\x69\x72\145\x64"], "\x69\163\x5f\x61\x63\164\151\166\141\x74\145\144" => ["\x72\x65\x71\165\151\x72\x65\x64"]]); if (!$pDyFf->fails()) { goto M5nWU; } return response()->json(["\145\x72\162\157\162\x73" => $pDyFf->errors()], 403); goto Gi0MC; FY6bj: $nBXmV = []; foreach ($params["\x6b\145\x79\167\x6f\x72\144"] as $a_bEz) { goto zoG3O; kuqEW: $je56I .= $SQrik . "\54\40"; k8eOj: goto XDFep; zoG3O: $SQrik = trim($a_bEz["\164\x65\x78\164"]); $aUi3K = Keyword::where("\151\x73\x5f\144\x65\x6c\145\164\145\144", 0)->where(function ($xWW0e) use($SQrik) { $xWW0e->where("\156\141\x6d\x65", $SQrik)->orWhere("\156\141\155\x65", strtolower($SQrik))->orWhere("\156\141\x6d\145", strtoupper($SQrik))->orWhere("\156\x61\x6d\x65", ucfirst($SQrik)); })->first(); if (!(!isset($aUi3K) || $aUi3K->id == null)) { goto VjDTU; } goto UnVAs; UnVAs: $aUi3K = Keyword::create(["\x6e\x61\x6d\145" => $SQrik, "\151\163\137\141\x63\x74\151\x76\141\x74\145\x64" => true, "\151\163\137\x64\145\154\x65\x74\145\x64" => false, "\143\x72\145\x61\x74\145\x64\x5f\x61\164" => date("\131\55\155\55\x64\x20\x48\x3a\x69\x3a\x73"), "\x75\x70\x64\x61\x74\145\144\x5f\141\164" => date("\x59\x2d\155\x2d\x64\x20\110\72\x69\x3a\x73")]); VjDTU: $nBXmV[] = ["\x6b\145\171\167\x6f\x72\x64\x5f\x69\144" => $aUi3K->id, "\x72\145\146\137\151\144" => $bem5l->id, "\x74\171\160\145" => "\141\162\x74\151\x63\154\x65", "\x63\162\145\x61\x74\145\x64\x5f\141\164" => date("\x59\x2d\155\x2d\144\40\x48\x3a\x69\72\163"), "\x75\x70\144\x61\x74\x65\144\x5f\x61\x74" => date("\x59\55\x6d\x2d\144\x20\110\72\151\x3a\163")]; goto kuqEW; XDFep: } e5KUW: goto XU8jH; PDnSt: $lwigm = str_replace("\x68\162\x65\146\x3d\42\146\157\162\x74\x75\x6e\145\55\164\x65\154\x6c\x65\162\57", "\150\162\145\x66\75\x22\x2f\x66\157\x72\x74\165\156\145\55\164\145\154\x6c\145\162\57", $lwigm); $aXoHa = Helper::slug($params["\x73\154\165\147"]); if (!empty($aXoHa)) { goto ag1QZ; } goto mDBFt; uKZ34: $lwigm = str_replace("\56\x2e\57\56\x2e\x2f\56\x2e\x2f\165\x70\x6c\x6f\x61\144\x73\x2f\x69\x6d\141\x67\x65", "\57\165\x70\154\x6f\141\x64\x73\x2f\151\155\x61\147\x65", $lwigm); $lwigm = str_replace("\56\x2e\x2f\x2e\56\57\x75\x70\x6c\157\141\x64\163\x2f\151\x6d\x61\147\145", "\57\165\x70\154\x6f\141\x64\x73\x2f\151\155\x61\147\x65", $lwigm); $lwigm = str_replace("\x2e\56\57\x75\160\154\x6f\141\x64\x73\57\151\x6d\141\x67\x65", "\57\165\x70\154\x6f\x61\x64\x73\x2f\x69\155\x61\147\145", $lwigm); goto EO0sd; DSzWE: $EGLum = $params["\x75\x73\x65\162\137\151\144"]; if (!($EGLum == null || $EGLum == 0 || $EGLum == '')) { goto UpvIj; } $EGLum = auth("\141\160\x69")->user()->id; goto z_WlF; z_WlF: UpvIj: $bem5l = Article::create(["\164\x69\164\154\145" => $params["\164\151\164\154\145"], "\163\x6c\x75\x67" => $aXoHa, "\x64\145\x73\143\162\x69\x70\x74\x69\157\156" => $params["\x64\x65\163\143\x72\x69\160\164\x69\x6f\156"], "\145\144\x69\164\x6f\162" => $params["\145\x64\x69\x74\x6f\162"], "\147\x75\x5f\143\x6f\x6e\x74\x65\x6e\164" => $params["\x67\x75\137\143\157\156\x74\x65\156\x74"], "\143\x6f\156\x74\x65\156\164" => $lwigm, "\x74\150\x75\x6d\x62\x6e\141\x69\154" => $params["\164\150\165\x6d\x62\156\x61\x69\154"], "\163\150\x6f\160\x5f\x69\x64" => $params["\163\x68\157\160\137\151\144"], "\x66\x6f\162\x74\165\x6e\x65\x5f\x74\145\154\154\145\x72\137\151\144" => $params["\146\157\x72\164\x75\156\145\x5f\x74\145\154\x6c\x65\x72\137\x69\144"], "\151\155\x70\157\162\x74\x61\156\164" => $params["\151\x6d\x70\x6f\x72\164\141\x6e\x74"], "\160\x75\x62\154\151\163\x68\137\x61\x74" => $aD4si, "\x63\x72\145\x61\164\145\144\x5f\142\x79" => auth("\141\160\x69")->user()->id, "\x75\163\145\x72\x5f\x69\144" => $EGLum, "\160\162\145\166\x69\x65\x77" => $dFRM3, "\164\171\x70\145" => static::POST_TYPE, "\151\163\137\160\x75\142\x6c\151\163\x68\145\x64" => $params["\x69\163\x5f\141\143\x74\x69\166\x61\x74\x65\x64"] === true ? 1 : 0, "\x69\163\137\x70\151\143\x6b\x5f\x75\160" => $params["\151\163\x5f\160\151\143\x6b\137\x75\160"] === true ? 1 : 0, "\x69\163\x5f\x74\x6f\x70\137\160\151\x63\x6b\x5f\165\x70" => $params["\151\163\x5f\164\157\x70\x5f\160\x69\x63\x6b\x5f\165\x70"] === true ? 1 : 0, "\x69\x73\x5f\x61\x63\x74\x69\x76\x61\x74\x65\144" => $params["\151\x73\137\x61\x63\164\x69\166\x61\164\x65\x64"] === true ? 1 : 0, "\143\162\145\141\x74\x65\144\137\x61\164" => date("\x59\x2d\x6d\x2d\x64\40\110\x3a\x69\x3a\x73"), "\165\x70\x64\x61\x74\x65\x64\x5f\x61\x74" => date("\131\55\155\55\x64\x20\110\72\151\72\x73")]); if (!(isset($params["\143\x61\164\145\x67\x6f\x72\x79"]) && $params["\143\141\164\145\x67\x6f\162\171"] != null)) { goto PXAkI; } goto mBV2N; EO0sd: $lwigm = str_replace("\165\x70\x6c\x6f\141\144\x73\x2f\x69\x6d\141\147\x65", "\57\x75\x70\154\x6f\141\144\163\x2f\x69\155\141\x67\145", $lwigm); $lwigm = str_replace("\x2f\x2f\165\x70\x6c\x6f\x61\144\x73\x2f\151\155\x61\147\145", "\x2f\165\160\154\157\x61\x64\163\x2f\x69\155\141\x67\x65", $lwigm); $lwigm = str_replace("\57\x2f\57\165\160\x6c\157\141\x64\163\57\x69\155\x61\x67\x65", "\x2f\165\x70\154\157\x61\x64\163\x2f\x69\155\141\147\145", $lwigm); goto fq3fI; EOng_: if (!(count($fsAkX) > 0)) { goto uoUo6; } CategoryDetail::insert($fsAkX); uoUo6: goto dCN3_; OAMU2: $params["\147\x75\x5f\143\157\156\x74\x65\x6e\164"] = null; goto kFgpM; eE226: goto jVOxe; fq3fI: $lwigm = str_replace("\x3c\x68\x32\x3e\x3c\57\150\x32\x3e", "\74\x70\x3e\46\156\x62\163\160\73\x3c\x2f\x70\x3e", $lwigm); $lwigm = str_replace("\74\150\62\76\x26\x6e\x62\163\x70\73\x3c\57\x68\x32\x3e", "\74\x70\x3e\x26\x6e\x62\x73\160\73\74\57\x70\76", $lwigm); $lwigm = str_replace("\74\150\x32\x3e\x26\x6e\x62\163\160\73\46\156\x62\163\160\x3b\74\x2f\150\x32\x3e", "\74\160\x3e\x26\156\142\163\x70\x3b\x3c\57\x70\x3e", $lwigm); goto s0Xzx; jVOxe: if (!($params["\x63\x6f\x6e\x74\x65\156\164"] != '' && $params["\143\157\156\164\x65\156\164"] != null && ($params["\147\x75\137\x63\157\156\x74\x65\x6e\164"] == '' || $params["\147\x75\137\143\157\x6e\x74\x65\156\164"] == null))) { goto pqd3v; } $params["\x67\x75\137\143\x6f\156\x74\x65\x6e\x74"] = $params["\143\x6f\156\x74\145\x6e\164"]; pqd3v: goto MQBZE; mBV2N: $fsAkX = []; foreach ($params["\143\141\x74\145\147\157\x72\171"] as $a_bEz) { if (!($a_bEz == '' || $a_bEz == null)) { goto YTTX3; } goto SMprx; YTTX3: $fsAkX[] = ["\x61\162\x74\151\143\x6c\x65\137\x69\x64" => $bem5l->id, "\x63\141\x74\x65\x67\157\162\x79\137\151\x64" => $a_bEz, "\143\162\145\141\x74\x65\144\x5f\x61\x74" => date("\x59\55\x6d\x2d\144\x20\x48\72\x69\x3a\x73"), "\165\160\144\x61\164\145\x64\x5f\x61\164" => date("\131\55\155\55\144\40\110\72\151\72\163")]; SMprx: } jXm1F: goto EOng_; mDBFt: $aXoHa = Helper::slug($params["\x74\x69\164\x6c\x65"]); ag1QZ: $dFRM3 = null; goto m_6hd; Gi0MC: M5nWU: $params = $request->all(); $aD4si = isset($params["\160\165\x62\154\x69\163\150\x5f\x61\164"]) && $params["\x70\165\x62\154\x69\163\150\137\x61\164"] != null && $params["\160\165\x62\154\151\x73\x68\137\141\164"] != '' ? Carbon::parse($params["\160\x75\x62\154\x69\x73\150\137\141\x74"])->format("\x59\x2d\x6d\x2d\x64\x20\110\72\x69\72\163") : date("\x59\x2d\x6d\55\144\x20\110\72\151\x3a\x73"); goto xFt6m; IwCDG: return new ArticleResource($bem5l); goto y4kvX; ht4yy: mqD1_: $this->updateSeoInfo($bem5l->id, $params["\164\x69\164\x6c\145"], $aXoHa, $je56I, $params["\x64\x65\163\143\162\151\160\164\151\157\156"]); Artisan::call("\143\x61\x63\x68\145\72\x63\x6c\145\141\162"); goto IwCDG; xFt6m: $lwigm = $params["\x63\157\x6e\x74\x65\x6e\x74"]; if ($params["\x65\x64\x69\x74\157\162"] == "\147\x75\x74\145\156\142\145\x72\147") { goto eE226; } $params["\x65\144\x69\x74\x6f\x72"] = "\164\x69\156\x79\x6d\143\145"; goto OAMU2; m_6hd: if (!($params["\151\163\137\x61\x63\164\151\166\x61\x74\145\144"] != true || $params["\x69\x73\x5f\x61\143\x74\151\166\x61\164\x65\x64"] != "\x74\162\x75\145" || $params["\151\163\x5f\x61\x63\x74\x69\x76\141\x74\145\x64"] != 1)) { goto jaEXZ; } $dFRM3 = md5(rand(0, 1000) . date("\131\55\x6d\x2d\x64\110\x3a\x69\x3a\x73")); jaEXZ: goto DSzWE; y4kvX: } public function update($YXMul = 0, Request $request) { goto Geyn0; vfl92: yCG5E: if (!(count($fsAkX) > 0)) { goto CCEqo; } CategoryDetail::insert($fsAkX); goto S2U87; q4262: $dFRM3 = md5(rand(0, 1000) . date("\x59\55\155\55\x64\110\x3a\x69\x3a\163")); ULj8n: w4nmj: goto HA8bq; yULEy: KeywordDetail::insert($nBXmV); kj3v_: QIrls: goto i1a72; myOxj: $lwigm = str_replace("\56\56\x2f\56\x2e\57\x2e\56\x2f\56\56\57\165\x70\154\157\141\x64\x73\x2f\151\x6d\x61\147\145", "\x2f\165\x70\154\157\x61\144\x73\57\x69\x6d\141\147\x65", $lwigm); $lwigm = str_replace("\56\x2e\x2f\56\56\x2f\56\56\x2f\x75\x70\154\x6f\x61\144\163\57\x69\x6d\141\x67\x65", "\57\165\160\x6c\157\x61\144\x73\x2f\x69\x6d\x61\x67\x65", $lwigm); $lwigm = str_replace("\56\56\x2f\x2e\x2e\57\x75\x70\154\157\141\x64\x73\x2f\151\155\x61\x67\x65", "\x2f\x75\x70\x6c\x6f\141\x64\163\x2f\151\x6d\x61\147\x65", $lwigm); goto CpiP2; czM5n: if (!empty($aXoHa)) { goto Q_lU_; } $aXoHa = Helper::slug($params["\164\x69\164\x6c\145"]); Q_lU_: goto OvfBm; nRt4G: $lwigm = str_replace("\150\162\145\146\75\42\x2e\x2e\x2f", "\x68\x72\145\x66\75\x22\57", $lwigm); $lwigm = str_replace("\x68\x72\x65\146\75\x22\x66\157\162\x74\165\156\145\55\x74\x65\154\x6c\145\162\57", "\150\162\x65\x66\x3d\42\57\146\x6f\162\164\x75\x6e\x65\x2d\164\145\154\154\145\162\x2f", $lwigm); $aXoHa = Helper::slug($params["\163\154\165\147"]); goto czM5n; OvfBm: $dFRM3 = $bem5l->preview; if (!($params["\151\163\137\x61\x63\164\151\x76\x61\x74\x65\x64"] != true || $params["\151\x73\x5f\x61\143\x74\151\166\141\x74\145\x64"] != "\x74\162\165\x65" || $params["\x69\163\x5f\x61\143\x74\x69\166\x61\x74\x65\x64"] != 1)) { goto w4nmj; } if (!($dFRM3 == null || $dFRM3 == '')) { goto ULj8n; } goto q4262; HA8bq: $EGLum = $params["\165\163\x65\162\x5f\x69\144"]; if (!($EGLum == null || $EGLum == 0 || $EGLum == '')) { goto EGdK3; } $EGLum = auth("\x61\160\x69")->user()->id; goto oTuMZ; MNqnx: $lwigm = str_replace("\74\x68\x32\76\46\156\x62\163\x70\73\x26\156\142\x73\x70\73\74\57\150\62\x3e", "\x3c\x70\76\x26\x6e\142\x73\x70\x3b\74\x2f\x70\76", $lwigm); $lwigm = str_replace("\x3c\x68\62\76\x26\x6e\x62\163\x70\73\x26\x6e\x62\163\x70\73\x26\x6e\142\x73\160\x3b\x3c\x2f\150\62\x3e", "\x3c\160\x3e\46\156\142\x73\x70\73\x3c\57\x70\76", $lwigm); $lwigm = str_replace("\x3c\150\62\76\x26\x6e\x62\163\x70\73\46\x6e\x62\163\x70\73\x26\x6e\142\163\x70\x3b\x26\156\x62\x73\x70\x3b\x3c\57\x68\x32\76", "\74\160\76\x26\156\142\x73\x70\x3b\x3c\x2f\x70\x3e", $lwigm); goto nRt4G; PYY1L: OYyJL: $lwigm = $this->gutenbergRenderContent($params["\x67\165\137\x63\x6f\156\164\145\156\x74"]); Bk7sw: goto myOxj; i1a72: $this->updateSeoInfo($bem5l->id, $params["\164\151\164\154\145"], $aXoHa, $je56I, $params["\x64\x65\x73\x63\x72\151\160\x74\151\157\156"]); Artisan::call("\x63\x61\x63\x68\x65\x3a\143\154\x65\141\x72"); return response()->json(null, 204); goto jHlme; wadBq: $params["\x65\x64\x69\164\157\x72"] = "\x74\151\x6e\171\155\x63\145"; $params["\x67\165\x5f\143\157\x6e\x74\x65\x6e\x74"] = null; goto Bk7sw; goto jHlCL; TunFL: $bem5l->update(["\x75\x73\x65\162\137\x69\144" => auth("\141\x70\151")->user()->id]); cVv86: CategoryDetail::where("\141\x72\x74\151\x63\154\145\x5f\x69\x64", $bem5l->id)->delete(); goto Fx_EH; oTuMZ: EGdK3: $bem5l->update(["\164\151\164\154\145" => $params["\x74\151\164\154\x65"], "\163\x6c\165\x67" => $aXoHa, "\144\x65\163\143\x72\x69\x70\x74\x69\157\x6e" => $params["\144\x65\163\x63\162\151\x70\x74\151\157\x6e"], "\145\x64\151\164\x6f\162" => $params["\x65\144\x69\164\x6f\162"], "\x67\165\x5f\143\x6f\156\x74\145\x6e\164" => $params["\x67\x75\137\x63\157\156\x74\x65\156\164"], "\143\x6f\x6e\x74\145\x6e\x74" => $lwigm, "\x74\150\165\x6d\x62\156\141\151\154" => $params["\164\x68\165\155\x62\x6e\141\151\154"], "\163\x68\x6f\160\137\151\144" => $params["\x73\150\157\160\137\151\144"], "\x66\x6f\162\164\165\156\145\137\164\x65\154\x6c\x65\x72\137\151\x64" => $params["\146\157\x72\164\165\156\x65\137\164\x65\154\154\145\x72\137\151\x64"], "\x69\x6d\160\x6f\x72\164\x61\x6e\x74" => $params["\x69\x6d\x70\157\x72\164\141\x6e\x74"], "\160\x75\142\154\151\x73\150\137\141\164" => $aD4si, "\160\x72\x65\x76\151\x65\167" => $dFRM3, "\164\171\x70\x65" => static::POST_TYPE, "\x75\163\x65\162\137\x69\144" => $EGLum, "\151\x73\137\160\165\x62\154\x69\163\150\145\144" => $params["\151\163\x5f\x61\143\x74\151\166\x61\164\x65\144"] === true ? 1 : 0, "\x69\163\x5f\x70\151\143\153\x5f\x75\x70" => $params["\x69\163\x5f\160\151\143\153\x5f\165\x70"] === true ? 1 : 0, "\x69\x73\137\x74\x6f\x70\x5f\160\151\143\153\137\x75\160" => $params["\151\163\137\164\x6f\x70\x5f\x70\x69\x63\x6b\x5f\165\x70"] === true ? 1 : 0, "\151\163\x5f\141\x63\x74\x69\x76\x61\164\145\x64" => $params["\151\163\137\141\x63\x74\151\166\141\x74\145\144"] === true ? 1 : 0, "\165\160\x64\141\x74\x65\x64\137\141\x74" => date("\131\x2d\x6d\55\144\40\x48\72\151\x3a\163")]); if (!($bem5l->user_id == null || $bem5l->user_id == '')) { goto cVv86; } goto TunFL; clof7: $aD4si = isset($params["\x70\x75\x62\x6c\151\x73\x68\x5f\141\x74"]) && $params["\x70\165\142\154\151\x73\150\x5f\141\x74"] != null && $params["\x70\165\142\x6c\151\163\x68\137\141\164"] != '' ? Carbon::parse($params["\x70\165\x62\x6c\151\163\150\x5f\x61\x74"])->format("\x59\55\x6d\55\144\40\110\72\151\x3a\163") : date("\x59\55\x6d\x2d\144\40\x48\x3a\151\72\163"); $lwigm = $params["\143\x6f\x6e\164\145\156\x74"]; if ($params["\145\x64\151\164\157\162"] == "\147\x75\x74\x65\156\142\x65\x72\x67") { goto kClKK; } goto wadBq; BTp12: $lwigm = str_replace("\x2f\57\x2f\x75\x70\154\x6f\x61\144\x73\x2f\151\155\x61\147\x65", "\57\165\x70\x6c\x6f\141\144\163\x2f\x69\155\x61\x67\x65", $lwigm); $lwigm = str_replace("\74\x68\62\76\74\57\x68\x32\x3e", "\74\x70\x3e\x26\x6e\x62\x73\x70\x3b\x3c\57\x70\x3e", $lwigm); $lwigm = str_replace("\74\x68\x32\x3e\x26\x6e\x62\163\x70\73\x3c\57\150\62\76", "\x3c\160\x3e\x26\156\x62\x73\x70\73\x3c\x2f\160\x3e", $lwigm); goto MNqnx; Fx_EH: if (!(isset($params["\x63\141\x74\x65\x67\x6f\x72\171"]) && $params["\143\x61\x74\145\x67\x6f\162\171"] != null)) { goto Tc_2i; } $fsAkX = []; foreach ($params["\x63\x61\164\x65\x67\x6f\162\x79"] as $a_bEz) { goto BTTEY; yQFFT: dYQKL: TRdPj: goto QIGJm; ZBPJM: $CgM2_ = Category::where("\x69\x73\x5f\141\x63\164\151\166\x61\x74\145\144", true)->where("\x69\x73\137\x64\x65\x6c\x65\164\x65\x64", false)->where("\x69\144", $a_bEz)->count(); if (!($CgM2_ > 0)) { goto dYQKL; } $fsAkX[] = ["\x61\x72\164\x69\143\154\145\x5f\x69\x64" => $bem5l->id, "\143\141\164\145\x67\x6f\162\171\137\x69\x64" => $a_bEz, "\143\162\x65\x61\x74\145\144\x5f\x61\164" => date("\x59\55\155\55\x64\x20\x48\72\x69\72\x73"), "\165\x70\x64\x61\164\x65\x64\x5f\x61\164" => date("\x59\55\155\55\x64\x20\110\x3a\x69\72\163")]; goto yQFFT; BTTEY: if (!($a_bEz == '' || $a_bEz == null)) { goto KEFLE; } goto TRdPj; KEFLE: goto ZBPJM; QIGJm: } goto vfl92; Geyn0: $pDyFf = Validator::make($request->all(), ["\x74\x69\x74\x6c\145" => ["\x72\x65\161\165\x69\162\145\144"], "\x69\x73\x5f\x61\x63\x74\151\166\x61\x74\145\144" => ["\162\x65\x71\165\151\x72\x65\144"]]); if (!$pDyFf->fails()) { goto wxQM2; } return response()->json(["\145\162\x72\157\162\x73" => $pDyFf->errors()], 403); goto seOm5; S2U87: CCEqo: Tc_2i: $je56I = ''; goto oeKoc; OaKVb: foreach ($params["\153\145\171\x77\x6f\x72\144"] as $a_bEz) { goto XiTZQ; O3Wj1: $je56I .= $SQrik . "\x2c\40"; GK2Tc: goto zOs0E; XiTZQ: $SQrik = trim($a_bEz["\x74\145\x78\164"]); $aUi3K = Keyword::where("\151\163\x5f\144\145\x6c\145\x74\145\144", 0)->where(function ($xWW0e) use($SQrik) { $xWW0e->where("\156\x61\x6d\145", $SQrik)->orWhere("\x6e\141\155\145", strtolower($SQrik))->orWhere("\x6e\x61\x6d\145", strtoupper($SQrik))->orWhere("\x6e\x61\x6d\145", ucfirst($SQrik)); })->first(); if (!(!isset($aUi3K) || $aUi3K->id == null)) { goto upziB; } goto A7xW0; A7xW0: $aUi3K = Keyword::create(["\x6e\x61\155\145" => $SQrik, "\x69\163\x5f\141\x63\x74\x69\x76\141\x74\145\x64" => true, "\151\x73\x5f\144\145\x6c\x65\x74\145\x64" => false, "\143\162\145\x61\164\x65\x64\x5f\x61\164" => date("\x59\55\155\x2d\x64\40\x48\x3a\x69\x3a\163"), "\165\x70\144\141\164\x65\x64\x5f\141\164" => date("\x59\55\x6d\55\x64\x20\110\72\151\72\x73")]); upziB: $nBXmV[] = ["\153\x65\x79\x77\x6f\162\144\x5f\x69\x64" => $aUi3K->id, "\162\x65\x66\137\151\144" => $bem5l->id, "\x74\171\x70\x65" => "\141\x72\x74\151\143\x6c\x65", "\143\162\x65\x61\164\x65\x64\137\x61\x74" => date("\x59\x2d\x6d\x2d\x64\40\x48\x3a\x69\x3a\163"), "\165\160\x64\141\164\x65\x64\x5f\141\x74" => date("\131\55\x6d\55\x64\40\x48\72\151\x3a\163")]; goto O3Wj1; zOs0E: } nEzj1: if (!(count($nBXmV) > 0)) { goto kj3v_; } goto yULEy; oeKoc: if (!(isset($params["\x6b\145\171\167\157\x72\144"]) && is_array($params["\x6b\145\171\x77\x6f\x72\144"]))) { goto QIrls; } KeywordDetail::where("\x72\145\146\x5f\151\144", $bem5l->id)->where("\164\171\x70\145", "\141\x72\x74\x69\143\154\145")->delete(); $nBXmV = []; goto OaKVb; CpiP2: $lwigm = str_replace("\x2e\x2e\x2f\165\160\154\157\141\x64\x73\x2f\x69\x6d\141\x67\x65", "\57\x75\x70\x6c\157\141\x64\163\57\151\155\x61\x67\145", $lwigm); $lwigm = str_replace("\x75\x70\154\x6f\x61\144\163\57\x69\x6d\x61\x67\145", "\57\165\160\x6c\x6f\x61\144\x73\x2f\151\x6d\x61\x67\x65", $lwigm); $lwigm = str_replace("\57\x2f\x75\160\154\157\x61\144\x73\57\x69\x6d\141\147\145", "\57\x75\160\154\157\x61\144\x73\x2f\151\155\141\147\145", $lwigm); goto BTp12; seOm5: wxQM2: $bem5l = Article::notDeleted()->where("\151\144", $YXMul)->first(); if (isset($bem5l)) { goto DlGkG; } goto pQ546; jHlCL: kClKK: if (!($params["\x63\157\x6e\x74\145\x6e\164"] != '' && $params["\x63\x6f\x6e\x74\145\x6e\164"] != null && ($params["\147\x75\x5f\x63\x6f\x6e\x74\145\x6e\x74"] == '' || $params["\147\x75\x5f\x63\157\x6e\x74\x65\x6e\164"] == null))) { goto OYyJL; } $params["\x67\x75\137\143\x6f\156\x74\145\x6e\x74"] = $params["\143\157\156\164\x65\x6e\164"]; goto PYY1L; pQ546: return response()->json(["\145\x72\x72\x6f\x72\163" => "\x41\x72\164\x69\x63\154\145\x20\151\x73\x20\156\157\x74\40\166\141\154\x69\x64"], 403); DlGkG: $params = $request->all(); goto clof7; jHlme: } public function destroy($YXMul = 0) { $bem5l = Article::notDeleted()->where("\151\x64", $YXMul)->where("\164\171\x70\145", static::POST_TYPE)->first(); if (isset($bem5l)) { goto KFnx_; } response()->json(["\145\162\162\157\x72" => "\x45\x68\x68\150\x21\x20\103\141\156\40\x6e\157\164\40\144\x65\154\x65\164\x65\x20\x74\x68\x69\163\40\x61\x72\164\151\x63\x6c\145"], 403); KFnx_: try { $bem5l->update(["\151\163\x5f\x64\145\154\x65\x74\x65\x64" => true]); Seo::where("\x75\x72\x69", "\154\x69\x6b\x65", "\57\x63\157\x6c\x75\155\156\x2f\x64\145\x74\x61\151\154\57" . $bem5l->id . "\x2f\x25")->delete(); event(new SaveDataEvent()); Artisan::call("\x63\141\143\150\x65\x3a\143\154\145\141\162"); } catch (\Exception $vuqIj) { response()->json(["\145\x72\x72\157\x72" => $vuqIj->getMessage()], 403); } return response()->json(null, 204); } public function destroyMultiple(Request $request) { goto tZVA6; CKQkg: if (!($RH0jk->count() <= 0)) { goto U2AAO; } response()->json(["\x65\162\162\157\162" => "\x41\162\164\x69\143\154\145\x20\151\x73\40\x6e\157\164\40\x76\141\154\x69\x64\56"], 403); U2AAO: goto gijnz; tZVA6: $pDyFf = Validator::make($request->all(), ["\151\144\163" => "\x72\145\161\165\151\x72\145\144"]); if (!$pDyFf->fails()) { goto E9W1H; } return response()->json(["\145\162\162\x6f\162\163" => $pDyFf->errors()], 403); goto Z5iam; gijnz: try { Article::notDeleted()->whereIn("\x69\x64", $ZQrjL)->where("\164\x79\160\x65", static::POST_TYPE)->update(["\x69\x73\x5f\144\145\154\x65\x74\x65\144" => true]); foreach ($ZQrjL as $etDQk) { Seo::where("\165\x72\x69", "\x6c\151\x6b\x65", "\x2f\143\x6f\x6c\165\x6d\x6e\57\x64\x65\x74\x61\x69\154\57" . $etDQk . "\57\45")->delete(); FhiDr: } JyNqH: event(new SaveDataEvent()); Artisan::call("\x63\x61\x63\x68\x65\72\143\x6c\x65\141\x72"); } catch (\Exception $vuqIj) { response()->json(["\145\x72\162\157\162" => $vuqIj->getMessage()], 403); } return response()->json(null, 204); goto RaHR_; Z5iam: E9W1H: $ZQrjL = $request->get("\151\144\x73", []); $RH0jk = Article::notDeleted()->whereIn("\x69\x64", $ZQrjL)->where("\164\171\x70\x65", static::POST_TYPE)->get(); goto CKQkg; RaHR_: } public function activateMultiple(Request $request) { goto JwPwz; M7jf9: if (!($RH0jk->count() <= 0)) { goto Gw54Y; } response()->json(["\145\162\162\x6f\x72" => "\101\162\164\151\x63\154\145\40\x69\x73\x20\156\157\x74\40\166\141\x6c\151\144\x2e"], 403); Gw54Y: goto t9kPX; JwPwz: $pDyFf = Validator::make($request->all(), ["\x69\144\163" => "\x72\145\161\165\x69\x72\145\x64"]); if (!$pDyFf->fails()) { goto wlXaW; } return response()->json(["\145\x72\162\157\162\163" => $pDyFf->errors()], 403); goto VWZZB; t9kPX: try { Article::notDeleted()->whereIn("\x69\x64", $ZQrjL)->where("\164\x79\x70\x65", static::POST_TYPE)->update(["\151\163\137\141\x63\x74\151\166\141\x74\145\x64" => true]); event(new SaveDataEvent()); } catch (\Exception $vuqIj) { response()->json(["\x65\162\x72\x6f\x72" => $vuqIj->getMessage()], 403); } return response()->json(null, 204); goto AaEgr; VWZZB: wlXaW: $ZQrjL = $request->get("\x69\144\x73", []); $RH0jk = Article::notDeleted()->whereIn("\151\144", $ZQrjL)->where("\x74\x79\x70\x65", static::POST_TYPE)->get(); goto M7jf9; AaEgr: } public function deactivateMultiple(Request $request) { goto ByAwx; OfSEx: B9Jkq: $ZQrjL = $request->get("\x69\144\x73", []); $RH0jk = Article::notDeleted()->whereIn("\151\144", $ZQrjL)->where("\x74\x79\160\x65", static::POST_TYPE)->get(); goto ZHPRa; uSiDC: try { Article::notDeleted()->whereIn("\151\x64", $ZQrjL)->where("\164\171\160\x65", static::POST_TYPE)->update(["\151\163\x5f\x61\x63\x74\x69\x76\141\164\145\144" => false]); event(new SaveDataEvent()); } catch (\Exception $vuqIj) { response()->json(["\x65\x72\x72\x6f\x72" => $vuqIj->getMessage()], 403); } return response()->json(null, 204); goto MTFbM; ZHPRa: if (!($RH0jk->count() <= 0)) { goto D5K0c; } response()->json(["\145\x72\162\x6f\162" => "\x41\162\164\151\143\x6c\145\x20\151\x73\x20\156\x6f\x74\40\x76\141\154\151\x64\x2e"], 403); D5K0c: goto uSiDC; ByAwx: $pDyFf = Validator::make($request->all(), ["\x69\x64\x73" => "\162\x65\x71\x75\x69\x72\x65\144"]); if (!$pDyFf->fails()) { goto B9Jkq; } return response()->json(["\x65\x72\162\x6f\x72\x73" => $pDyFf->errors()], 403); goto OfSEx; MTFbM: } public function uploadImage(Request $request) { goto Hc1tu; Hc1tu: if (!$request->hasFile("\x69\155\x61\x67\145")) { goto OFTDj; } $NGFes = $request->file("\x69\155\x61\x67\x65"); $wbJqv = $NGFes->getClientOriginalName(); goto gI4P5; gI4P5: $tDjmh = md5($wbJqv . rand(1111, 9999) . date("\x59\x6d\x64\110\151\x73")) . "\56" . $NGFes->getClientOriginalExtension(); $NGFes->move($this->_pathTemp, $tDjmh); chmod($this->_pathTemp . $tDjmh, 0777); goto pp28d; pp28d: return response()->json(["\163\x74\x61\x74\x75\163" => "\163\165\x63\143\145\163\163", "\155\x65\x73\x73\x61\147\x65" => "\x55\x70\154\157\141\144\40\x53\165\143\x63\145\x73\163\56", "\146\x69\x6c\x65\x5f\x6e\x61\x6d\x65" => $tDjmh, "\x62\x61\163\x65\116\x61\x6d\x65" => $wbJqv], 200); OFTDj: return response()->json(["\163\x74\x61\x74\x75\163" => "\x65\x72\162\157\162", "\155\x65\163\163\x61\x67\145" => "\125\160\x6c\x6f\141\x64\40\x46\x61\x69\154\56", "\x66\x69\x6c\145\137\156\x61\x6d\145" => null], 403); goto YVX1_; YVX1_: } public function uploadImages(Request $request) { goto wxpMl; eqs36: return response()->json(["\150\x61\x73\x53\165\143\143\145\x73\163" => true, "\155\145\163\x73\x61\x67\x65" => "\x55\x70\154\x6f\141\x64\x20\x53\x75\x63\143\x65\x73\x73\x2e", "\146\x69\154\145\x5f\x6e\x61\x6d\x65" => $tDjmh, "\x62\141\x73\x65\116\x61\155\145" => $wbJqv, "\146\151\154\x65\163" => ["\146\151\x6c\x65" => $tDjmh]], 200); LS93_: return response()->json(["\150\x61\x73\x53\x75\143\143\x65\163\x73" => false, "\155\x65\163\163\141\x67\145" => "\x55\160\x6c\x6f\x61\x64\40\x46\x61\151\x6c\x2e", "\146\x69\x6c\x65\137\x6e\x61\x6d\145" => null, "\146\151\x6c\145\163" => null], 403); goto g8Wus; ZaPmU: $tDjmh = md5($wbJqv . rand(1111, 9999) . date("\131\x6d\144\110\x69\163")) . "\56" . $NGFes->getClientOriginalExtension(); $NGFes->move($this->_pathFile, $tDjmh); chmod($this->_pathFile . $tDjmh, 0777); goto eqs36; wxpMl: if (!$request->hasFile("\x66\151\x6c\x65")) { goto LS93_; } $NGFes = $request->file("\146\151\154\x65"); $wbJqv = $NGFes->getClientOriginalName(); goto ZaPmU; g8Wus: } private function updateSeoInfo($RYF27, $shcyA, $aXoHa, $nBXmV, $I2M9k) { Seo::where("\165\x72\x69", "\x6c\151\153\x65", "\x2f\143\157\154\x75\155\156\x2f\x64\145\x74\141\151\x6c\x2f" . $RYF27 . "\57\45")->delete(); Seo::create(["\x75\x72\x69" => "\57\x63\x6f\154\x75\155\156\57\x64\145\x74\141\x69\x6c\57" . $RYF27 . "\57" . $aXoHa, "\x74\151\164\x6c\x65" => $shcyA . "\x20\174\40\xe3\x82\263\343\x83\xa9\343\x83\xa0\x20\x7c\x20" . config("\163\x65\164\x74\151\156\147\163\x2e\163\x69\x74\145\137\x6e\141\x6d\x65"), "\x6b\145\x79\167\x6f\x72\144\163" => $nBXmV, "\144\x65\163\x63\162\x69\x70\164\x69\x6f\156" => $I2M9k, "\164\171\x70\145" => "\x63\157\x6c\165\x6d\156", "\x70\157\163\164\x5f\x69\144" => $RYF27, "\143\x72\x65\141\x74\145\144\x5f\141\164" => date("\x59\x2d\155\55\144\40\x48\x3a\x69\72\x73"), "\x75\160\144\141\x74\145\x64\137\x61\x74" => date("\x59\x2d\155\55\144\x20\110\72\151\x3a\163")]); } private function gutenbergRenderContent($lwigm) { $mnZX_ = $lwigm; try { $qv8cG = new Gutenberg(); $qv8cG->lb_content = $lwigm; $qv8cG->save(); $mnZX_ = $qv8cG->lb_content; $qv8cG->delete(); } catch (\Exception $X0Xex) { logger($X0Xex->getMessage()); } return $mnZX_; } }