<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:58
 namespace App\Http\Controllers\Admin; use App\CategoryManufacturer; use App\Helpers\Helper; use App\Http\Controllers\Controller; use App\Http\Resources\Admin\ProductDetailResource; use App\Http\Resources\Admin\ProductOptionResource; use App\Http\Resources\Admin\ProductResourceDetail; use App\Http\Resources\Admin\ProductRuleResource; use App\Jobs\ProcessCopyProductDetail; use App\Jobs\ProcessProductDetail; use App\Jobs\ProcessProductRule; use App\PricingRule; use App\PricingRuleDetail; use App\PricingRuleDetailItem; use App\PricingRuleOption; use App\ProductArea; use App\ProductConstruction; use App\ProductImage; use App\ProductPurchaseMethod; use App\ProductRelate; use App\ProductReview; use Illuminate\Http\Request; use Illuminate\Support\Arr; use App\Http\Resources\Admin\ProductResource; use App\Http\Resources\Admin\ProductListResource; use App\Http\Resources\Admin\ReviewResource; use App\Product; use App\Keyword; use App\ProductDetail; use App\ProductDetailOptionDetail; use App\ProductKeyword; use App\ProductOption; use App\ProductOptionDetail; use Carbon\Carbon; use Validator; use function PHPUnit\Framework\isFalse; class ProductController extends Controller { const ITEM_PER_PAGE = 100; public function index(Request $request) { goto C81_o; qU0ML: $kJXRG->orderBy("\151\x64", "\x44\105\x53\103"); return ProductListResource::collection($kJXRG->paginate($gnWdU)); goto dJ6t2; k2w9z: $dSto6 = Arr::get($XaPAc, "\x69\x67\156\157\162\x65\111\144", ''); $fjTeI = Arr::get($XaPAc, "\x73\x74\x61\x74\165\x73", ''); $kJXRG = Product::notDeleted()->where("\164\x79\x70\x65", $e3K2Y); goto vZM9C; vZM9C: if (empty($m0rR8)) { goto Px7HK; } $kJXRG->where(function ($ngfYx) use($m0rR8) { $ngfYx->where("\x6e\141\x6d\x65", "\114\111\113\105", "\45" . $m0rR8 . "\45")->orWhere("\151\144", "\x3d", $m0rR8)->orWhere("\163\x6b\165", "\114\x49\113\x45", "\x25" . $m0rR8 . "\x25")->orWhere("\x73\154\x75\147", "\x4c\111\113\105", "\45" . $m0rR8 . "\x25")->orWhere("\160\162\151\x63\145\137\x66\x72\157\155", "\114\x49\113\x45", "\x25" . $m0rR8 . "\45")->orWhere("\160\x72\x69\x63\x65\137\164\x6f", "\114\x49\x4b\x45", "\x25" . $m0rR8 . "\x25")->orWhere("\144\x69\163\143\157\165\x6e\x74", "\114\111\113\105", "\45" . $m0rR8 . "\45"); }); Px7HK: goto jGjwf; cwn80: if (!($dSto6 != '')) { goto Hz1RZ; } $kJXRG->where("\151\x64", "\x21\x3d", $dSto6); Hz1RZ: goto vJ5wF; SboM0: if (!($tDNLi != '')) { goto LARKj; } $kJXRG->where("\155\x61\156\x75\146\141\x63\x74\165\x72\x65\x72\x5f\151\x64", $tDNLi); LARKj: goto cwn80; C81_o: $XaPAc = $request->all(); $gnWdU = Arr::get($XaPAc, "\154\151\155\151\164", static::ITEM_PER_PAGE); $m0rR8 = Arr::get($XaPAc, "\x6b\x65\171\x77\157\x72\144", ''); goto IFABO; IFABO: $e3K2Y = Arr::get($XaPAc, "\164\x79\x70\x65", 0); $iU1qG = Arr::get($XaPAc, "\143\141\164\145\147\157\x72\x79\137\151\144", ''); $tDNLi = Arr::get($XaPAc, "\x6d\141\156\165\146\x61\143\164\165\162\145\x72\x5f\151\x64", ''); goto k2w9z; jGjwf: if (!($iU1qG != '')) { goto x3SDd; } $kJXRG->where("\143\141\164\145\x67\157\162\x79\x5f\x69\144", $iU1qG); x3SDd: goto SboM0; vJ5wF: if (!($fjTeI != '')) { goto aVmX0; } $kJXRG->where("\151\163\137\x61\x63\x74\x69\166\141\164\145\144", $fjTeI); aVmX0: goto qU0ML; dJ6t2: } public function all(Request $request) { $XaPAc = $request->all(); $gnWdU = Arr::get($XaPAc, "\x6c\x69\x6d\151\x74", static::ITEM_PER_PAGE); $kJXRG = Product::select("\151\x64", "\156\141\x6d\145", "\163\154\x75\x67")->notDeleted()->orderBy("\x70\157\x73\151\164\x69\x6f\156")->orderBy("\151\144"); return ProductResource::collection($kJXRG->paginate($gnWdU)); } public function available() { $kJXRG = Product::select("\151\x64", "\x6e\141\155\145")->notDeleted()->activated()->orderBy("\x70\157\x73\x69\x74\x69\x6f\x6e")->orderBy("\x69\144"); return ProductResource::collection($kJXRG->get()); } public function show($MlLyQ = 0) { $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\x69\x73\137\x64\x65\x6c\x65\164\x65\144", 0)->where("\151\163\x5f\164\145\155\160", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\x69\x73\137\144\x65\x6c\145\x74\145\144", 1)->where("\151\163\137\x74\x65\x6d\160", 1); }); })->where("\x74\x79\x70\x65", 0)->where("\x69\144", $MlLyQ)->first(); if (isset($stpwr)) { goto GLFeK; } return response()->json(["\x65\162\x72\157\x72\x73" => "\120\162\157\144\165\143\164\x20\x69\x73\x20\156\157\164\40\x76\x61\154\151\144"], 403); GLFeK: return new ProductResourceDetail($stpwr); } public function showWindow($MlLyQ = 0) { $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\151\x73\137\144\x65\154\145\164\145\x64", 0)->where("\x69\163\x5f\164\145\x6d\160", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\151\x73\x5f\144\145\154\145\164\145\144", 1)->where("\x69\x73\x5f\164\x65\x6d\160", 1); }); })->where("\x74\171\160\145", 1)->where("\151\144", $MlLyQ)->first(); if (isset($stpwr)) { goto TIL_W; } return response()->json(["\145\x72\x72\x6f\x72\x73" => "\120\162\157\144\165\x63\x74\x20\x69\x73\40\156\x6f\x74\40\166\141\154\x69\144"], 403); TIL_W: return new ProductResourceDetail($stpwr); } public function showDetail(Request $request, $MlLyQ = 0) { $params = $request->all(); $gnWdU = Arr::get($params, "\x6c\151\155\x69\x74", static::ITEM_PER_PAGE); $kJXRG = ProductDetail::where("\160\x72\x6f\144\165\143\164\x5f\x69\x64", $MlLyQ); return ProductDetailResource::collection($kJXRG->paginate($gnWdU)); } public function showOption(Request $request, $MlLyQ = 0) { goto I34xl; I34xl: $params = $request->all(); $gnWdU = Arr::get($params, "\154\x69\x6d\x69\x74", static::ITEM_PER_PAGE); $BRuH2 = Arr::get($params, "\x6f\162\x64\x65\162", "\143\x72\145\141\x74\x65\x64\137\x61\164"); goto C0CbV; vtQyj: $kJXRG = ProductOption::where("\160\x72\x6f\144\x75\x63\x74\x5f\x69\x64", $MlLyQ)->orderBy($BRuH2); return ProductOptionResource::collection($kJXRG->paginate($gnWdU)); goto AgrX3; C0CbV: if (!($BRuH2 != "\x70\157\x73\151\x74\x69\157\x6e")) { goto d3uJQ; } $BRuH2 = "\143\162\x65\x61\164\x65\144\x5f\141\x74"; d3uJQ: goto vtQyj; AgrX3: } public function showRule(Request $request, $MlLyQ = 0) { $params = $request->all(); $gnWdU = Arr::get($params, "\x6c\x69\155\151\x74", static::ITEM_PER_PAGE); $kJXRG = PricingRule::where("\x70\162\157\x64\165\143\164\x5f\x69\144", $MlLyQ); return ProductRuleResource::collection($kJXRG->paginate($gnWdU)); } public function store(Request $request) { goto pXjbt; K8j10: if (!(count($Axh4z) > 0)) { goto OrACR; } ProductArea::insert($Axh4z); OrACR: goto mvbGx; dtCMU: foreach ($params["\x73\165\160\x70\x6f\162\x74\x65\x64\137\x61\x72\x65\141\163"] as $tgRk_) { $Axh4z[] = ["\164\x79\160\145" => 1, "\160\162\157\144\x75\143\164\137\151\x64" => $stpwr->id, "\143\x69\x74\x79" => $tgRk_, "\143\162\x65\x61\x74\145\x64\x5f\x61\164" => date("\x59\55\x6d\55\144\40\110\72\x69\72\x73"), "\x75\x70\x64\x61\164\145\144\x5f\141\x74" => date("\131\x2d\x6d\55\144\40\110\x3a\151\x3a\163")]; hXNZJ: } DryPl: if (!(count($Axh4z) > 0)) { goto wjo0G; } goto SJKVM; ymqKm: x2Qy8: ZpTps: if (!isset($params["\x63\157\156\x73\x74\x72\x75\143\164\151\157\156\137\x61\162\145\x61\x73"])) { goto oYDiP; } goto fow6k; pXjbt: $FrkK9 = Validator::make($request->all(), ["\x6e\141\x6d\x65" => ["\162\145\161\x75\x69\162\145\x64"], "\163\x6b\x75" => ["\162\145\x71\x75\151\x72\x65\x64"], "\x63\141\164\145\147\x6f\x72\171\x5f\x69\144" => ["\162\x65\x71\165\x69\x72\x65\144"], "\x69\x73\x5f\x61\143\x74\151\166\x61\164\x65\144" => ["\162\145\161\x75\x69\162\x65\x64"]]); if (!$FrkK9->fails()) { goto e5yvk; } return response()->json(["\x65\162\x72\x6f\162\163" => $FrkK9->errors()], 403); goto H2GDp; CXcf1: foreach ($params["\x6b\145\171\167\x6f\162\x64"] as $tgRk_) { goto AjX80; X8XBj: $QoeK0 = Keyword::create(["\156\x61\x6d\x65" => $Ci3zS, "\151\x73\137\141\143\x74\151\166\141\164\x65\x64" => true, "\x69\x73\137\x64\145\x6c\145\164\145\144" => false, "\x63\162\145\x61\x74\x65\x64\x5f\x61\164" => date("\131\x2d\155\x2d\x64\40\110\x3a\151\x3a\163"), "\165\x70\144\141\164\145\x64\137\141\164" => date("\x59\55\x6d\x2d\x64\x20\x48\72\x69\x3a\163")]); TSXIw: $rDUWP[] = ["\153\x65\x79\x77\x6f\x72\x64\137\x69\144" => $QoeK0->id, "\x70\x72\157\144\x75\143\x74\x5f\x69\x64" => $stpwr->id, "\143\x72\x65\x61\x74\x65\x64\137\x61\x74" => date("\131\x2d\x6d\x2d\x64\x20\x48\x3a\x69\x3a\163"), "\x75\160\144\x61\164\x65\144\137\141\164" => date("\x59\x2d\155\55\x64\x20\x48\72\x69\x3a\x73")]; goto eSnq0; AjX80: $Ci3zS = trim($tgRk_["\164\145\170\164"]); $QoeK0 = Keyword::where("\x69\163\x5f\x64\x65\x6c\145\x74\145\144", 0)->where(function ($ngfYx) use($Ci3zS) { $ngfYx->where("\x6e\x61\x6d\145", $Ci3zS)->orWhere("\156\x61\x6d\x65", strtolower($Ci3zS))->orWhere("\156\x61\x6d\x65", strtoupper($Ci3zS))->orWhere("\156\141\155\145", ucfirst($Ci3zS)); })->first(); if ($QoeK0) { goto TSXIw; } goto X8XBj; eSnq0: IMprU: goto FhHTM; FhHTM: } MzA89: if (!(count($rDUWP) > 0)) { goto ZPPN1; } goto NUYwH; oS0zx: yTfI3: if (!(count($L1jgP) > 0)) { goto x2Qy8; } ProductRelate::insert($L1jgP); goto ymqKm; tHaEe: if (!isset($params["\x72\x65\x6c\141\164\x65\144"])) { goto ZpTps; } $L1jgP = []; foreach ($params["\x72\x65\154\141\164\x65\144"] as $tgRk_) { $L1jgP[] = ["\x70\162\157\x64\x75\x63\x74\x5f\151\144" => $stpwr->id, "\x72\x65\154\141\x74\145\144\137\151\x64" => $tgRk_["\x69\144"], "\143\x72\145\141\x74\145\x64\137\x61\164" => date("\131\x2d\155\55\x64\40\x48\x3a\151\x3a\x73"), "\x75\x70\x64\x61\164\x65\x64\x5f\141\x74" => date("\131\x2d\155\55\x64\40\x48\x3a\x69\x3a\163")]; U1fuV: } goto oS0zx; A926Z: if ($IaBd9) { goto QQrFO; } CategoryManufacturer::create(["\143\x61\164\x65\x67\x6f\162\171\137\x69\144" => $iU1qG, "\x6d\x61\156\165\x66\x61\x63\x74\x75\162\x65\x72\137\x69\x64" => $params["\155\141\156\165\146\x61\143\x74\x75\162\145\162\x5f\151\144"], "\143\x72\145\x61\164\145\144\x5f\141\x74" => date("\131\55\x6d\x2d\144\x20\110\x3a\x69\x3a\x73"), "\165\160\x64\x61\164\x65\x64\137\x61\x74" => date("\x59\x2d\x6d\55\144\40\110\x3a\x69\x3a\x73")]); QQrFO: goto YGkWv; NUYwH: ProductKeyword::insert($rDUWP); ZPPN1: $IaBd9 = CategoryManufacturer::where("\x63\x61\x74\145\x67\x6f\x72\171\x5f\x69\144", $iU1qG)->where("\x6d\141\x6e\165\146\x61\x63\x74\x75\162\145\162\x5f\x69\144", $params["\x6d\x61\156\165\146\x61\143\x74\x75\162\x65\x72\137\x69\144"])->first(); goto A926Z; Gqcyz: CwV__: foreach ($params["\163\x6c\151\x64\x65\x72\x73"] as $tgRk_) { ProductImage::create(["\x70\x72\157\144\x75\143\164\x5f\x69\x64" => $stpwr->id, "\x6e\141\x6d\x65" => $tgRk_, "\146\x69\x6c\145\137\x6e\141\x6d\145" => $tgRk_, "\x70\157\x73\151\x74\x69\x6f\x6e" => 0, "\x63\162\x65\x61\x74\145\x64\x5f\x61\x74" => date("\131\55\x6d\x2d\x64\40\x48\x3a\x69\x3a\163"), "\165\x70\x64\x61\164\x65\144\137\141\164" => date("\131\55\x6d\55\144\x20\110\72\151\x3a\x73")]); j3IMJ: } tCYRI: goto hgEeQ; bsAcN: $stpwr->update(["\151\x73\x5f\164\x65\155\160" => 0, "\x69\163\137\144\145\x6c\145\164\145\144" => false]); r8noq: return response()->json(["\x73\164\141\164\x75\163" => "\x73\x75\x63\x63\145\x73\x73", "\151\x64" => $stpwr->id, "\154\x69\x73\164\x4f\160\x74\x69\157\x6e\111\x64\163" => $wxxqW, "\154\x69\x73\x74\117\x70\x74\x69\x6f\x6e\104\x65\x74\141\151\154\x49\x64\163" => $JttJQ], 200); goto SGRa8; hqwKG: if (!($params["\x64\x69\163\143\157\165\x6e\164"] != null && $params["\x64\x69\x73\x63\x6f\x75\x6e\164"] != '' && $params["\144\151\163\143\157\165\156\164"] > 0)) { goto VSMWh; } $v4R5i = $v4R5i - $v4R5i * $params["\x64\x69\163\143\x6f\x75\x6e\x74"] / 100; $s6Srr = $s6Srr - $s6Srr * $params["\x64\x69\163\143\157\x75\x6e\164"] / 100; goto nU8pk; hgEeQ: foreach ($params["\x70\x75\162\x63\150\x61\163\x65\137\x6d\x65\x74\150\x6f\x64"] as $tgRk_) { ProductPurchaseMethod::create(["\x70\162\157\x64\165\x63\164\137\x69\144" => $stpwr->id, "\x6e\141\x6d\145" => $tgRk_, "\x73\154\165\x67" => $tgRk_, "\x63\162\145\141\164\145\x64\x5f\x61\x74" => date("\131\x2d\155\x2d\x64\40\110\x3a\151\x3a\163"), "\x75\160\x64\141\x74\x65\144\137\141\164" => date("\x59\55\x6d\x2d\x64\x20\110\72\151\x3a\x73")]); CCgC_: } kCAnb: $rDUWP = []; goto CXcf1; hxBK9: goto vQmrC; B8shy: $iU1qG = $u5kc2[array_key_last($u5kc2)]; goto pEgyQ; hDZF3: $u5kc2 = $params["\x63\x61\164\145\147\157\x72\171\137\151\144"]; if (is_array($u5kc2) && isset($u5kc2[array_key_last($u5kc2)])) { goto B8shy; } $iU1qG = $u5kc2; goto hxBK9; VStL3: if (!(count($cfKpU) > 0)) { goto BXOGH; } ProductConstruction::insert($cfKpU); BXOGH: goto tHaEe; SJKVM: ProductArea::insert($Axh4z); wjo0G: PfrbR: goto vnttz; OtY1O: jR0N2: if (!(isset($params["\143\x6f\156\163\164\x72\x75\143\x74\x69\157\156\137\146\x65\x65"]) && $params["\143\157\x6e\x73\x74\162\x75\x63\164\151\x6f\x6e\x5f\146\145\145"] != null && $params["\x63\157\156\x73\164\162\165\143\x74\x69\x6f\156\137\x66\x65\145"] != '' && isset($wxxqW[$params["\143\x6f\x6e\x73\x74\x72\x75\143\164\151\157\156\x5f\146\x65\x65"]]))) { goto CwV__; } $stpwr->update(["\x63\x6f\156\x73\x74\x72\x75\x63\164\x69\x6f\156\x5f\164\x79\160\x65" => $wxxqW[$params["\143\157\x6e\163\x74\162\x75\x63\164\x69\x6f\x6e\137\146\x65\145"]]]); goto Gqcyz; pEgyQ: vQmrC: $v4R5i = $params["\x72\x65\x67\x75\x6c\141\x72\137\160\162\x69\x63\x65\x5f\146\x72\x6f\x6d"]; $s6Srr = $params["\162\145\x67\165\154\141\x72\x5f\x70\x72\151\143\x65\x5f\164\x6f"]; goto hqwKG; H2GDp: e5yvk: $params = $request->all(); $iU1qG = null; goto hDZF3; nU8pk: VSMWh: $hc4bi = $params["\x64\145\x66\x61\x75\x6c\164\137\160\x72\151\143\145"] != '' ? $params["\144\145\x66\141\x75\x6c\x74\137\x70\x72\x69\x63\145"] : $v4R5i; $wxxqW = []; goto EcAPr; fow6k: $Axh4z = []; foreach ($params["\x63\157\x6e\163\x74\162\x75\x63\x74\151\x6f\156\137\141\x72\x65\141\163"] as $tgRk_) { $Axh4z[] = ["\x74\x79\160\145" => 0, "\x70\x72\x6f\144\x75\x63\164\137\151\x64" => $stpwr->id, "\143\x69\x74\x79" => $tgRk_, "\143\x72\x65\x61\x74\145\144\x5f\x61\x74" => date("\131\x2d\x6d\55\144\x20\x48\72\x69\x3a\163"), "\x75\160\144\141\x74\x65\x64\x5f\x61\x74" => date("\131\55\155\x2d\144\x20\110\x3a\151\72\163")]; Bk0jq: } PZ9N2: goto K8j10; I_D7o: J6pVM: foreach ($params["\167\151\156\x64\x6f\167\120\162\x69\x63\x69\x6e\x67"] as $qsbFB) { $yuCaJ = PricingRuleDetail::create(["\x70\x72\151\x63\x69\156\147\137\x72\165\154\145\x5f\151\x64" => $RzKxT->id, "\x6e\141\155\145" => $qsbFB["\x6e\x61\x6d\145"], "\160\162\x69\143\145" => isset($qsbFB["\x70\x72\x69\143\145"]) && $qsbFB["\160\x72\151\x63\145"] != '' && $qsbFB["\x70\x72\151\143\145"] != null ? $qsbFB["\160\162\151\x63\x65"] : null, "\143\162\145\141\164\x65\144\x5f\x61\x74" => date("\x59\x2d\155\55\144\40\x48\72\x69\x3a\x73"), "\x75\x70\144\x61\164\x65\x64\x5f\141\164" => date("\131\55\x6d\55\144\x20\110\72\x69\72\163")]); foreach ($qsbFB["\157\160\164\151\157\x6e"] as $lBxIi) { PricingRuleDetailItem::create(["\160\x72\151\x63\x69\156\x67\x5f\162\165\154\145\137\144\145\x74\x61\x69\154\x5f\x69\x64" => $yuCaJ->id, "\x70\x72\x6f\144\x75\x63\164\137\x6f\160\164\x69\157\156\137\144\145\x74\141\x69\x6c\x5f\x69\144" => $lBxIi != '' && $lBxIi != null && isset($JttJQ[$lBxIi]) ? $JttJQ[$lBxIi] : null, "\143\x72\145\x61\164\x65\144\137\141\164" => date("\131\55\x6d\55\x64\x20\x48\72\x69\72\x73"), "\165\160\144\x61\164\x65\144\137\x61\x74" => date("\131\55\x6d\x2d\144\x20\x48\72\x69\x3a\x73")]); MHKY4: } SaPBQ: jnvMg: } NUpLF: goto bsAcN; YGkWv: $cfKpU = []; foreach ($params["\x63\157\156\x73\x74\x72\165\x63\x74\151\157\x6e\x46\145\x65\104\141\164\141"] as $tgRk_) { $cfKpU[] = ["\160\162\157\x64\165\x63\x74\x5f\151\x64" => $stpwr->id, "\160\x72\x6f\144\165\143\164\137\157\x70\164\x69\157\156\x5f\x64\145\164\141\151\x6c\x5f\x69\x64" => $JttJQ[$tgRk_["\151\144"]], "\156\141\x6d\145" => $tgRk_["\156\141\x6d\x65"], "\160\162\x69\143\145" => $tgRk_["\x63\x6f\163\x74"], "\x63\x72\x65\x61\164\145\144\137\x61\x74" => date("\131\x2d\x6d\55\x64\40\110\72\151\x3a\x73"), "\x75\x70\x64\141\x74\x65\144\x5f\141\x74" => date("\131\x2d\x6d\55\144\40\110\72\x69\x3a\163")]; FDR2v: } ebWqN: goto VStL3; EcAPr: $JttJQ = []; $stpwr = Product::create(["\x63\x61\164\x65\x67\157\x72\171\x5f\151\144" => $iU1qG, "\x6d\x61\156\x75\146\x61\143\x74\165\x72\x65\162\x5f\x69\x64" => $params["\155\x61\156\165\146\x61\x63\164\165\162\x65\162\x5f\151\144"], "\164\x79\160\145" => isset($params["\x74\x79\160\145"]) ? $params["\x74\x79\x70\x65"] : 0, "\163\153\165" => trim($params["\x73\153\x75"]), "\x6e\x61\x6d\x65" => trim($params["\x6e\141\x6d\145"]), "\x73\x6c\x75\147" => Helper::slug(trim($params["\156\141\x6d\145"])), "\x69\155\141\x67\x65" => $params["\151\155\x61\x67\145"], "\x64\145\x73\143\162\x69\x70\x74\151\x6f\156" => $params["\x64\145\163\x63\162\x69\160\164\151\157\x6e"], "\162\145\147\165\154\x61\x72\x5f\160\x72\x69\143\x65\x5f\146\162\x6f\155" => $params["\162\145\147\165\x6c\x61\x72\137\160\162\x69\143\145\137\x66\162\157\155"], "\x72\x65\147\x75\x6c\x61\x72\137\x70\162\151\143\x65\x5f\x74\157" => $params["\162\145\x67\x75\x6c\141\x72\137\x70\x72\151\x63\145\137\x74\x6f"], "\x64\x65\x66\141\165\154\x74\x5f\160\162\x69\143\145" => $hc4bi, "\163\150\x69\160\160\151\156\147\x5f\143\157\163\x74" => $params["\x73\x68\151\x70\160\x69\x6e\147\137\143\x6f\163\164"], "\x73\x74\141\156\x64\x61\162\x64\x5f\x63\157\x6e\163\x74\162\165\x63\164\151\x6f\x6e\x5f\x66\x65\145" => isset($params["\163\x74\141\x6e\144\x61\162\144\137\143\x6f\156\163\164\162\165\143\164\x69\x6f\x6e\137\x66\145\x65"]) ? $params["\163\x74\x61\x6e\x64\141\162\x64\137\x63\157\x6e\x73\x74\x72\165\x63\164\151\157\156\x5f\146\x65\x65"] : 0, "\144\151\163\143\157\x75\156\x74" => $params["\x64\x69\x73\x63\157\165\x6e\x74"], "\144\151\x73\x63\157\x75\x6e\x74\x5f\143\157\x72\x65" => $params["\144\x69\x73\143\157\165\x6e\x74\x5f\x63\157\162\x65"], "\160\162\x69\x63\145\x5f\x66\x72\x6f\x6d" => $v4R5i, "\160\162\151\x63\x65\137\x74\x6f" => $s6Srr, "\x6e\x6f\x74\145" => $params["\156\157\164\145"], "\160\157\154\x69\x63\x79" => $params["\160\157\x6c\x69\x63\171"], "\x72\141\x6e\153" => $params["\x72\141\x6e\x6b"] != '' && $params["\x72\x61\156\x6b"] != null ? $params["\162\x61\156\153"] : null, "\160\157\x73\x73\151\142\x6c\145\x5f\144\145\x6c\x69\x76\145\162\x79\137\164\151\x6d\x65" => $params["\x70\157\163\x73\x69\142\x6c\145\x5f\x64\x65\154\x69\x76\145\x72\x79\137\x74\151\x6d\x65"], "\x63\x6f\156\x73\164\x72\165\143\x74\151\x6f\156\x5f\x61\162\145\x61\x73\x5f\156\157\164\145" => $params["\x63\x6f\156\x73\x74\162\x75\143\x74\151\157\156\x5f\141\162\145\x61\163\x5f\x6e\157\x74\145"], "\x63\157\156\163\x74\x72\x75\x63\x74\x69\157\156\x5f\x73\x68\x69\160\160\x69\x6e\147\x5f\x64\141\x74\x65" => $params["\x63\157\x6e\x73\164\162\165\143\164\151\157\156\137\163\x68\x69\x70\x70\151\156\147\137\x64\x61\164\145"], "\x63\x6f\156\x73\x74\x72\x75\x63\164\x69\x6f\156\x5f\163\x68\x69\x70\x70\151\x6e\x67\137\x74\151\x6d\x65" => $params["\x63\x6f\x6e\x73\x74\x72\x75\143\164\x69\157\156\137\x73\x68\151\160\160\x69\156\147\137\x74\151\x6d\145"], "\143\x6f\156\163\x74\x72\x75\x63\x74\151\157\x6e\137\156\x6f\x74\145\x73" => $params["\x63\157\156\x73\164\x72\165\143\164\151\157\156\137\156\157\x74\x65\x73"], "\x73\165\160\x70\x6f\162\x74\x65\144\x5f\x61\162\x65\x61\x73\137\156\x6f\x74\x65" => $params["\x73\165\160\160\x6f\162\x74\x65\x64\137\141\x72\145\141\163\137\156\157\164\x65"], "\163\165\160\160\157\162\x74\145\x64\x5f\x6e\x6f\x74\x65\x73" => $params["\163\165\160\160\157\162\164\145\x64\137\x6e\x6f\x74\x65\x73"], "\151\x73\x5f\141\166\x61\x69\154\x61\142\x6c\x65\x5f\151\156\137\163\164\157\x63\x6b" => $params["\151\163\x5f\x61\166\x61\151\x6c\x61\x62\x6c\145\x5f\x69\x6e\x5f\x73\x74\157\x63\x6b"] === true ? 1 : 0, "\151\163\x5f\x70\162\151\x63\151\156\147\x5f\155\x61\x6e\165\x61\154" => $params["\x69\163\137\160\x72\x69\143\151\156\147\x5f\x6d\141\156\x75\141\154"] === true ? 1 : 0, "\151\163\x5f\x61\x63\x74\151\166\x61\164\145\x64" => $params["\x69\x73\x5f\x61\143\164\x69\166\x61\164\145\144"] === true ? 1 : 0, "\x69\163\x5f\144\145\x6c\x65\164\145\x64" => true, "\143\x72\145\141\164\x65\x64\137\x61\x74" => date("\x59\x2d\155\x2d\x64\x20\x48\72\151\72\x73"), "\x75\160\144\141\164\145\x64\137\x61\164" => date("\131\55\x6d\x2d\x64\x20\x48\72\x69\72\x73")]); foreach ($params["\x6f\x70\x74\151\x6f\x6e\163"] as $QsJPB => $wtQcZ) { $sInpg = ProductOption::create(["\x70\x72\x6f\144\x75\143\164\137\151\144" => $stpwr->id, "\x6e\141\155\145" => $wtQcZ["\x6e\141\x6d\145"], "\x73\x6c\x75\x67" => Helper::slug($wtQcZ["\x6e\141\x6d\x65"]), "\164\151\x74\x6c\x65" => $wtQcZ["\x6e\141\155\x65"], "\x74\x79\x70\x65" => isset($wtQcZ["\164\171\160\x65"]) ? $wtQcZ["\x74\171\160\x65"] : 0, "\165\x6e\151\164" => isset($wtQcZ["\x75\156\x69\x74"]) ? $wtQcZ["\165\x6e\x69\164"] : null, "\x64\x65\163\143\x72\151\x70\164\x69\157\156" => $wtQcZ["\144\x65\163\x63\x72\x69\160\164\151\157\156"], "\160\x6f\x73\151\x74\151\x6f\156" => $QsJPB, "\160\157\x73\151\164\x69\x6f\x6e\62" => $QsJPB, "\x61\x6c\154\157\x77\x5f\x6f\x70\x74\x69\x6f\x6e" => 1, "\151\x73\x5f\164\145\x6d\x70\x6c\x61\164\x65" => 0, "\151\x73\137\x63\150\x65\143\x6b\x5f\141\154\154" => $wtQcZ["\151\x73\137\x63\x68\x65\x63\153\x5f\141\154\x6c"], "\151\x73\x5f\151\x6e\144\x65\x74\x65\162\155\151\x6e\x61\x74\x65" => $wtQcZ["\x69\x73\137\x69\156\x64\x65\x74\145\x72\155\151\x6e\141\x74\x65"], "\x63\x72\x65\x61\164\145\x64\x5f\x61\164" => date("\131\x2d\155\x2d\x64\x20\110\72\151\x3a\163"), "\x75\x70\144\x61\x74\145\144\x5f\141\164" => date("\131\55\x6d\x2d\144\x20\x48\72\151\x3a\163")]); $wxxqW[$wtQcZ["\151\x64"]] = $sInpg->id; foreach ($wtQcZ["\144\x65\164\141\x69\x6c\163"] as $KaBqO) { $el5UR = ProductOptionDetail::create(["\160\162\x6f\144\165\143\x74\137\157\x70\164\151\x6f\x6e\x5f\x69\x64" => $sInpg->id, "\x6e\141\155\x65" => $KaBqO["\x6e\x61\x6d\145"], "\163\154\165\147" => Helper::slug($KaBqO["\156\x61\x6d\x65"]), "\151\155\141\x67\x65" => $KaBqO["\x69\155\141\147\145"], "\144\x65\163\143\x72\x69\x70\164\151\157\x6e" => isset($KaBqO["\x64\145\163\x63\162\151\x70\164\151\157\x6e"]) ? $KaBqO["\x64\x65\x73\x63\162\151\x70\x74\x69\x6f\x6e"] : null, "\160\157\x73\x69\164\151\157\x6e" => 0, "\151\x73\x5f\x63\150\145\143\x6b" => $KaBqO["\151\163\137\143\x68\145\143\x6b"], "\x63\162\145\141\164\x65\144\x5f\x61\164" => date("\x59\x2d\155\x2d\x64\40\x48\x3a\x69\x3a\x73"), "\165\160\x64\141\x74\x65\144\x5f\x61\164" => date("\x59\55\155\55\x64\40\110\72\151\x3a\163")]); $JttJQ[$KaBqO["\x69\144"]] = $el5UR->id; oQdE2: } JeFYy: pnqTW: } goto OtY1O; mvbGx: oYDiP: if (!isset($params["\x73\165\x70\160\x6f\162\164\145\144\x5f\x61\162\x65\141\163"])) { goto PfrbR; } $Axh4z = []; goto dtCMU; vnttz: if (!(isset($params["\x74\x79\160\145"]) && ($params["\x74\171\160\145"] == 1 || $params["\x74\x79\x70\x65"] == "\x31") && isset($params["\167\x69\x6e\144\x6f\167\120\162\151\143\151\x6e\147"]))) { goto r8noq; } $RzKxT = PricingRule::create(["\x63\x6f\x64\145" => md5(rand(1, 1000000) . date("\x59\155\x64\x48\151\x73")), "\x70\162\x6f\144\165\143\x74\x5f\151\144" => $stpwr->id, "\160\x72\x69\143\x65" => 0, "\x63\x72\x65\141\164\145\144\x5f\141\x74" => date("\x59\x2d\155\x2d\144\40\110\x3a\x69\x3a\163"), "\165\160\x64\141\x74\x65\x64\137\x61\x74" => date("\x59\x2d\x6d\55\x64\40\x48\72\x69\72\x73")]); foreach ($wxxqW as $QsJPB => $uwjwK) { PricingRuleOption::create(["\x70\x72\x69\x63\151\156\x67\137\162\x75\154\145\137\151\144" => $RzKxT->id, "\157\160\164\151\x6f\156\x5f\x69\144" => $uwjwK, "\x63\x72\x65\141\164\x65\144\137\141\x74" => date("\x59\x2d\155\55\x64\x20\x48\x3a\151\x3a\x73"), "\165\x70\144\x61\164\145\144\x5f\141\164" => date("\x59\55\x6d\55\144\40\110\x3a\151\x3a\163")]); FUjol: } goto I_D7o; SGRa8: } public function storeTemp(Request $request) { goto ldglK; ldglK: FJDdi: $ZGTWj = $this->randomSkuNumber(8); $fgWev = Product::where("\151\x73\x5f\x64\145\x6c\x65\164\145\144", 0)->where("\163\x6b\x75", $ZGTWj)->count(); goto efAs8; VvCsd: $Tusmc = Carbon::now()->subHours(2); Product::where("\x69\163\137\164\145\155\160", 1)->where("\151\x73\137\x61\x63\x74\151\x76\x61\x74\x65\x64", 0)->where("\x69\163\x5f\x64\145\154\145\x74\145\144", 1)->where("\x6e\x61\155\x65", "\x55\x6e\55\x6b\156\x6f\167\x20\164\151\164\x6c\145")->where("\x63\162\x65\141\164\145\x64\x5f\x61\x74", "\74\75", $Tusmc->format("\x59\55\x6d\55\144\40\x48\72\x69\72\163"))->update(["\151\163\137\164\x65\x6d\x70" => 0]); return response()->json(["\163\164\x61\x74\x75\163" => "\x73\165\x63\x63\145\163\x73", "\x69\144" => $stpwr->id, "\x73\153\x75" => $ZGTWj], 200); goto VU760; efAs8: if ($fgWev > 0) { goto FJDdi; } KvKoW: $stpwr = Product::create(["\x73\153\x75" => $ZGTWj, "\x6e\141\x6d\145" => "\x55\156\55\x6b\156\157\x77\40\164\151\164\154\145", "\163\154\165\x67" => "\165\156\55\x6b\x6e\x6f\167\55\164\151\x74\154\145\55" . $ZGTWj, "\x64\145\x66\141\165\154\x74\x5f\160\x72\151\143\145" => 0, "\160\x6f\x6c\151\x63\171" => "\343\x81\224\xe6\263\xa8\346\226\x87\xe5\xbe\214\xe3\x81\xae\350\277\224\xe5\223\201\xe3\200\201\xe5\xa4\x89\xe6\x9b\264\xe3\200\201\xe3\202\255\xe3\x83\xa3\xe3\x83\xb3\343\202\xbb\343\x83\xab\343\201\xaf\xe3\x81\212\xe5\217\x97\343\201\x91\xe3\x81\xa7\xe3\201\215\xe3\201\xbe\343\x81\x9b\343\202\223\xe3\200\202", "\x69\163\137\x74\145\155\x70" => 1, "\x69\x73\137\x61\x63\164\x69\x76\x61\x74\145\144" => 0, "\151\x73\137\144\x65\x6c\145\164\145\144" => 1, "\x63\162\x65\x61\x74\145\x64\x5f\x61\164" => date("\131\x2d\155\x2d\144\40\x48\72\151\x3a\163"), "\165\x70\144\x61\164\x65\144\x5f\141\x74" => date("\x59\x2d\155\x2d\x64\x20\x48\72\x69\72\x73")]); goto VvCsd; VU760: } public function storeRule(Request $request) { goto s1IA1; ULNPL: SXEbX: $params = $request->all(); $wxxqW = $params["\154\x69\163\164\117\x70\x74\151\x6f\156\x49\x64\163"]; goto ban5k; TweHE: Uq8f6: Product::where("\x69\x64", $params["\x70\x72\x6f\144\x75\143\x74\x49\x64"])->update(["\151\x73\x5f\164\x65\155\x70" => 0, "\x69\x73\x5f\144\145\154\145\x74\x65\x64" => false, "\165\x70\144\141\164\145\144\x5f\x61\164" => date("\x59\x2d\155\55\x64\40\110\x3a\151\x3a\163")]); return response()->json(null, 200); goto HKdU_; s1IA1: $FrkK9 = Validator::make($request->all(), ["\160\x72\x6f\144\165\143\x74\x49\144" => ["\x72\x65\161\165\x69\162\x65\x64"]]); if (!$FrkK9->fails()) { goto SXEbX; } return response()->json(["\x65\x72\162\x6f\162\163" => $FrkK9->errors()], 403); goto ULNPL; ban5k: $JttJQ = $params["\x6c\x69\163\x74\x4f\160\x74\151\157\156\104\145\164\x61\x69\154\x49\144\163"]; PricingRule::where("\160\x72\x6f\144\165\143\164\x5f\151\x64", $params["\160\162\157\144\165\x63\164\111\144"])->delete(); foreach ($params["\160\162\x69\x63\151\156\147\122\x75\154\x65\x73\104\141\x74\141"] as $tgRk_) { goto Vms4c; df1IP: gprcc: KEo9u: goto dNAES; Vms4c: $RzKxT = PricingRule::create(["\x63\157\x64\145" => md5(rand(1, 1000000) . date("\x59\155\144\110\151\163")), "\x70\x72\157\x64\165\x63\164\x5f\x69\x64" => $params["\160\162\x6f\144\165\143\x74\111\144"], "\x70\162\151\143\x65" => $tgRk_["\x70\x72\151\x63\145"], "\143\x72\145\141\x74\145\144\137\x61\164" => date("\x59\x2d\x6d\x2d\144\x20\x48\x3a\151\x3a\x73"), "\x75\x70\144\141\164\145\x64\x5f\141\x74" => date("\131\55\x6d\55\144\x20\x48\72\x69\72\163")]); foreach ($tgRk_["\157\x70\164\x69\x6f\x6e\x73"] as $uwjwK) { PricingRuleOption::create(["\160\162\x69\143\151\x6e\x67\137\162\165\154\145\x5f\151\x64" => $RzKxT->id, "\157\x70\x74\x69\157\x6e\x5f\x69\x64" => isset($uwjwK["\x69\144"]) && isset($wxxqW[$uwjwK["\151\144"]]) ? $wxxqW[$uwjwK["\x69\144"]] : null, "\x6f\160\164\x69\157\156\x5f\x64\x65\x74\x61\x69\154\x5f\x69\144" => isset($uwjwK["\166\141\x6c\x75\145"]) && $uwjwK["\x76\141\x6c\165\x65"] != null && $uwjwK["\166\x61\x6c\x75\x65"] != '' && isset($JttJQ[$uwjwK["\166\141\x6c\165\145"]]) ? $JttJQ[$uwjwK["\166\x61\154\x75\145"]] : null, "\x63\x72\145\141\164\x65\144\137\x61\x74" => date("\131\55\x6d\x2d\x64\40\x48\x3a\x69\72\163"), "\x75\x70\x64\x61\164\145\144\137\x61\164" => date("\131\55\x6d\55\x64\40\x48\72\x69\x3a\163")]); Nb6WP: } myNTy: goto eaCab; DSGWs: $H6nJx = explode("\x7c", $tgRk_["\154\x69\x73\x74"]); $fOiOn = []; foreach ($H6nJx as $g4IuN) { goto bviTU; yL1ji: $EQvme = explode("\137\x5f", $g4IuN); $yuCaJ = PricingRuleDetail::create(["\160\162\151\143\x69\x6e\147\x5f\162\165\154\x65\137\151\144" => $RzKxT->id, "\160\x72\151\x63\145" => isset($EQvme[1]) && $EQvme[1] != '' && $EQvme[1] != null ? $EQvme[1] : null, "\x63\x72\x65\x61\x74\x65\x64\137\x61\x74" => date("\131\55\155\x2d\x64\40\110\72\x69\72\163"), "\x75\x70\144\x61\x74\145\x64\x5f\x61\x74" => date("\131\55\x6d\55\x64\40\x48\72\151\x3a\x73")]); $J5pLR = explode("\x5f", $EQvme[0]); goto MMu1Y; bviTU: if (!($g4IuN == '' || $g4IuN == null)) { goto dp7zN; } goto i6J7y; dp7zN: goto yL1ji; MMu1Y: foreach ($J5pLR as $lBxIi) { $fOiOn[] = ["\160\x72\151\143\151\x6e\147\137\x72\x75\154\145\137\x64\x65\164\141\151\154\x5f\x69\144" => $yuCaJ->id, "\160\162\x6f\144\x75\x63\x74\137\x6f\x70\x74\x69\157\156\137\x64\145\x74\x61\151\x6c\137\x69\144" => $lBxIi != '' && $lBxIi != null && isset($JttJQ[$lBxIi]) ? $JttJQ[$lBxIi] : null, "\x63\162\x65\141\x74\x65\x64\137\141\164" => date("\131\x2d\x6d\x2d\144\x20\x48\x3a\151\x3a\x73"), "\x75\x70\144\141\164\x65\x64\137\141\164" => date("\x59\x2d\155\x2d\x64\x20\x48\72\151\x3a\163")]; if (!(count($fOiOn) >= 50)) { goto gqm9k; } PricingRuleDetailItem::insert($fOiOn); $fOiOn = []; gqm9k: ddlJ0: } fIBaj: i6J7y: goto UPcAx; UPcAx: } goto h976l; eaCab: if (!(!isset($tgRk_["\x6c\151\163\164"]) || $tgRk_["\x6c\x69\x73\x74"] == '' || $tgRk_["\x6c\x69\163\164"] == null)) { goto A3JPM; } goto KEo9u; A3JPM: goto DSGWs; h976l: Y5sl1: if (!(count($fOiOn) > 0)) { goto gprcc; } PricingRuleDetailItem::insert($fOiOn); goto df1IP; dNAES: } goto TweHE; HKdU_: } public function update(Request $request, $MlLyQ = 0) { goto pXu42; Pi1MG: mURcA: $rDUWP = []; ProductKeyword::where("\160\x72\157\144\x75\x63\x74\137\151\144", $stpwr->id)->delete(); goto wpLUY; OSUfh: $BODgT = ProductOption::select("\x69\x64", "\x6e\x61\155\145", "\x70\157\x73\151\x74\x69\x6f\x6e\62")->where("\x70\x72\157\x64\165\143\x74\137\x69\144", $stpwr->id)->orderBy("\160\x6f\x73\151\x74\x69\x6f\x6e\x32")->get(); ProductOption::where("\160\x72\157\x64\x75\143\164\137\x69\x64", $stpwr->id)->delete(); foreach ($params["\157\x70\x74\151\157\x6e\x73"] as $QsJPB => $wtQcZ) { goto IInFZ; AVVQY: d7_az: mzLpy: goto dZ_qO; z8A8Y: $sInpg = ProductOption::create(["\160\x72\157\x64\165\143\164\137\151\x64" => $stpwr->id, "\x6e\x61\155\x65" => $wtQcZ["\156\x61\x6d\145"], "\x73\x6c\x75\147" => Helper::slug($wtQcZ["\x6e\x61\x6d\145"]), "\x74\x69\164\154\145" => $wtQcZ["\x6e\x61\155\145"], "\x74\171\x70\x65" => isset($wtQcZ["\164\171\x70\x65"]) ? $wtQcZ["\164\171\x70\x65"] : 0, "\x75\156\151\164" => isset($wtQcZ["\165\156\151\x74"]) ? $wtQcZ["\165\x6e\151\164"] : null, "\x64\145\163\143\x72\151\x70\164\151\157\156" => $wtQcZ["\x64\145\163\x63\x72\151\160\164\151\x6f\156"], "\x70\x6f\x73\151\x74\x69\x6f\156" => $QsJPB, "\x70\x6f\163\x69\164\151\x6f\156\62" => $loTE0, "\x61\x6c\154\x6f\167\x5f\x6f\x70\164\151\x6f\x6e" => 1, "\x69\163\137\164\x65\155\160\154\141\x74\145" => 0, "\151\163\137\143\x68\145\143\153\137\x61\154\x6c" => $wtQcZ["\151\163\x5f\143\x68\x65\x63\153\137\141\154\154"], "\x69\x73\x5f\x69\x6e\x64\145\164\145\x72\155\x69\x6e\x61\x74\x65" => $wtQcZ["\151\x73\x5f\x69\x6e\144\x65\x74\145\162\x6d\x69\156\x61\164\145"], "\143\162\x65\141\164\145\144\x5f\x61\x74" => date("\x59\55\x6d\x2d\x64\40\x48\x3a\x69\x3a\x73"), "\165\160\x64\141\164\x65\144\x5f\141\164" => date("\131\55\155\x2d\x64\x20\110\72\151\x3a\x73")]); $wxxqW[$wtQcZ["\x69\144"]] = $sInpg->id; foreach ($wtQcZ["\144\145\164\141\151\x6c\x73"] as $KaBqO) { $el5UR = ProductOptionDetail::create(["\x70\x72\x6f\x64\165\x63\x74\x5f\157\160\164\x69\157\156\x5f\151\144" => $sInpg->id, "\x6e\x61\155\x65" => $KaBqO["\156\141\x6d\x65"], "\163\154\165\147" => Helper::slug($KaBqO["\156\x61\155\x65"]), "\x69\155\x61\x67\x65" => $KaBqO["\x69\155\141\x67\x65"], "\160\157\163\x69\x74\151\157\156" => 0, "\151\x73\137\x63\150\145\143\153" => $KaBqO["\151\163\x5f\x63\150\x65\x63\x6b"], "\x63\162\x65\x61\164\x65\144\x5f\x61\x74" => date("\131\x2d\155\55\x64\40\110\72\151\x3a\163"), "\165\160\x64\x61\x74\145\x64\x5f\x61\164" => date("\131\55\x6d\x2d\x64\40\110\x3a\x69\x3a\163")]); $JttJQ[$KaBqO["\x69\144"]] = $el5UR->id; XMMeG: } goto AVVQY; IInFZ: $loTE0 = $Qwwhp++; foreach ($BODgT as $tgRk_) { if (!($tgRk_->name == $wtQcZ["\x6e\141\155\145"])) { goto kNK4W; } $loTE0 = $tgRk_->position2; kNK4W: aw9UX: } BNLge: goto z8A8Y; dZ_qO: } goto hhadz; i4KlL: $s6Srr = $s6Srr - $s6Srr * $params["\x64\x69\163\143\x6f\x75\x6e\164"] / 100; mhx_R: $wxxqW = []; goto Xz6yu; pW0ga: cOQAQ: if (!(count($cfKpU) > 0)) { goto f4NjU; } ProductConstruction::insert($cfKpU); goto XXzsK; yM25D: $OfJVq = PricingRule::where("\160\x72\157\144\165\143\x74\x5f\151\x64", $stpwr->id)->select("\x69\x64")->pluck("\151\144")->toArray(); $s141w = PricingRuleDetail::whereIn("\x70\x72\151\x63\x69\156\147\137\162\165\x6c\x65\137\151\x64", $OfJVq)->select("\151\x64")->pluck("\151\x64")->toArray(); PricingRuleDetailItem::whereIn("\x70\x72\x69\x63\151\x6e\x67\x5f\162\165\154\x65\x5f\x64\145\164\141\151\154\x5f\x69\x64", $s141w)->delete(); goto px2q0; Do7bO: foreach ($params["\167\151\x6e\x64\x6f\x77\120\162\x69\x63\151\156\x67"] as $qsbFB) { $yuCaJ = PricingRuleDetail::create(["\x70\162\x69\x63\x69\156\147\x5f\162\165\x6c\x65\x5f\x69\x64" => $RzKxT->id, "\156\141\x6d\145" => $qsbFB["\156\x61\x6d\x65"], "\160\162\151\143\x65" => isset($qsbFB["\160\162\151\x63\x65"]) && $qsbFB["\x70\162\x69\x63\x65"] != '' && $qsbFB["\160\x72\x69\x63\x65"] != null ? $qsbFB["\x70\x72\x69\143\145"] : null, "\x63\162\145\141\x74\145\144\x5f\x61\x74" => date("\x59\x2d\155\x2d\144\40\110\x3a\151\72\x73"), "\x75\x70\144\x61\x74\x65\144\x5f\x61\x74" => date("\x59\55\155\55\144\x20\x48\x3a\x69\72\x73")]); foreach ($qsbFB["\157\160\164\151\x6f\x6e"] as $lBxIi) { PricingRuleDetailItem::create(["\x70\x72\151\143\x69\156\147\137\162\165\154\145\x5f\144\x65\164\x61\x69\x6c\137\151\x64" => $yuCaJ->id, "\160\x72\x6f\144\165\143\x74\x5f\157\160\x74\x69\x6f\x6e\137\x64\x65\164\141\x69\154\137\x69\x64" => $lBxIi != '' && $lBxIi != null && isset($JttJQ[$lBxIi]) ? $JttJQ[$lBxIi] : null, "\143\x72\x65\x61\164\x65\144\x5f\x61\164" => date("\x59\55\155\x2d\144\x20\110\72\151\72\x73"), "\165\160\144\141\x74\x65\144\137\141\x74" => date("\x59\55\x6d\55\144\40\110\72\151\72\x73")]); hhC4B: } O_DLo: J6THw: } PaAQY: FlBlt: goto eBKY4; hhadz: przC1: if (!(isset($params["\x63\x6f\x6e\163\x74\162\165\143\164\x69\x6f\156\x5f\x66\x65\x65"]) && $params["\x63\x6f\x6e\163\164\x72\165\x63\x74\x69\157\x6e\x5f\x66\x65\145"] != null && $params["\x63\x6f\x6e\x73\x74\x72\165\143\164\151\157\x6e\137\x66\x65\x65"] != '' && isset($wxxqW[$params["\x63\157\x6e\163\x74\x72\165\x63\164\151\157\x6e\x5f\x66\x65\145"]]))) { goto Ikg3L; } $stpwr->update(["\x63\157\156\163\164\162\x75\143\164\151\x6f\156\x5f\164\x79\x70\x65" => $wxxqW[$params["\x63\157\x6e\x73\x74\162\x75\x63\x74\151\x6f\156\137\x66\145\x65"]]]); goto hdGIs; eBKY4: return response()->json(["\x73\x74\x61\164\165\163" => "\x73\x75\x63\x63\145\x73\x73", "\151\x64" => $stpwr->id, "\x6c\x69\163\x74\x4f\x70\x74\151\x6f\156\x49\144\163" => $wxxqW, "\154\151\163\164\117\160\x74\x69\x6f\156\x44\145\164\x61\151\x6c\x49\x64\163" => $JttJQ], 200); goto WNd7S; rrcZg: if ($IaBd9) { goto pDPqx; } CategoryManufacturer::create(["\x63\141\x74\145\x67\x6f\x72\x79\137\151\144" => $iU1qG, "\x6d\x61\x6e\x75\146\141\143\x74\x75\162\145\162\x5f\151\144" => $params["\x6d\141\156\x75\146\141\143\164\x75\x72\145\x72\x5f\151\x64"], "\x63\x72\145\x61\164\145\144\x5f\x61\x74" => date("\131\x2d\155\x2d\x64\40\x48\72\x69\x3a\163"), "\x75\160\144\141\164\145\144\137\141\164" => date("\131\x2d\155\x2d\x64\x20\110\72\151\72\163")]); pDPqx: goto t83WS; XW0l4: if (!isset($params["\143\x6f\156\x73\x74\162\x75\x63\164\151\157\x6e\137\141\162\x65\x61\x73"])) { goto mp1Qv; } $Axh4z = []; foreach ($params["\x63\x6f\x6e\x73\164\x72\165\x63\x74\x69\157\156\137\141\162\145\x61\163"] as $tgRk_) { $Axh4z[] = ["\164\x79\x70\145" => 0, "\x70\162\157\144\x75\x63\x74\137\151\144" => $stpwr->id, "\143\151\164\171" => $tgRk_, "\x63\162\x65\x61\164\145\x64\137\x61\x74" => date("\x59\x2d\x6d\55\x64\40\110\x3a\x69\72\x73"), "\x75\160\x64\141\x74\x65\x64\137\141\x74" => date("\x59\x2d\x6d\x2d\x64\x20\110\72\x69\72\x73")]; xbcmU: } goto zqXCY; XEV0w: $iU1qG = $u5kc2[array_key_last($u5kc2)]; q0oxF: $v4R5i = $params["\x72\x65\x67\x75\x6c\x61\x72\x5f\160\x72\x69\x63\x65\x5f\x66\x72\x6f\155"]; goto iS4Rr; iS4Rr: $s6Srr = $params["\x72\145\x67\165\154\x61\162\137\160\162\151\x63\x65\x5f\x74\157"]; if (!($params["\x64\151\163\x63\157\165\156\x74"] != null && $params["\144\x69\x73\143\x6f\165\156\164"] != '' && $params["\x64\x69\x73\143\157\165\x6e\164"] > 0)) { goto mhx_R; } $v4R5i = $v4R5i - $v4R5i * $params["\144\151\x73\x63\x6f\165\x6e\x74"] / 100; goto i4KlL; xK5s0: $iU1qG = null; $u5kc2 = $params["\143\x61\x74\145\x67\x6f\x72\171\x5f\151\144"]; if (is_array($u5kc2) && isset($u5kc2[array_key_last($u5kc2)])) { goto A1xMl; } goto CNxo5; px1NB: rkse0: ProductPurchaseMethod::where("\160\x72\157\x64\x75\143\x74\137\x69\144", $stpwr->id)->delete(); foreach ($params["\160\x75\x72\x63\x68\x61\x73\x65\137\155\145\x74\x68\157\144"] as $tgRk_) { ProductPurchaseMethod::create(["\160\162\157\144\165\x63\164\137\x69\x64" => $stpwr->id, "\156\141\155\145" => $tgRk_, "\x73\154\x75\147" => $tgRk_, "\143\162\145\141\x74\145\x64\x5f\141\164" => date("\x59\55\155\55\x64\40\x48\72\x69\72\x73"), "\x75\160\x64\x61\164\145\x64\x5f\141\x74" => date("\x59\x2d\x6d\x2d\x64\x20\110\72\151\x3a\163")]); kGmXw: } goto Pi1MG; Xz6yu: $JttJQ = []; $stpwr->update(["\x63\141\164\x65\x67\x6f\x72\171\x5f\x69\144" => $iU1qG, "\155\x61\x6e\165\x66\x61\x63\164\x75\162\145\x72\x5f\x69\144" => $params["\x6d\x61\156\165\146\141\x63\x74\165\162\x65\x72\137\151\x64"], "\164\x79\x70\145" => isset($params["\164\171\160\145"]) ? $params["\x74\x79\x70\x65"] : 0, "\x6e\x61\x6d\145" => trim($params["\156\x61\x6d\145"]), "\163\154\165\147" => Helper::slug(trim($params["\156\141\155\x65"])), "\x69\x6d\141\147\x65" => $params["\151\x6d\x61\147\x65"], "\x64\145\163\x63\162\x69\x70\x74\x69\x6f\156" => $params["\144\x65\x73\143\x72\x69\160\x74\x69\157\x6e"], "\162\145\147\x75\x6c\141\x72\x5f\x70\162\151\x63\x65\x5f\x66\162\157\155" => $params["\162\145\x67\165\154\x61\x72\x5f\x70\x72\151\143\x65\x5f\146\162\x6f\x6d"], "\162\145\147\x75\x6c\141\x72\137\160\162\x69\x63\145\x5f\164\x6f" => $params["\x72\x65\x67\165\x6c\141\162\x5f\x70\162\x69\143\145\x5f\x74\157"], "\144\x65\x66\x61\x75\154\164\x5f\160\162\x69\x63\x65" => $params["\x64\x65\146\141\x75\154\x74\x5f\x70\x72\x69\x63\145"], "\x73\x68\151\x70\160\151\156\x67\137\x63\x6f\163\x74" => $params["\x73\x68\151\x70\160\x69\156\147\137\x63\157\163\x74"], "\163\x74\x61\156\x64\141\162\x64\137\x63\x6f\x6e\x73\x74\x72\x75\x63\164\151\x6f\156\x5f\146\145\145" => isset($params["\163\x74\x61\156\x64\x61\x72\x64\x5f\143\157\x6e\x73\x74\x72\x75\143\164\151\x6f\156\137\x66\x65\145"]) ? $params["\x73\x74\141\156\144\x61\162\144\137\143\157\x6e\x73\164\x72\165\143\164\151\x6f\x6e\x5f\146\x65\x65"] : 0, "\x64\x69\163\143\x6f\x75\156\164" => $params["\x64\151\x73\143\x6f\x75\x6e\164"], "\x64\x69\163\143\157\x75\x6e\164\x5f\143\157\162\145" => $params["\144\151\163\143\x6f\165\156\164\x5f\x63\157\x72\x65"], "\160\x72\151\x63\x65\137\x66\162\x6f\x6d" => $v4R5i, "\160\162\x69\x63\x65\137\164\157" => $s6Srr, "\x6e\157\164\x65" => $params["\156\157\164\145"], "\x70\x6f\154\x69\143\171" => $params["\160\157\154\151\x63\x79"], "\162\x61\156\153" => $params["\162\x61\156\x6b"] != '' && $params["\x72\x61\x6e\153"] != null ? $params["\162\141\x6e\x6b"] : null, "\x70\x6f\x73\163\151\142\154\x65\137\x64\x65\x6c\x69\x76\x65\x72\171\137\x74\151\155\x65" => $params["\x70\x6f\x73\163\151\142\x6c\x65\137\144\145\x6c\x69\166\x65\x72\171\x5f\164\151\155\145"], "\143\x6f\x6e\x73\164\162\165\143\164\151\157\x6e\137\x61\x72\x65\141\x73\137\x6e\157\164\x65" => $params["\143\157\x6e\163\x74\x72\165\x63\164\151\x6f\x6e\137\x61\x72\x65\x61\163\x5f\x6e\x6f\x74\145"], "\143\157\x6e\x73\x74\x72\165\143\x74\x69\x6f\x6e\x5f\163\x68\x69\x70\160\x69\x6e\x67\137\x64\141\164\x65" => $params["\143\157\x6e\x73\164\162\x75\x63\x74\151\x6f\156\x5f\x73\150\x69\160\x70\151\x6e\147\x5f\144\x61\x74\x65"], "\x63\x6f\156\x73\164\162\165\143\164\151\157\156\x5f\x73\150\151\x70\160\x69\156\147\x5f\x74\151\155\x65" => $params["\143\157\x6e\x73\164\162\x75\x63\x74\x69\157\156\137\x73\x68\151\x70\160\151\x6e\147\137\164\x69\x6d\x65"], "\x63\157\156\163\x74\162\165\x63\x74\x69\x6f\x6e\x5f\156\157\x74\145\163" => $params["\x63\x6f\156\163\x74\x72\165\x63\x74\151\157\156\x5f\156\157\164\145\163"], "\163\165\160\x70\x6f\162\x74\x65\x64\137\141\162\145\x61\163\137\156\x6f\164\145" => $params["\x73\165\160\160\x6f\x72\x74\x65\x64\137\x61\162\x65\141\x73\137\156\x6f\x74\145"], "\x73\165\160\160\x6f\162\164\x65\x64\x5f\156\157\x74\x65\163" => $params["\x73\x75\160\x70\157\162\164\x65\144\x5f\x6e\157\x74\x65\163"], "\151\163\x5f\141\x76\x61\151\x6c\141\x62\154\145\137\151\156\x5f\x73\x74\157\x63\153" => $params["\151\x73\x5f\x61\166\141\151\x6c\x61\x62\x6c\x65\137\x69\x6e\x5f\x73\x74\157\143\x6b"] === true ? 1 : 0, "\151\163\x5f\x61\143\x74\151\166\x61\x74\145\x64" => $params["\x69\x73\x5f\141\143\164\151\x76\141\164\x65\144"] === true ? 1 : 0, "\x69\x73\x5f\x70\x72\x69\x63\x69\x6e\147\137\155\141\156\x75\141\154" => $params["\x69\x73\137\x70\x72\151\x63\x69\x6e\147\137\155\x61\x6e\x75\x61\x6c"] === true ? 1 : 0, "\x75\x70\x64\x61\164\145\x64\137\141\x74" => date("\x59\x2d\155\55\144\40\110\72\x69\x3a\163")]); $Qwwhp = 100; goto OSUfh; FvdUB: ProductRelate::insert($L1jgP); Ynjwn: ProductArea::where("\160\x72\157\144\x75\143\164\x5f\x69\x64", $stpwr->id)->where("\164\171\160\145", 0)->delete(); goto XW0l4; zqXCY: RzFUY: if (!(count($Axh4z) > 0)) { goto EtcJg; } ProductArea::insert($Axh4z); goto cyCZ1; CNxo5: $iU1qG = $u5kc2; goto q0oxF; A1xMl: goto XEV0w; wpLUY: foreach ($params["\153\x65\171\167\157\x72\144"] as $tgRk_) { goto m0fqm; jDwSG: izcW5: goto OcO6Q; RFHdW: $QoeK0 = Keyword::create(["\x6e\141\155\145" => $Ci3zS, "\151\x73\x5f\x61\x63\164\x69\166\141\164\145\144" => true, "\x69\163\137\144\x65\x6c\x65\164\145\x64" => false, "\143\x72\145\x61\164\145\x64\137\141\164" => date("\131\55\x6d\x2d\144\40\110\x3a\x69\72\163"), "\165\160\144\141\x74\145\144\137\141\x74" => date("\x59\x2d\155\55\x64\x20\110\x3a\151\72\x73")]); bYKAr: $rDUWP[] = ["\x6b\145\171\x77\157\162\144\x5f\151\x64" => $QoeK0->id, "\x70\162\x6f\144\x75\x63\x74\137\x69\144" => $stpwr->id, "\143\162\145\141\164\x65\144\x5f\141\x74" => date("\131\55\x6d\x2d\144\40\110\x3a\x69\72\163"), "\x75\x70\x64\x61\164\145\x64\137\141\x74" => date("\131\55\155\55\x64\40\110\x3a\151\x3a\163")]; goto jDwSG; m0fqm: $Ci3zS = trim($tgRk_["\x74\x65\170\164"]); $QoeK0 = Keyword::where("\151\163\137\x64\x65\x6c\145\x74\145\x64", 0)->where(function ($ngfYx) use($Ci3zS) { $ngfYx->where("\x6e\141\x6d\x65", $Ci3zS)->orWhere("\156\141\x6d\145", strtolower($Ci3zS))->orWhere("\x6e\141\x6d\145", strtoupper($Ci3zS))->orWhere("\156\141\155\145", ucfirst($Ci3zS)); })->first(); if ($QoeK0) { goto bYKAr; } goto RFHdW; OcO6Q: } pdLEC: if (!(count($rDUWP) > 0)) { goto ipmNa; } goto LbLmG; nZK8V: return response()->json(["\145\162\x72\x6f\162\x73" => "\x50\162\x6f\x64\165\x63\x74\40\151\163\x20\156\157\x74\40\x76\x61\x6c\x69\x64"], 403); QWQXR: $params = $request->all(); goto xK5s0; GkltZ: $L1jgP = []; foreach ($params["\x72\x65\154\141\x74\x65\144"] as $tgRk_) { $L1jgP[] = ["\x70\162\157\x64\x75\143\164\x5f\151\x64" => $stpwr->id, "\162\145\154\141\x74\145\x64\137\151\x64" => $tgRk_["\x69\144"], "\x63\x72\145\141\x74\x65\144\137\141\x74" => date("\x59\x2d\x6d\x2d\144\40\110\72\151\72\163"), "\x75\160\144\x61\x74\145\144\137\141\x74" => date("\x59\x2d\x6d\x2d\x64\x20\110\72\x69\72\x73")]; CVb_9: } guxVr: goto FvdUB; XXzsK: f4NjU: ProductRelate::where("\x70\162\x6f\144\165\x63\164\x5f\x69\144", $stpwr->id)->delete(); if (!isset($params["\162\145\154\x61\x74\145\144"])) { goto Ynjwn; } goto GkltZ; qcq33: iCZ1G: $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\151\163\137\x64\x65\154\145\x74\145\144", 0)->where("\151\x73\137\x74\145\155\160", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\151\163\137\144\145\x6c\145\164\145\144", 1)->where("\151\x73\137\x74\x65\155\160", 1); }); })->where("\x69\x64", $MlLyQ)->first(); if (isset($stpwr)) { goto QWQXR; } goto nZK8V; UMsN3: OIde_: o_Pkb: if (!(isset($params["\x74\x79\x70\145"]) && ($params["\164\171\x70\x65"] == 1 || $params["\164\x79\x70\145"] == "\61") && isset($params["\167\x69\x6e\x64\x6f\167\120\x72\x69\x63\x69\x6e\x67"]))) { goto FlBlt; } goto yM25D; LbLmG: ProductKeyword::insert($rDUWP); ipmNa: $IaBd9 = CategoryManufacturer::where("\x63\141\x74\x65\x67\x6f\162\171\137\151\x64", $iU1qG)->where("\155\x61\x6e\165\146\141\x63\164\x75\x72\x65\162\x5f\151\144", $params["\x6d\141\156\x75\146\x61\x63\x74\165\162\x65\162\137\151\x64"])->first(); goto rrcZg; hdGIs: Ikg3L: ProductImage::where("\x70\162\157\x64\165\143\x74\x5f\151\x64", $stpwr->id)->delete(); foreach ($params["\163\154\151\x64\x65\162\x73"] as $tgRk_) { ProductImage::create(["\160\162\157\x64\165\x63\x74\x5f\x69\144" => $stpwr->id, "\156\x61\155\x65" => $tgRk_, "\146\151\154\145\x5f\x6e\x61\155\x65" => $tgRk_, "\160\157\163\151\164\151\157\x6e" => 0, "\x63\x72\145\x61\164\145\144\137\141\x74" => date("\131\55\155\55\144\x20\110\x3a\151\72\x73"), "\165\x70\144\141\164\145\x64\x5f\141\164" => date("\131\x2d\155\55\144\x20\110\x3a\151\x3a\x73")]); aULiO: } goto px1NB; t83WS: $cfKpU = []; ProductConstruction::where("\160\x72\157\x64\x75\143\x74\x5f\x69\x64", $stpwr->id)->delete(); foreach ($params["\143\157\156\163\164\162\165\x63\x74\151\x6f\156\106\x65\145\x44\141\x74\141"] as $tgRk_) { $cfKpU[] = ["\x70\x72\x6f\144\165\143\164\137\x69\144" => $stpwr->id, "\160\x72\x6f\x64\165\x63\x74\x5f\157\x70\164\x69\x6f\x6e\137\144\x65\164\141\x69\154\x5f\x69\144" => $JttJQ[$tgRk_["\x69\x64"]], "\x6e\141\155\145" => $tgRk_["\x6e\x61\x6d\x65"], "\x70\162\151\x63\145" => $tgRk_["\x63\x6f\163\x74"], "\x63\162\x65\x61\164\x65\x64\x5f\141\x74" => date("\x59\55\x6d\55\x64\x20\110\x3a\x69\x3a\163"), "\165\160\144\x61\x74\x65\x64\137\141\164" => date("\x59\55\x6d\55\x64\x20\110\x3a\x69\x3a\x73")]; m_ABQ: } goto pW0ga; KtdTq: Fxl0d: if (!(count($Axh4z) > 0)) { goto OIde_; } ProductArea::insert($Axh4z); goto UMsN3; ILrAd: $RzKxT = PricingRule::create(["\x63\x6f\x64\145" => md5(rand(1, 1000000) . date("\131\155\x64\x48\151\163")), "\x70\x72\157\x64\165\x63\x74\x5f\151\x64" => $stpwr->id, "\x70\162\151\x63\145" => 0, "\x63\162\x65\x61\x74\x65\144\x5f\x61\x74" => date("\x59\x2d\x6d\55\144\40\110\72\151\x3a\163"), "\x75\160\x64\141\x74\145\x64\x5f\141\164" => date("\131\55\x6d\x2d\144\40\x48\x3a\x69\72\163")]); foreach ($wxxqW as $QsJPB => $uwjwK) { PricingRuleOption::create(["\160\x72\151\x63\x69\156\x67\137\x72\165\x6c\145\137\151\144" => $RzKxT->id, "\x6f\160\164\151\157\156\137\151\144" => $uwjwK, "\143\x72\x65\141\164\145\144\x5f\141\164" => date("\131\x2d\x6d\55\x64\x20\x48\72\151\x3a\x73"), "\165\x70\x64\141\x74\145\x64\137\141\164" => date("\131\55\155\55\x64\40\x48\72\x69\72\x73")]); H2Mbr: } tGQTp: goto Do7bO; px2q0: PricingRuleDetail::whereIn("\160\x72\x69\x63\x69\156\147\137\162\x75\x6c\145\137\x69\144", $OfJVq)->delete(); PricingRuleOption::whereIn("\x70\x72\x69\143\151\156\x67\x5f\x72\165\154\145\x5f\x69\144", $OfJVq)->delete(); PricingRule::where("\160\162\x6f\144\165\143\164\137\151\144", $stpwr->id)->delete(); goto ILrAd; gFUzX: if (!isset($params["\163\x75\x70\x70\x6f\x72\x74\145\x64\x5f\141\162\145\141\x73"])) { goto o_Pkb; } $Axh4z = []; foreach ($params["\163\165\160\x70\x6f\162\x74\x65\144\137\x61\162\x65\x61\x73"] as $tgRk_) { $Axh4z[] = ["\164\171\160\145" => 1, "\160\162\x6f\144\165\x63\164\x5f\x69\x64" => $stpwr->id, "\x63\151\164\x79" => $tgRk_, "\143\162\145\x61\164\x65\144\137\141\164" => date("\x59\55\x6d\x2d\144\40\x48\x3a\x69\x3a\x73"), "\x75\x70\144\141\x74\145\144\137\141\x74" => date("\x59\55\155\x2d\x64\40\110\72\x69\72\x73")]; YvD0T: } goto KtdTq; pXu42: $FrkK9 = Validator::make($request->all(), ["\x6e\141\x6d\145" => ["\162\x65\x71\x75\x69\162\145\144"], "\x73\153\x75" => ["\x72\x65\161\165\151\x72\145\x64"], "\x63\x61\164\145\147\157\162\171\x5f\151\144" => ["\162\145\x71\165\151\162\145\144"], "\151\x73\137\141\143\x74\151\166\141\164\145\144" => ["\162\145\x71\x75\x69\x72\145\x64"]]); if (!$FrkK9->fails()) { goto iCZ1G; } return response()->json(["\145\x72\x72\157\162\163" => $FrkK9->errors()], 403); goto qcq33; cyCZ1: EtcJg: mp1Qv: ProductArea::where("\160\162\157\144\x75\x63\x74\137\x69\x64", $stpwr->id)->where("\x74\171\160\145", 1)->delete(); goto gFUzX; WNd7S: } public function updateOption(Request $request, $MlLyQ = 0) { goto cOFA0; cOFA0: $FrkK9 = Validator::make($request->all(), ["\x70\162\157\144\x75\x63\164\111\x64" => ["\162\x65\161\x75\151\x72\x65\144"], "\x6f\160\x74\151\157\x6e\163" => ["\x72\145\161\165\151\x72\145\144"]]); if (!$FrkK9->fails()) { goto hOA1e; } return response()->json(["\x65\162\x72\x6f\x72\163" => $FrkK9->errors()], 403); goto WLZIQ; dOYSq: cPoOD: $cgvDl = ProductOption::where("\160\162\x6f\144\165\x63\164\137\151\144", $stpwr->id)->whereNotIn("\151\144", $w9NV9)->pluck("\151\144")->toArray(); ProductOptionDetail::whereIn("\160\x72\x6f\144\x75\143\x74\x5f\x6f\x70\x74\151\157\x6e\x5f\x69\144", $cgvDl)->delete(); goto yNCZ2; Ib7OE: return response()->json(["\145\162\x72\x6f\x72\x73" => "\x50\x72\x6f\144\165\143\164\x20\151\x73\40\156\x6f\164\40\x76\x61\154\x69\x64"], 403); WFjNc: $params = $request->all(); goto K59Cs; Hdg7Q: return response()->json(["\x73\164\x61\164\x75\x73" => "\163\165\x63\143\x65\x73\163", "\151\144" => $stpwr->id], 200); goto x5Qli; WLZIQ: hOA1e: $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\x69\163\137\x64\145\154\x65\x74\x65\x64", 0)->where("\151\163\x5f\x74\145\x6d\160", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\x69\163\137\144\x65\154\x65\x74\x65\144", 1)->where("\x69\163\137\x74\x65\155\x70", 1); }); })->where("\x69\144", $MlLyQ)->first(); if (isset($stpwr)) { goto WFjNc; } goto Ib7OE; K59Cs: $w9NV9 = []; $iSSMJ = []; foreach ($params["\x6f\x70\164\151\157\x6e\x73"] as $QsJPB => $wtQcZ) { goto yz1Ax; MYEuU: tQSrg: $w9NV9[] = $sInpg->id; foreach ($wtQcZ["\144\x65\x74\141\x69\x6c\x73"] as $Ukr1q => $KaBqO) { goto qa0MC; cP3tY: $H0mKg["\160\x72\157\x64\165\143\164\137\157\x70\164\x69\157\x6e\137\151\x64"] = $sInpg->id; $H0mKg["\143\x72\145\x61\x74\145\144\x5f\x61\164"] = date("\x59\x2d\155\x2d\x64\x20\x48\x3a\x69\x3a\163"); $nX7tU = ProductOptionDetail::create($H0mKg); goto XLkO0; XLkO0: b_8Er: $iSSMJ[] = $nX7tU->id; E_L2d: goto D7Z5F; mrmpi: $nX7tU->update($H0mKg); goto b_8Er; t6xLu: goto cP3tY; qa0MC: $nX7tU = ProductOptionDetail::where("\x70\162\157\144\165\143\164\137\x6f\160\x74\x69\x6f\156\x5f\151\144", $sInpg->id)->where("\x69\x64", $KaBqO["\x69\x64"])->first(); $H0mKg = ["\156\x61\155\x65" => $KaBqO["\x6e\141\155\x65"], "\163\154\165\147" => Helper::slug($KaBqO["\x6e\x61\155\145"]), "\x69\x6d\141\147\145" => $KaBqO["\x69\x6d\141\147\145"], "\160\157\x73\151\x74\x69\x6f\x6e" => $Ukr1q, "\x69\x73\x5f\x63\150\x65\x63\153" => $KaBqO["\151\163\137\x63\x68\145\143\x6b"], "\165\160\144\x61\164\x65\x64\137\141\x74" => date("\131\55\x6d\55\x64\40\110\72\151\72\163")]; if (!$nX7tU) { goto t6xLu; } goto mrmpi; D7Z5F: } goto L0D1A; UrDTc: $sInpg->update($o3FoK); goto tQSrg; JE5Lh: goto YJ3T_; L0D1A: V_r2Q: cjyhS: goto O_P_d; YJ3T_: $o3FoK["\160\x72\x6f\144\165\143\x74\x5f\151\144"] = $stpwr->id; $o3FoK["\143\x72\145\x61\x74\145\144\137\141\164"] = date("\x59\x2d\x6d\x2d\x64\40\110\x3a\151\72\163"); $sInpg = ProductOption::create($o3FoK); goto MYEuU; yz1Ax: $sInpg = ProductOption::where("\151\x64", $wtQcZ["\x69\x64"])->first(); $o3FoK = ["\x6e\141\155\145" => $wtQcZ["\x6e\141\x6d\x65"], "\x73\154\x75\147" => Helper::slug($wtQcZ["\156\x61\x6d\x65"]), "\x74\x69\x74\154\x65" => $wtQcZ["\x6e\x61\155\x65"], "\144\x65\x73\143\162\151\160\x74\x69\157\x6e" => $wtQcZ["\x64\145\x73\x63\162\x69\160\x74\x69\157\x6e"], "\x70\157\163\151\x74\x69\157\156" => $QsJPB, "\141\154\x6c\157\167\x5f\157\160\164\151\157\156" => 1, "\151\163\137\164\x65\x6d\160\x6c\x61\x74\x65" => 0, "\x69\x73\137\x63\x68\x65\143\x6b\137\x61\x6c\154" => $wtQcZ["\x69\x73\137\143\x68\x65\143\x6b\137\x61\x6c\154"], "\x69\163\x5f\151\x6e\x64\145\164\x65\x72\155\x69\x6e\141\164\x65" => $wtQcZ["\x69\x73\x5f\151\x6e\x64\x65\x74\145\162\155\151\x6e\141\164\145"], "\165\x70\144\141\164\145\144\137\141\164" => date("\131\x2d\155\x2d\144\40\110\72\151\72\x73")]; if (!$sInpg) { goto JE5Lh; } goto UrDTc; O_P_d: } goto dOYSq; yNCZ2: ProductOption::where("\160\x72\157\x64\x75\x63\164\137\x69\144", $stpwr->id)->whereNotIn("\x69\144", $w9NV9)->delete(); $TIczq = ProductOption::where("\x70\162\x6f\x64\165\x63\164\x5f\x69\144", $stpwr->id)->whereIn("\151\144", $w9NV9)->pluck("\151\144")->toArray(); ProductOptionDetail::whereIn("\160\162\157\144\x75\x63\x74\137\157\x70\x74\x69\157\156\x5f\151\144", $TIczq)->whereNotIn("\151\144", $iSSMJ)->delete(); goto Hdg7Q; x5Qli: } public function updatePricing(Request $request, $MlLyQ = 0) { goto TNnhq; TNnhq: $FrkK9 = Validator::make($request->all(), ["\160\x72\x6f\144\x75\x63\164\111\x64" => ["\162\145\161\x75\151\162\145\x64"], "\x64\145\x66\141\165\x6c\164\137\x70\x72\x69\x63\145" => ["\162\x65\x71\165\x69\x72\x65\x64"]]); if (!$FrkK9->fails()) { goto Wm7Yx; } return response()->json(["\x65\162\x72\x6f\162\x73" => $FrkK9->errors()], 403); goto HoUuR; FVpYL: $stpwr->update(["\144\x65\146\141\165\x6c\164\x5f\x70\162\x69\143\x65" => $params["\x64\145\x66\141\x75\154\164\x5f\x70\x72\151\143\145"]]); $qHtxQ = []; if (!(isset($params["\x6c\151\163\x74"]) && is_array($params["\154\151\x73\164"]))) { goto P04rK; } goto rXhxx; GekXG: PricingRuleDetail::whereIn("\x69\x64", $JECuO)->delete(); PricingRuleOption::whereIn("\x70\x72\x69\143\151\156\x67\x5f\x72\165\154\145\137\x69\x64", $Z9Lah)->delete(); PricingRule::whereIn("\x69\x64", $Z9Lah)->delete(); goto t5N8S; HoUuR: Wm7Yx: $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\x69\x73\137\144\145\x6c\145\x74\145\144", 0)->where("\x69\163\x5f\164\145\155\160", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\151\x73\137\x64\x65\x6c\145\164\x65\x64", 1)->where("\x69\x73\x5f\x74\145\155\x70", 1); }); })->where("\151\144", $MlLyQ)->first(); if (isset($stpwr)) { goto ZRk3d; } goto K5msv; WhTDJ: $Z9Lah = PricingRule::where("\x70\x72\x6f\x64\165\143\x74\x5f\151\144", $stpwr->id)->whereNotIn("\151\x64", $qHtxQ)->pluck("\x69\x64")->toArray(); $JECuO = PricingRuleDetail::whereIn("\x70\x72\151\143\x69\156\x67\137\x72\x75\154\145\x5f\151\x64", $Z9Lah)->pluck("\x69\x64")->toArray(); PricingRuleDetailItem::whereIn("\160\x72\x69\143\x69\x6e\147\137\x72\165\154\x65\x5f\144\x65\164\x61\x69\x6c\x5f\x69\144", $JECuO)->delete(); goto GekXG; rXhxx: foreach ($params["\x6c\x69\163\x74"] as $tgRk_) { goto wQltq; aoGnx: N9BZv: $qHtxQ[] = $RzKxT->id; PricingRuleOption::where("\160\x72\x69\x63\x69\156\x67\x5f\x72\x75\154\x65\x5f\x69\x64", $RzKxT->id)->delete(); goto ZYPyT; tkX1E: matgi: goto w5qj1; bCPdv: $XIBkE["\x70\162\x6f\144\x75\143\164\x5f\151\144"] = $stpwr->id; $XIBkE["\x63\162\145\x61\164\x65\144\x5f\x61\x74"] = date("\x59\x2d\x6d\55\x64\x20\110\x3a\x69\72\x73"); $RzKxT = PricingRule::create($XIBkE); goto aoGnx; N6qwC: $RzKxT->update($XIBkE); goto N9BZv; mD6WJ: goto bCPdv; ZYPyT: foreach ($tgRk_["\x6f\160\x74\x69\x6f\x6e\x73"] as $R6LOq) { PricingRuleOption::create(["\160\x72\151\143\x69\x6e\x67\137\162\165\154\145\137\x69\x64" => $RzKxT->id, "\157\160\164\x69\x6f\x6e\x5f\x69\x64" => $R6LOq["\151\x64"], "\157\160\x74\151\157\156\137\144\x65\x74\x61\x69\x6c\137\151\144" => !empty($R6LOq["\166\x61\x6c\x75\x65"]) ? $R6LOq["\x76\141\154\165\x65"] : null, "\x63\x72\145\141\x74\x65\144\137\141\164" => date("\131\55\155\x2d\144\x20\x48\x3a\x69\72\163"), "\x75\x70\x64\x61\164\x65\x64\137\141\164" => date("\x59\55\x6d\55\144\x20\110\72\x69\72\163")]); u_0ya: } rRcW0: $ZH0q1 = PricingRuleDetail::where("\160\x72\x69\x63\x69\x6e\x67\137\x72\165\x6c\145\x5f\x69\144", $RzKxT->id)->pluck("\x69\144")->toArray(); goto Dwx0N; Dwx0N: PricingRuleDetailItem::whereIn("\x70\x72\151\x63\151\156\147\137\x72\165\154\145\x5f\x64\x65\164\141\x69\154\x5f\151\x64", $ZH0q1)->delete(); PricingRuleDetail::where("\x70\162\151\x63\x69\156\147\137\x72\x75\154\145\137\151\x64", $RzKxT->id)->delete(); $qATXy = $tgRk_["\x70\162\151\143\x69\156\147\137\143\157\x6e\164\145\x6e\164"]; goto J8eUj; J8eUj: $J5DIs = explode("\x7c", $qATXy); foreach ($J5DIs as $BTFVF) { goto rPCl_; FBvh_: $wfVPI = explode("\x2d", $BTFVF); $yuCaJ = PricingRuleDetail::create(["\x70\162\x69\x63\151\x6e\147\137\162\x75\154\145\137\x69\x64" => $RzKxT->id, "\x70\162\151\143\145" => isset($wfVPI[1]) && $wfVPI[1] != null && $wfVPI[1] != '' && $wfVPI[1] != "\x6e\x75\154\x6c" ? $wfVPI[1] : null, "\143\x72\145\x61\x74\x65\x64\137\141\x74" => date("\x59\x2d\x6d\x2d\144\x20\x48\72\151\72\x73"), "\x75\160\144\x61\x74\x65\144\x5f\x61\x74" => date("\131\55\155\55\144\x20\110\x3a\x69\72\163")]); $EjG4c = explode("\x5f", $wfVPI[0]); goto JelA8; rPCl_: if (!empty($BTFVF)) { goto YGZD6; } goto SLqe_; YGZD6: goto FBvh_; JelA8: foreach ($EjG4c as $F6fZ4) { if (!($F6fZ4 == null || $F6fZ4 == '')) { goto DWv3E; } goto GYpiL; DWv3E: PricingRuleDetailItem::create(["\x70\x72\151\143\x69\x6e\147\137\x72\165\154\x65\x5f\144\145\x74\141\x69\154\137\x69\144" => $yuCaJ->id, "\x70\162\157\x64\x75\143\x74\137\x6f\160\x74\151\157\x6e\x5f\144\145\x74\141\x69\x6c\x5f\151\x64" => $F6fZ4, "\143\162\145\141\x74\x65\144\x5f\141\164" => date("\131\x2d\x6d\x2d\x64\x20\110\x3a\151\x3a\163"), "\x75\160\144\141\x74\x65\144\137\x61\x74" => date("\x59\55\x6d\x2d\144\40\110\72\151\72\x73")]); GYpiL: } cZyxI: SLqe_: goto EAzN6; EAzN6: } CqK97: goto tkX1E; wQltq: $XIBkE = ["\x63\157\x64\145" => $tgRk_["\143\157\144\145"], "\160\x72\151\x63\145" => $tgRk_["\160\162\x69\x63\145"], "\165\160\x64\141\x74\145\x64\137\x61\x74" => date("\131\55\x6d\55\144\40\x48\72\151\72\163")]; $RzKxT = PricingRule::where("\151\x64", $tgRk_["\151\144"])->where("\160\162\157\x64\x75\x63\x74\137\151\x64", $stpwr->id)->first(); if (!$RzKxT) { goto mD6WJ; } goto N6qwC; w5qj1: } iFblt: P04rK: goto WhTDJ; t5N8S: return response()->json(["\x73\x74\x61\x74\165\163" => "\163\x75\x63\143\145\x73\x73", "\x69\x64" => $stpwr->id], 200); goto ZUWyQ; K5msv: return response()->json(["\145\162\x72\157\162\x73" => "\120\x72\157\x64\x75\143\164\40\x69\163\x20\156\157\x74\40\x76\141\154\151\144"], 403); ZRk3d: $params = $request->all(); goto FVpYL; ZUWyQ: } public function updateConstruction(Request $request, $MlLyQ = 0) { goto Bbof4; Mt3cf: $stpwr->update(["\143\x6f\156\x73\164\162\x75\x63\x74\151\157\x6e\x5f\164\171\x70\145" => $params["\143\x6f\x6e\163\x74\162\165\143\x74\151\x6f\156\x5f\x66\145\145"]]); ProductConstruction::where("\x70\x72\157\144\x75\143\164\137\151\144", $stpwr->id)->delete(); foreach ($params["\143\x6f\x6e\x73\164\162\165\143\164\x69\x6f\156\106\145\x65\x44\x61\164\x61"] as $tgRk_) { ProductConstruction::create(["\160\x72\157\144\x75\x63\x74\137\151\x64" => $stpwr->id, "\160\162\x6f\x64\165\x63\x74\x5f\x6f\160\164\151\157\x6e\x5f\144\145\x74\141\151\154\137\151\144" => $tgRk_["\x69\x64"], "\156\141\155\x65" => $tgRk_["\x6e\141\155\x65"], "\x70\162\151\143\x65" => $tgRk_["\143\157\163\164"], "\x63\x72\x65\141\x74\x65\x64\137\x61\x74" => date("\x59\55\x6d\x2d\x64\x20\x48\72\151\x3a\x73"), "\165\160\x64\141\164\145\x64\x5f\x61\x74" => date("\x59\x2d\155\x2d\144\40\110\x3a\151\x3a\x73")]); aFWgs: } goto UmK7x; UmK7x: lg4J9: return response()->json(["\163\x74\141\164\x75\x73" => "\163\165\143\x63\x65\x73\163", "\151\144" => $stpwr->id], 200); goto TUzcE; gLnlb: return response()->json(["\145\162\162\x6f\x72\163" => "\x50\x72\157\x64\165\x63\164\40\x69\x73\x20\x6e\x6f\x74\x20\166\141\x6c\151\x64"], 403); HjDw1: $params = $request->all(); goto Mt3cf; Bbof4: $FrkK9 = Validator::make($request->all(), ["\160\x72\157\x64\x75\143\164\111\144" => ["\x72\145\x71\165\151\162\x65\144"], "\143\x6f\156\x73\x74\x72\x75\x63\x74\x69\157\x6e\x5f\146\x65\x65" => ["\x72\x65\161\x75\x69\x72\145\x64"], "\x63\x6f\x6e\x73\x74\x72\165\143\164\151\x6f\x6e\x46\x65\x65\104\141\164\141" => ["\162\x65\161\165\x69\162\145\144"]]); if (!$FrkK9->fails()) { goto BlQyk; } return response()->json(["\x65\x72\162\x6f\x72\x73" => $FrkK9->errors()], 403); goto Wpjjo; Wpjjo: BlQyk: $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\x69\163\137\144\145\x6c\145\x74\x65\x64", 0)->where("\151\x73\x5f\164\x65\155\160", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\151\x73\x5f\144\x65\x6c\x65\x74\145\x64", 1)->where("\x69\163\x5f\164\x65\x6d\x70", 1); }); })->where("\151\x64", $MlLyQ)->first(); if (isset($stpwr)) { goto HjDw1; } goto gLnlb; TUzcE: } public function updateStatus(Request $request, $MlLyQ = 0) { goto ToELI; AFqQl: v1SjD: $stpwr = Product::where(function ($ngfYx) { $ngfYx->where(function ($BNBHT) { $BNBHT->where("\151\x73\137\144\x65\x6c\145\164\x65\144", 0)->where("\x69\163\x5f\164\x65\155\x70", 0); })->orWhere(function ($BNBHT) { $BNBHT->where("\151\163\x5f\x64\x65\154\145\x74\x65\x64", 1)->where("\151\x73\137\x74\145\x6d\x70", 1); }); })->where("\151\x64", $MlLyQ)->first(); if (isset($stpwr)) { goto IGJYM; } goto TrnJm; ToELI: $FrkK9 = Validator::make($request->all(), ["\x69\x73\x5f\141\x63\164\x69\166\x61\x74\x65\144" => ["\x72\x65\x71\x75\151\x72\x65\144"]]); if (!$FrkK9->fails()) { goto v1SjD; } return response()->json(["\145\162\x72\x6f\162\163" => $FrkK9->errors()], 403); goto AFqQl; yteTb: $stpwr->update(["\151\163\137\x61\143\164\x69\x76\141\x74\145\x64" => $params["\x69\163\x5f\x61\x63\x74\151\166\141\x74\145\144"] === true ? 1 : 0, "\151\163\x5f\164\x65\x6d\x70" => 0, "\x69\x73\x5f\144\x65\x6c\x65\x74\145\144" => 0, "\x75\160\144\141\x74\x65\144\x5f\141\164" => date("\x59\x2d\155\55\x64\40\x48\72\151\72\x73")]); return response()->json(["\163\164\x61\164\x75\x73" => "\x73\x75\143\x63\145\x73\163", "\x69\144" => $stpwr->id], 200); goto YM5pB; TrnJm: return response()->json(["\145\162\162\x6f\x72\x73" => "\x50\162\x6f\144\x75\x63\x74\40\151\x73\x20\156\x6f\164\40\166\x61\x6c\151\144"], 403); IGJYM: $params = $request->all(); goto yteTb; YM5pB: } public function checkSku(Request $request, $ZGTWj = '') { goto eZzIr; tJ42s: RgDss: goto yhF23; QSq0D: goto ehM8S; ehM8S: $Ale4v = Product::where("\x69\x64", $MlLyQ)->where("\163\x6b\165", $ZGTWj)->count(); if ($Ale4v == 1) { goto hMljU; } $Ale4v = Product::where("\x69\x64", "\41\75", $MlLyQ)->where("\x73\153\165", $ZGTWj)->count(); goto t7_FY; ZeeSv: $Ale4v = Product::where("\163\153\x75", $ZGTWj)->count(); if ($Ale4v > 0) { goto EgLLA; } return response()->json(["\163\x74\x61\164\x75\163" => "\x73\165\143\143\145\x73\x73"], 200); goto T2XCd; AjaMs: goto dxvbk; hMljU: return response()->json(["\x73\164\x61\x74\165\163" => "\x73\165\x63\143\x65\x73\x73"], 200); goto xosIP; eZzIr: if (!($ZGTWj == '' || $ZGTWj == null)) { goto Yving; } return response()->json(["\163\164\141\164\x75\163" => "\x65\162\162\157\x72"], 200); Yving: goto yPnAY; xosIP: dxvbk: yhF23: goto rEERB; yPnAY: $params = $request->all(); $MlLyQ = Arr::get($params, "\151\x64", ''); if (!empty($MlLyQ)) { goto QSq0D; } goto ZeeSv; T2XCd: goto RgDss; EgLLA: return response()->json(["\163\164\141\x74\165\163" => "\145\162\162\x6f\162"], 200); goto tJ42s; rGCTs: Lvr17: return response()->json(["\x73\164\x61\164\165\x73" => "\145\x72\x72\157\x72"], 200); itB7U: goto AjaMs; t7_FY: if ($Ale4v > 0) { goto Lvr17; } return response()->json(["\163\164\x61\x74\x75\163" => "\163\x75\143\x63\145\x73\163"], 200); goto itB7U; goto rGCTs; rEERB: } public function destroy($MlLyQ = 0) { $stpwr = Product::notDeleted()->where("\x69\144", $MlLyQ)->first(); if (isset($stpwr)) { goto a04bd; } return response()->json(["\145\x72\x72\x6f\162" => "\x45\x68\x68\x68\41\x20\103\x61\x6e\x20\156\x6f\x74\40\144\x65\154\145\164\x65\x20\164\x68\151\x73\40\x70\x72\x6f\144\x75\143\164"], 403); a04bd: try { $stpwr->update(["\x69\x73\137\144\145\x6c\x65\x74\145\x64" => true]); } catch (\Exception $K5RnP) { return response()->json(["\145\x72\x72\x6f\x72" => $K5RnP->getMessage()], 403); } return response()->json(null, 204); } public function destroyMultiple(Request $request) { goto Be60N; uZjcR: d37Wf: $KHjoY = $request->get("\151\x64\163", []); $tXLVY = Product::notDeleted()->whereIn("\x69\144", $KHjoY)->get(); goto iCYSX; Be60N: $FrkK9 = Validator::make($request->all(), ["\151\x64\x73" => "\162\x65\x71\x75\x69\162\145\x64"]); if (!$FrkK9->fails()) { goto d37Wf; } return response()->json(["\x65\x72\162\x6f\162\163" => $FrkK9->errors()], 403); goto uZjcR; iCYSX: if (!($tXLVY->count() <= 0)) { goto mcuRz; } return response()->json(["\145\162\x72\157\162" => "\120\x72\157\144\x75\x63\x74\40\x69\x73\x20\156\x6f\x74\40\x76\141\x6c\x69\144\x2e"], 403); mcuRz: goto ya5Av; ya5Av: try { Product::notDeleted()->whereIn("\151\x64", $KHjoY)->update(["\x69\x73\x5f\x64\145\x6c\145\164\x65\x64" => true]); } catch (\Exception $K5RnP) { return response()->json(["\145\x72\162\x6f\x72" => $K5RnP->getMessage()], 403); } return response()->json(null, 204); goto FUUOC; FUUOC: } public function activateMultiple(Request $request) { goto sRxXn; RqFmY: if (!($tXLVY->count() <= 0)) { goto vZzfV; } return response()->json(["\145\162\162\157\162" => "\120\x72\x6f\x64\x75\x63\x74\x20\x69\163\40\x6e\x6f\x74\40\x76\141\x6c\x69\144\x2e"], 403); vZzfV: goto ldZat; ldZat: try { Product::notDeleted()->whereIn("\151\x64", $KHjoY)->update(["\151\x73\137\141\x63\x74\x69\x76\141\x74\x65\x64" => true]); } catch (\Exception $K5RnP) { return response()->json(["\x65\x72\x72\157\162" => $K5RnP->getMessage()], 403); } return response()->json(null, 204); goto HHYNN; avGi5: HCsSg: $KHjoY = $request->get("\151\x64\163", []); $tXLVY = Product::notDeleted()->whereIn("\151\144", $KHjoY)->get(); goto RqFmY; sRxXn: $FrkK9 = Validator::make($request->all(), ["\x69\144\163" => "\162\145\x71\x75\x69\162\x65\x64"]); if (!$FrkK9->fails()) { goto HCsSg; } return response()->json(["\x65\162\162\x6f\162\163" => $FrkK9->errors()], 403); goto avGi5; HHYNN: } public function deactivateMultiple(Request $request) { goto imO1o; l_MKc: try { Product::notDeleted()->whereIn("\x69\x64", $KHjoY)->update(["\151\x73\x5f\x61\x63\164\x69\166\141\x74\x65\x64" => false]); } catch (\Exception $K5RnP) { return response()->json(["\145\162\x72\157\162" => $K5RnP->getMessage()], 403); } return response()->json(null, 204); goto JBq5j; Em1Lc: if (!($tXLVY->count() <= 0)) { goto DnRjN; } return response()->json(["\145\162\162\157\162" => "\x50\x72\x6f\x64\x75\143\x74\40\x69\163\x20\156\x6f\164\40\166\141\x6c\x69\144\x2e"], 403); DnRjN: goto l_MKc; X5QXG: ucTSt: $KHjoY = $request->get("\x69\144\x73", []); $tXLVY = Product::notDeleted()->whereIn("\151\x64", $KHjoY)->get(); goto Em1Lc; imO1o: $FrkK9 = Validator::make($request->all(), ["\x69\144\x73" => "\162\x65\161\x75\151\x72\x65\144"]); if (!$FrkK9->fails()) { goto ucTSt; } return response()->json(["\x65\x72\x72\157\x72\163" => $FrkK9->errors()], 403); goto X5QXG; JBq5j: } public function copy($MlLyQ) { goto whQ8O; U5F_E: if (!(count($XtXcC) > 0)) { goto MOKqO; } ProductArea::insert($XtXcC); MOKqO: goto ttlMP; KxgCY: zKCJY: if (!(count($cfKpU) > 0)) { goto DUyQH; } ProductConstruction::insert($cfKpU); goto NT4Ih; whQ8O: $ZifFq = Product::notDeleted()->where("\151\144", $MlLyQ)->first(); if ($ZifFq) { goto lj33X; } return response()->json(["\145\162\162\x6f\x72" => "\120\162\x6f\144\x75\143\164\x20\151\x73\x20\x6e\x6f\164\x20\166\141\x6c\x69\144\x2e"], 403); goto XVtKJ; nauXC: if ($WDfYc > 0) { goto HfaHX; } MiQ76: $I3kIb = (int) $ZifFq->sku; goto vvikf; qiLPl: ProductRelate::insert($gGCU0); zc_4c: $SVIK_ = ProductArea::where("\x70\x72\157\144\x75\143\x74\x5f\151\144", $ZifFq->id)->get(); goto LkFgR; XVtKJ: lj33X: $pjUCk = 0; HfaHX: goto UGTmW; NT4Ih: DUyQH: $MCthh = ProductRelate::where("\x70\162\157\144\165\x63\164\x5f\151\144", $ZifFq->id)->get(); $gGCU0 = []; goto vuEK0; vuEK0: foreach ($MCthh as $Zqcrc) { $gGCU0[] = ["\x70\x72\x6f\144\x75\x63\x74\x5f\151\x64" => $stpwr->id, "\x72\x65\154\141\x74\x65\x64\137\x69\x64" => $Zqcrc->related_id, "\143\x72\x65\141\164\x65\144\137\x61\164" => date("\x59\x2d\x6d\x2d\144\40\x48\x3a\x69\72\x73"), "\165\x70\x64\141\164\x65\144\137\141\x74" => date("\131\x2d\x6d\55\144\x20\x48\72\151\x3a\x73")]; FX4sE: } OAW_k: if (!(count($gGCU0) > 0)) { goto zc_4c; } goto qiLPl; D14gK: foreach ($ZifFq->pricing_rules as $bVW28) { $RzKxT = PricingRule::create(["\160\x72\157\144\165\143\x74\x5f\151\x64" => $stpwr->id, "\x70\x72\x69\143\145" => $bVW28->price, "\x63\162\x65\141\x74\x65\144\137\x61\164" => date("\131\55\x6d\x2d\144\40\x48\x3a\151\72\163"), "\x75\160\x64\x61\x74\145\144\137\x61\164" => date("\131\55\x6d\x2d\x64\40\110\x3a\151\72\x73")]); foreach ($bVW28->detail as $ya0lo) { PricingRuleOption::create(["\160\x72\151\x63\151\x6e\x67\137\162\x75\154\x65\137\x69\144" => $RzKxT->id, "\x6f\x70\164\151\157\156\x5f\151\144" => $CW8Jz[$ya0lo->option_id], "\x6f\x70\x74\x69\x6f\156\x5f\144\x65\x74\x61\151\154\137\x69\144" => $ya0lo->option_detail_id != '' && $ya0lo->option_detail_id != null && isset($RR9Dn[$ya0lo->option_detail_id]) ? $RR9Dn[$ya0lo->option_detail_id] : null, "\x63\x72\x65\x61\x74\145\144\137\141\x74" => date("\x59\55\x6d\55\144\x20\110\72\x69\x3a\163"), "\x75\160\x64\141\x74\x65\x64\137\x61\x74" => date("\x59\x2d\x6d\55\x64\x20\x48\72\x69\72\x73")]); PKSVZ: } izx9P: foreach ($bVW28->pricing as $J0Fqx) { $FuuUl = PricingRuleDetail::create(["\160\x72\151\x63\151\x6e\x67\x5f\x72\165\154\145\x5f\x69\x64" => $RzKxT->id, "\x6e\141\x6d\x65" => $J0Fqx->name, "\x63\157\x64\x65" => $J0Fqx->code, "\x70\162\x69\143\145" => $J0Fqx->price, "\143\x72\145\x61\x74\145\144\137\x61\x74" => date("\131\55\155\55\x64\40\110\72\x69\x3a\x73"), "\x75\x70\x64\141\164\x65\x64\137\x61\x74" => date("\131\x2d\x6d\x2d\x64\x20\110\72\x69\x3a\x73")]); foreach ($J0Fqx->options as $v4WTa) { PricingRuleDetailItem::create(["\x70\x72\151\x63\x69\156\147\x5f\162\165\x6c\145\x5f\144\145\164\141\x69\154\137\x69\144" => $FuuUl->id, "\160\x72\157\144\165\143\x74\137\x6f\x70\164\x69\157\156\x5f\144\145\x74\141\151\154\x5f\151\144" => $v4WTa->product_option_detail_id != '' && $v4WTa->product_option_detail_id != null && isset($RR9Dn[$v4WTa->product_option_detail_id]) ? $RR9Dn[$v4WTa->product_option_detail_id] : null, "\143\x72\x65\x61\164\x65\144\137\141\164" => date("\131\55\x6d\x2d\144\x20\x48\72\151\72\x73"), "\165\160\x64\x61\x74\145\144\x5f\141\x74" => date("\131\55\x6d\55\x64\x20\x48\72\151\x3a\163")]); OUfXv: } wfrwE: VX6Tw: } n0uRl: UNBYt: } neo8L: foreach ($ZifFq->images as $tgRk_) { ProductImage::create(["\160\x72\x6f\x64\165\143\x74\137\x69\144" => $stpwr->id, "\x6e\141\155\145" => $tgRk_->name, "\146\x69\x6c\145\137\156\x61\155\145" => $tgRk_->file_name, "\160\x6f\x73\151\164\151\x6f\x6e" => $tgRk_->position, "\x63\x72\x65\141\x74\145\144\137\x61\164" => date("\131\x2d\155\55\x64\x20\x48\72\x69\x3a\x73"), "\165\x70\144\x61\x74\145\144\x5f\x61\x74" => date("\131\x2d\x6d\55\x64\40\x48\72\151\x3a\x73")]); cj5kA: } goto tkJxd; tkJxd: lpbI7: foreach ($ZifFq->purchases as $tgRk_) { ProductPurchaseMethod::create(["\160\x72\x6f\144\x75\143\x74\137\x69\x64" => $stpwr->id, "\x6e\x61\155\145" => $tgRk_->name, "\163\154\x75\x67" => $tgRk_->slug, "\x64\145\163\x63\x72\x69\x70\x74\x69\x6f\x6e" => $tgRk_->description, "\143\x72\145\141\x74\145\144\x5f\141\x74" => date("\x59\x2d\x6d\55\144\40\110\72\x69\x3a\163"), "\165\x70\x64\x61\x74\x65\x64\x5f\141\x74" => date("\131\55\155\x2d\x64\x20\110\72\x69\72\163")]); Zjl0b: } XRT0F: goto qLyXS; vvikf: $qtUMS = 0; RWUcx: $qtUMS++; goto CtW6f; cvCzQ: OVTBN: $stpwr = Product::create(["\164\171\x70\x65" => $ZifFq->type, "\143\141\x74\x65\147\x6f\x72\171\137\151\x64" => $ZifFq->category_id, "\155\141\156\x75\146\141\143\x74\x75\x72\145\162\137\x69\x64" => $ZifFq->manufacturer_id, "\x73\153\x75" => $Vvace, "\x6e\141\x6d\x65" => $Ai3BQ, "\163\x6c\165\147" => $ZifFq->slug . "\55" . $pjUCk, "\x69\x6d\x61\147\145" => $ZifFq->image, "\x64\145\x73\143\162\151\x70\164\151\157\156" => $ZifFq->description, "\x72\145\x67\x75\x6c\x61\x72\x5f\160\x72\x69\x63\145\137\x66\162\157\x6d" => $ZifFq->regular_price_from, "\x72\145\x67\x75\x6c\x61\162\137\x70\162\151\x63\145\137\164\x6f" => $ZifFq->regular_price_to, "\144\x65\x66\x61\165\154\164\x5f\x70\x72\151\x63\145" => $ZifFq->default_price, "\163\164\x61\156\x64\x61\162\144\x5f\143\157\x6e\x73\164\162\x75\143\x74\x69\x6f\x6e\x5f\146\x65\145" => $ZifFq->standard_construction_fee, "\143\x6f\x6e\x73\164\162\165\143\x74\x69\157\x6e\x5f\164\x79\160\x65" => $ZifFq->construction_type, "\x73\x68\151\x70\x70\x69\x6e\147\137\x63\157\163\164" => $ZifFq->shipping_cost, "\144\x69\x73\143\x6f\165\x6e\x74" => $ZifFq->discount, "\144\x69\163\143\x6f\x75\156\164\137\143\157\162\145" => $ZifFq->discount_core, "\x70\x72\151\x63\145\137\146\162\x6f\155" => $ZifFq->price_from, "\160\x72\151\x63\x65\x5f\164\157" => $ZifFq->price_to, "\x6e\x6f\x74\x65" => $ZifFq->note, "\x70\x6f\154\151\143\x79" => $ZifFq->policy, "\162\141\x6e\x6b" => $ZifFq->rank, "\x63\x6f\156\163\x74\x72\165\x63\164\x69\x6f\x6e\137\141\x72\145\141\163\x5f\x6e\x6f\x74\x65" => $ZifFq->construction_areas_note, "\143\157\156\163\x74\162\165\x63\x74\151\x6f\x6e\x5f\x73\150\151\x70\160\x69\156\x67\x5f\x64\141\x74\x65" => $ZifFq->construction_shipping_date, "\143\x6f\156\x73\164\x72\165\x63\x74\x69\157\156\x5f\163\150\x69\160\160\x69\156\147\x5f\x74\x69\x6d\x65" => $ZifFq->construction_shipping_time, "\x63\x6f\x6e\x73\x74\162\165\x63\x74\x69\157\x6e\137\x6e\157\164\145\163" => $ZifFq->construction_notes, "\163\165\160\x70\157\x72\164\x65\144\x5f\141\162\145\x61\163\x5f\156\x6f\164\145" => $ZifFq->supported_areas_note, "\163\165\x70\x70\157\162\164\x65\144\x5f\x6e\x6f\164\x65\x73" => $ZifFq->supported_notes, "\167\151\163\x68\x5f\154\x69\163\x74" => $ZifFq->wish_list, "\160\x6f\x73\163\x69\142\154\x65\x5f\x64\145\154\x69\166\145\162\171\137\x74\x69\155\x65" => $ZifFq->possible_delivery_time, "\151\163\137\x61\166\x61\x69\154\x61\x62\154\145\x5f\151\x6e\137\163\164\157\x63\x6b" => $ZifFq->is_available_in_stock, "\151\163\137\x70\x72\151\x63\x69\156\x67\137\x6d\x61\x6e\x75\x61\x6c" => $ZifFq->is_pricing_manual, "\151\163\137\x74\145\155\x70" => $ZifFq->is_temp, "\x69\163\x5f\x61\143\x74\x69\x76\x61\x74\145\x64" => $ZifFq->is_activated, "\151\x73\137\144\x65\x6c\145\164\x65\x64" => $ZifFq->is_deleted, "\x63\162\x65\x61\164\145\144\137\141\x74" => date("\131\55\155\x2d\144\40\110\72\x69\x3a\x73"), "\165\160\x64\x61\164\x65\144\137\141\x74" => date("\131\55\155\x2d\x64\40\x48\72\151\x3a\x73")]); $CW8Jz = []; goto I2HQF; I2HQF: $RR9Dn = []; foreach ($ZifFq->options as $wtQcZ) { $sInpg = ProductOption::create(["\x70\x72\x6f\144\165\143\164\137\151\144" => $stpwr->id, "\156\141\x6d\145" => $wtQcZ->name, "\163\154\x75\147" => $wtQcZ->slug, "\164\x69\164\x6c\145" => $wtQcZ->title, "\164\171\x70\x65" => $wtQcZ->type, "\x75\156\151\164" => $wtQcZ->unit, "\144\x65\163\x63\x72\x69\160\164\151\x6f\156" => $wtQcZ->description, "\x70\157\163\x69\x74\151\157\156" => $wtQcZ->position, "\x70\157\163\x69\x74\151\x6f\x6e\x32" => $wtQcZ->position2, "\x61\154\x6c\157\167\137\157\x70\x74\151\x6f\x6e" => $wtQcZ->allow_option, "\x69\x73\x5f\x74\x65\x6d\x70\154\x61\x74\x65" => $wtQcZ->is_template, "\151\x73\x5f\x63\x68\145\x63\153\137\x61\x6c\x6c" => $wtQcZ->is_check_all, "\151\x73\137\x69\x6e\x64\x65\164\145\162\155\x69\x6e\x61\164\145" => $wtQcZ->is_indeterminate, "\143\x72\145\141\164\x65\x64\x5f\x61\164" => date("\131\55\x6d\x2d\x64\40\x48\x3a\151\72\163"), "\165\x70\144\x61\164\145\144\137\141\x74" => date("\x59\x2d\x6d\x2d\144\40\110\x3a\151\x3a\163")]); $CW8Jz[$wtQcZ->id] = $sInpg->id; foreach ($wtQcZ->details as $d9Y5h) { $vS9M3 = ProductOptionDetail::create(["\160\162\157\144\x75\x63\164\137\x6f\x70\x74\151\157\156\x5f\x69\x64" => $sInpg->id, "\156\x61\155\x65" => $d9Y5h->name, "\163\x6c\165\x67" => $d9Y5h->slug, "\151\x6d\x61\x67\x65" => $d9Y5h->image, "\144\x65\163\x63\162\x69\160\164\151\x6f\156" => $d9Y5h->description, "\x70\x6f\x73\151\164\151\x6f\156" => $d9Y5h->position, "\x69\163\x5f\x63\x68\x65\143\x6b" => $d9Y5h->is_check, "\143\x72\145\141\164\x65\144\137\141\164" => date("\x59\55\x6d\x2d\x64\x20\110\72\151\x3a\x73"), "\x75\x70\x64\141\x74\145\144\137\x61\x74" => date("\x59\55\x6d\55\x64\x20\110\x3a\x69\x3a\163")]); $RR9Dn[$d9Y5h->id] = $vS9M3->id; LnNFx: } M230w: q9JWm: } twIeS: goto Fmmkd; CtW6f: $Vvace = $I3kIb + $qtUMS; $fgWev = Product::notDeleted()->where("\x73\153\x75", $Vvace)->count(); if ($fgWev > 0) { goto RWUcx; } goto cvCzQ; Fmmkd: if (!(isset($ZifFq->construction_type) && $ZifFq->construction_type != null && $ZifFq->construction_type != '' && isset($CW8Jz[$ZifFq->construction_type]))) { goto nUvwU; } $stpwr->update(["\143\157\x6e\163\164\x72\x75\143\x74\151\157\156\x5f\164\x79\x70\x65" => $CW8Jz[$ZifFq->construction_type]]); nUvwU: goto D14gK; UGTmW: $pjUCk++; $Ai3BQ = $ZifFq->name . "\x28" . $pjUCk . "\51"; $WDfYc = Product::notDeleted()->where("\x6e\x61\x6d\145", $Ai3BQ)->count(); goto nauXC; vw60p: if (!(count($rDUWP) > 0)) { goto MmRPi; } ProductKeyword::insert($rDUWP); MmRPi: goto ZUy9F; ttlMP: return response()->json(["\x73\x74\x61\164\165\x73" => "\163\x75\x63\x63\x65\163\x73", "\x69\144" => $stpwr->id], 200); goto vuTiS; ZUy9F: $Nt1n6 = ProductConstruction::where("\160\x72\157\x64\165\143\x74\x5f\x69\x64", $ZifFq->id)->get(); $cfKpU = []; foreach ($Nt1n6 as $Zqcrc) { $cfKpU[] = ["\160\162\157\144\x75\143\164\x5f\x69\144" => $stpwr->id, "\x70\162\157\x64\165\143\164\137\157\160\x74\151\x6f\x6e\137\144\145\x74\141\151\154\137\x69\144" => $RR9Dn[$Zqcrc->product_option_detail_id], "\156\x61\155\145" => $Zqcrc->name, "\x70\x72\151\143\145" => $Zqcrc->price, "\x63\x72\x65\141\x74\x65\x64\x5f\141\x74" => date("\x59\x2d\155\x2d\144\40\110\x3a\x69\72\x73"), "\x75\x70\x64\141\164\x65\x64\x5f\141\x74" => date("\x59\x2d\155\55\144\x20\110\x3a\x69\72\x73")]; GM4_a: } goto KxgCY; qLyXS: $rDUWP = []; foreach ($ZifFq->keyword_detail as $tgRk_) { $rDUWP[] = ["\153\145\171\x77\x6f\x72\x64\x5f\x69\144" => $tgRk_->keyword_id, "\160\162\157\144\165\143\x74\x5f\x69\x64" => $stpwr->id, "\143\162\x65\x61\164\145\144\x5f\141\164" => date("\131\x2d\x6d\x2d\x64\x20\110\x3a\151\x3a\x73"), "\165\x70\144\x61\164\x65\144\x5f\x61\x74" => date("\x59\55\155\x2d\144\x20\x48\x3a\151\x3a\x73")]; SuYmm: } oxRdv: goto vw60p; LkFgR: $XtXcC = []; foreach ($SVIK_ as $Zqcrc) { $XtXcC[] = ["\x70\x72\157\144\165\143\164\137\x69\x64" => $stpwr->id, "\164\171\x70\x65" => $Zqcrc->type, "\143\x69\x74\171" => $Zqcrc->city, "\143\162\145\141\164\x65\x64\x5f\x61\164" => date("\x59\55\155\55\144\40\x48\x3a\x69\72\x73"), "\165\x70\144\141\x74\145\144\x5f\141\164" => date("\x59\x2d\x6d\x2d\x64\x20\110\72\x69\x3a\x73")]; Gln0Z: } pL6fB: goto U5F_E; vuTiS: } public function optionsTemplate() { $kJXRG = ProductOption::with("\x64\x65\164\x61\151\x6c\163")->select("\x69\x64", "\156\141\x6d\x65", "\x73\154\165\147", "\x74\151\164\x6c\x65", "\x64\x65\x73\x63\x72\x69\160\164\151\x6f\156")->where("\x69\x73\137\164\145\155\x70\154\x61\x74\145", true)->limit(50)->orderBy("\x69\144")->get(); return response()->json(["\x64\x61\164\x61" => $kJXRG], 200); } public function optionsTemplateDestroy() { ProductOption::where("\x69\x73\x5f\x74\145\x6d\x70\154\141\x74\x65", true)->update(["\x69\163\137\x74\x65\x6d\x70\x6c\141\164\145" => false]); return response()->json(["\144\x61\164\141" => ["\163\164\141\x74\165\x73" => "\x73\165\x63\x63\145\x73\163", "\155\145\163\163\141\147\145" => '']], 200); } public function review(Request $request, $MlLyQ = 0) { goto ocdpm; ocdpm: $params = $request->all(); $gnWdU = Arr::get($params, "\x6c\x69\155\x69\164", static::ITEM_PER_PAGE); $stpwr = Product::notDeleted()->where("\151\x64", $MlLyQ)->first(); goto cy5PM; cy5PM: if ($stpwr) { goto w8kzz; } return response()->json(["\x65\x72\162\x6f\162" => "\x50\x72\157\x64\165\x63\x74\x20\151\163\40\x69\156\166\x61\x6c\x69\144"], 403); w8kzz: goto Mrfmg; Mrfmg: $kJXRG = ProductReview::notDeleted()->where("\x70\x61\x72\x65\x6e\164\x5f\151\x64", 0)->where("\160\x72\x6f\x64\165\x63\x74\x5f\x69\x64", $stpwr->id)->orderBy("\x69\x64"); return ReviewResource::collection($kJXRG->paginate($gnWdU)); goto AMP3H; AMP3H: } private function _updatePricingList($ZUFfR) { goto bAPV_; bAPV_: $stpwr = Product::where("\x69\144", $ZUFfR)->first(); $zoOtq = ProductDetail::with("\x6f\x70\164\151\157\156\x5f\x64\x65\164\141\151\x6c")->where("\x70\162\x6f\144\x75\x63\x74\x5f\x69\144", $stpwr->id)->get(); $kNQ0b = PricingRule::with("\144\145\164\141\151\x6c", "\160\x72\x69\x63\151\x6e\x67")->where("\160\162\x6f\x64\x75\x63\x74\x5f\151\x64", $stpwr->id)->get(); goto yAGFj; AyKua: foreach ($zoOtq as $tgRk_) { $O1lq9 = []; foreach ($tgRk_->option_detail as $Yka0i) { $O1lq9[] = $Yka0i->product_option_detail_id; Ugj8D: } gMwKO: $Nkwdp[] = ["\151\144" => $tgRk_->id, "\160\x72\x69\143\x65" => $hc4bi, "\157\160\x74\x69\x6f\156\x5f\x64\145\x74\x61\151\x6c\163" => $O1lq9]; wkEIR: } S7fwt: foreach ($kNQ0b as $qpeGb) { $eMpjJ = !empty($qpeGb->price) ? $qpeGb->price : $hc4bi; $oOpew = []; foreach ($qpeGb->pricing as $aPPWy) { $GMFc_ = []; foreach ($aPPWy->options as $KaBqO) { $GMFc_[] = $KaBqO->product_option_id; aWel8: } avVen: $oOpew[] = ["\x69\144" => $aPPWy->id, "\x70\162\151\143\x65" => $aPPWy->price != '' && $aPPWy->price != null ? $aPPWy->price : $eMpjJ, "\157\x70\x74\x69\157\156\x73" => $GMFc_]; lToBi: } Ip2RE: $urj25[] = ["\x69\144" => $qpeGb->id, "\x70\x72\151\143\x65" => $eMpjJ, "\147\x72\x6f\x75\160\163" => $oOpew]; AFpds: } goto eaWnY; AZoBQ: foreach ($Nkwdp as $tgRk_) { ProductDetail::where("\151\x64", $tgRk_["\x69\x64"])->update(["\160\162\x69\x63\145" => $tgRk_["\160\162\x69\x63\145"]]); kuMwu: } rwrgr: goto zfnje; eaWnY: MPCtz: foreach ($urj25 as $tgRk_) { foreach ($tgRk_["\147\x72\x6f\165\160\163"] as $Yka0i) { $nNLwU = $Yka0i["\160\x72\151\x63\145"]; foreach ($Nkwdp as $Bpr73 => $rfaDx) { goto LgHQO; w8jzZ: SB24I: goto QwR8W; LgHQO: $wqey3 = true; foreach ($Yka0i["\x6f\x70\x74\x69\x6f\156\163"] as $avqfT) { if (in_array($avqfT, $rfaDx["\x6f\x70\164\x69\157\x6e\x5f\144\x65\x74\141\x69\x6c\x73"])) { goto CHU3H; } $wqey3 = false; CHU3H: BPzuC: } Un9Zo: goto Jm5te; Jm5te: if (!$wqey3) { goto hQU55; } $Nkwdp[$Bpr73]["\160\162\151\143\145"] = $nNLwU; hQU55: goto w8jzZ; QwR8W: } yAubh: TpwyT: } jSoAO: L2qve: } eSfIj: goto AZoBQ; yAGFj: $hc4bi = $stpwr->default_price; $Nkwdp = []; $urj25 = []; goto AyKua; zfnje: } private function combinations($lSlFt, $C8SEr = 0) { goto kZ4N7; WLTY1: if (!($C8SEr == count($lSlFt) - 1)) { goto rOF02; } return $lSlFt[$C8SEr]; rOF02: goto dWXDZ; TqeSm: tAhGO: return $TlB4L; goto ZhOMQ; kZ4N7: if (isset($lSlFt[$C8SEr])) { goto oe3V2; } return []; oe3V2: goto WLTY1; dWXDZ: $qz8Dn = $this->combinations($lSlFt, $C8SEr + 1); $TlB4L = []; foreach ($lSlFt[$C8SEr] as $jcNUr) { foreach ($qz8Dn as $TRk1y) { $TlB4L[] = is_array($TRk1y) ? array_merge([$jcNUr], $TRk1y) : [$jcNUr, $TRk1y]; vcnPa: } nxqlt: f1vBJ: } goto TqeSm; ZhOMQ: } private function randomSkuNumber($s46kR = 12) { goto aYiK3; kp2e1: if (!($C8SEr < $s46kR)) { goto YWLZK; } $TlB4L .= mt_rand(0, 9); hyafZ: goto Z3Jxd; aYiK3: $TlB4L = ''; $C8SEr = 0; LIk1X: goto kp2e1; Z3Jxd: $C8SEr++; goto LIk1X; YWLZK: goto sEDAS; sEDAS: return rand(1, 9) . $TlB4L; goto PY9cG; PY9cG: } }