<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:04
 namespace App\Http\Controllers; use App\Http\Resources\ProductItemDetailResource; use App\PricingRule; use App\PricingRuleDetail; use App\ProductBestSeller; use App\ProductDetail; use App\ProductDetailOptionDetail; use App\ProductRelate; use App\ProductReview; use App\UserQuotation; use App\UserQuotationConstruction; use App\UserQuotationOption; use Illuminate\Http\Request; use Illuminate\Support\Arr; use App\Http\Resources\ProductResource; use App\Http\Resources\ProductDetailResource; use App\Http\Resources\ProductRelateResource; use App\Http\Resources\ProductBestSellerResource; use App\Http\Resources\ReviewResource; use App\Product; use App\Category; use DB; class ProductController extends Controller { const ITEM_PER_PAGE = 25; public function index(Request $request) { goto F3CZ8; xPJ3W: $njK8T = $tYWjA; if (!($njK8T == null || $njK8T == '')) { goto cJ342; } $njK8T = $fQEtU; goto sl8nJ; sl8nJ: cJ342: if (empty($njK8T)) { goto IVlbY; } $qSJQG = Category::where("\x69\x64", $njK8T)->first(); goto qG9yz; AAOE9: IVlbY: oACSX: if (empty($c9n_6)) { goto pSZFx; } goto u0yyx; jfoR_: CObaw: $ogus3->orderBy("\162\x65\147\165\154\141\x72\137\160\162\x69\x63\145\x5f\146\162\x6f\155", "\x44\x45\x53\103"); mm5KP: goto LWD5h; F3CZ8: $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\x6c\x69\155\x69\164", static::ITEM_PER_PAGE); $g9hLk = Arr::get($Cuj4k, "\x6b\145\171\167\157\162\x64", ''); goto stcqm; Q6Toi: $H1bRC[] = $qSJQG->id; $ogus3->whereIn("\143\x61\164\145\x67\x6f\x72\171\137\151\144", $H1bRC); m16o3: goto AAOE9; LWD5h: return ProductResource::collection($ogus3->paginate($Bd1sQ)); goto TuwSx; cjGUq: $ogus3->where(function ($kP3hW) use($g9hLk) { $kP3hW->where("\x6e\x61\155\145", "\x4c\x49\113\105", "\45" . $g9hLk . "\45")->orWhere("\160\162\x69\x63\x65\137\x66\162\157\155", "\114\111\x4b\105", "\x25" . $g9hLk . "\x25")->orWhere("\x70\x72\x69\143\x65\x5f\164\157", "\x4c\111\113\105", "\45" . $g9hLk . "\45")->orWhere("\x64\x69\163\143\157\x75\156\x74", "\114\111\113\x45", "\45" . $g9hLk . "\45"); }); fsnEx: if (empty($iCwyu)) { goto tIfte; } goto fGJ2S; NapnB: $ogus3->where("\x70\x72\x69\143\x65\x5f\146\x72\x6f\155", "\74\75", $bgT9H); LOF53: if (!($ICaWO != '')) { goto NEqjy; } goto dTwyj; rX3ms: $JZh4v = Arr::get($Cuj4k, "\x6f\x72\x64\x65\x72\x42\171", ''); $ogus3 = Product::select("\52")->isPublished(); if (empty($g9hLk)) { goto fsnEx; } goto cjGUq; g4W00: if ($JZh4v == "\x70\x72\x69\x63\145\x5f\x64\x65\x73\143") { goto CObaw; } $ogus3->orderBy("\151\x64", "\104\x45\123\103"); goto mm5KP; goto mrzlO; OzJig: $iCwyu = Arr::get($Cuj4k, "\x6d\141\156\165\x66\141\143\x74\165\x72\145\162\111\144", ''); $c9n_6 = Arr::get($Cuj4k, "\160\x72\151\143\x65\x46\x72\157\x6d", ''); $bgT9H = Arr::get($Cuj4k, "\x70\x72\151\143\145\x54\x6f", ''); goto rX3ms; qG9yz: if (!isset($qSJQG)) { goto m16o3; } $uEuWH = Category::select("\151\144", "\160\x61\162\145\156\164\137\151\144")->where("\x69\144", "\x21\75", $qSJQG->parent_id)->where("\x69\x64", "\x21\75", $njK8T)->where("\160\141\x72\145\x6e\164\x5f\x69\144", "\x21\x3d", 0)->whereNotNull("\x70\141\162\145\x6e\164\x5f\x69\x64")->get(); $H1bRC = $this->detectChildCategoryId($uEuWH, $njK8T); goto Q6Toi; mrzlO: AD0Nq: $ogus3->orderBy("\162\x65\x67\165\154\141\x72\137\160\x72\x69\x63\145\x5f\146\162\157\x6d", "\101\x53\x43"); goto mm5KP; goto jfoR_; stcqm: $ICaWO = Arr::get($Cuj4k, "\x73\x74\141\164\165\x73", ''); $fQEtU = Arr::get($Cuj4k, "\x63\141\x74\145\x67\x6f\162\171\x49\144", ''); $tYWjA = Arr::get($Cuj4k, "\x73\x75\142\103\x61\164\145\x67\157\162\x79\x49\144", ''); goto OzJig; fGJ2S: $ogus3->where("\x6d\x61\156\165\x66\141\x63\164\165\162\145\162\137\151\x64", $iCwyu); tIfte: if (!(!empty($fQEtU) || !empty($tYWjA))) { goto oACSX; } goto xPJ3W; u0yyx: $ogus3->where("\160\162\x69\143\x65\137\x66\162\157\x6d", "\x3e\75", $c9n_6); pSZFx: if (empty($bgT9H)) { goto LOF53; } goto NapnB; dTwyj: $ogus3->where("\x69\x73\137\x61\143\x74\151\x76\x61\x74\145\x64", $ICaWO); NEqjy: if ($JZh4v == "\x70\x72\x69\x63\145\137\141\163\x63") { goto AD0Nq; } goto g4W00; TuwSx: } public function top(Request $request) { $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\x6c\151\x6d\151\164", static::ITEM_PER_PAGE); $ogus3 = Product::select("\x2a")->isPublished()->orderBy("\151\144", "\x44\x45\x53\103"); return ProductResource::collection($ogus3->paginate($Bd1sQ)); } public function show($mcWD0 = 0) { $koe5W = Product::select("\x2a")->isPublished()->where("\151\144", $mcWD0)->first(); if (isset($koe5W)) { goto oCm2o; } return response()->json(["\x64\141\x74\141" => null, "\145\162\162\157\162\163" => "\x50\162\157\x64\x75\x63\164\40\x69\163\40\151\156\x76\x61\x6c\151\144"], 200); oCm2o: return new ProductDetailResource($koe5W); } public function estimateCheck(Request $request, $mcWD0 = 0) { goto opioD; UH4LW: hJ3vK: $params = $request->all(); $siiCK = ''; goto u1v1g; opioD: $koe5W = Product::select("\x2a")->isPublished()->where("\151\x64", $mcWD0)->first(); if (isset($koe5W)) { goto hJ3vK; } return response()->json(["\144\141\164\x61" => null, "\x65\x72\162\x6f\162\163" => "\120\x72\x6f\x64\165\x63\164\40\x69\x73\x20\151\x6e\x76\x61\154\151\x64"], 200); goto UH4LW; u1v1g: foreach ($params["\157\x70\164\x69\157\156\x73"] as $i9PLh) { $siiCK .= $siiCK != '' ? "\x7c" . $i9PLh["\x76\x61\154\x75\145"] : $i9PLh["\x76\x61\154\x75\145"]; bQDld: } pt3qe: $QbJj0 = $this->base64url_encode($siiCK); goto hy1ID; hy1ID: $lgAfH = $this->updateProductDetail($koe5W, $QbJj0); return response()->json(["\x73\164\141\x74\165\x73" => $lgAfH ? "\163\165\x63\143\145\163\163" : "\x65\x72\162\x6f\162", "\144\141\164\x61" => ["\x69\x64" => null, "\143\157\144\x65" => $lgAfH ? $QbJj0 : null, "\160\x75\162\143\150\141\163\145\x5f\151\x64" => $params["\160\x75\x72\x63\150\141\x73\145\x5f\151\144"]]], 200); goto PoRRs; PoRRs: } public function estimateShow($mcWD0 = 0, $QbJj0 = '') { goto zOK_z; YnCj0: return response()->json(["\163\164\141\x74\x75\163" => "\x65\162\x72\x6f\x72", "\144\141\164\x61" => null, "\145\162\x72\157\x72\163" => "\x50\162\157\x64\165\143\164\40\x69\x73\40\x69\x6e\166\141\x6c\x69\x64"], 200); qgQzm: $FA1AJ = ProductDetail::where("\160\162\x6f\144\165\143\x74\x5f\x69\144", $mcWD0)->where("\143\157\x64\145", $QbJj0)->first(); goto bHhhD; mnb0Q: ffVd1: return new ProductItemDetailResource($FA1AJ); goto zqV4e; NHPFZ: $rklOQ = $rklOQ - $rklOQ * ($T2OiR / 100); twxKE: $rklOQ += $koe5W->shipping_cost; goto bPJfm; bHhhD: $rklOQ = (double) $FA1AJ->price; if (!($koe5W->discount != null && $koe5W->discount != '' && $koe5W->discount > 0)) { goto twxKE; } $T2OiR = (float) $koe5W->discount; goto NHPFZ; ka8VA: ewaGt: $lgAfH = $this->updateProductDetail($koe5W, $QbJj0); if ($lgAfH) { goto qgQzm; } goto YnCj0; zOK_z: $koe5W = Product::select("\52")->isPublished()->where("\x69\x64", $mcWD0)->first(); if (isset($koe5W)) { goto ewaGt; } return response()->json(["\163\164\x61\x74\x75\163" => "\x65\162\162\157\162", "\x64\x61\x74\x61" => null, "\145\x72\162\x6f\162\163" => "\x50\x72\x6f\x64\x75\143\x74\x20\x69\x73\x20\x69\156\x76\141\x6c\x69\x64"], 200); goto ka8VA; bPJfm: $rklOQ += $rklOQ * (10 / 100); if (!(!$FA1AJ || isset($FA1AJ) && $rklOQ <= 0)) { goto ffVd1; } return response()->json(["\x73\164\x61\164\x75\x73" => "\x65\x72\162\x6f\x72", "\x64\141\164\x61" => null, "\x65\162\162\x6f\162\x73" => "\120\x72\157\x64\x75\x63\x74\x20\x69\163\x20\151\x6e\166\x61\x6c\151\144"], 200); goto mnb0Q; zqV4e: } public function ranking(Request $request) { goto ZUjEc; aF2RY: foreach ($xPtAQ as $i9PLh) { foreach ($KTpRo as $USCAo) { if (!($USCAo->id == $i9PLh)) { goto Rp2Nh; } $tPwuv[] = $USCAo; goto u4a1A; Rp2Nh: jIJNM: } u4a1A: F03LG: } AAjJ0: $KTpRo = $tPwuv; goto xaKqD; T8911: foreach ($QUwuF as $i9PLh) { foreach ($h8J_v as $USCAo) { if (!($USCAo->id == $i9PLh)) { goto gKAcz; } $TChF6[] = $USCAo; goto GzzAy; gKAcz: uGNOZ: } GzzAy: tpqzG: } j7opo: $h8J_v = $TChF6; goto PiHyd; fDmFN: $GtXOA = ProductBestSeller::where("\x74\x79\x70\145", 3)->orderBy("\x70\x6f\x73\x69\164\151\157\156")->pluck("\x70\x72\x6f\x64\x75\143\x74\137\151\x64")->toArray(); $bPfqO = Product::select("\x69\x64", "\x63\141\x74\x65\x67\157\x72\171\x5f\x69\x64", "\156\x61\x6d\x65", "\x73\x6c\x75\147", "\163\x6b\x75", "\x64\151\163\x63\157\165\x6e\164", "\x64\145\x73\x63\162\151\160\x74\x69\157\156", "\151\x6d\141\x67\145", "\156\157\x74\x65", "\160\x6f\x6c\151\143\x79", "\160\x6f\x73\163\151\x62\x6c\x65\x5f\x64\145\x6c\x69\x76\145\x72\171\x5f\x74\x69\x6d\x65", "\x72\145\x67\165\x6c\x61\162\x5f\x70\x72\x69\x63\x65\x5f\x66\x72\x6f\x6d", "\x72\x65\x67\x75\x6c\x61\162\x5f\x70\x72\151\x63\145\137\164\x6f", "\160\162\x69\143\145\137\x66\162\x6f\x6d", "\160\162\x69\143\x65\137\x74\x6f")->isPublished()->whereIn("\x69\x64", $GtXOA)->orderBy("\151\x64", "\x44\105\x53\x43")->limit(12)->get(); $OZtd1 = []; goto ifmDw; UR1bX: foreach ($Sbt65 as $i9PLh) { foreach ($zecoC as $USCAo) { if (!($USCAo->id == $i9PLh)) { goto nf_v3; } $vnbSN[] = $USCAo; goto t8hUz; nf_v3: u8F7y: } t8hUz: rmkYW: } BoRBW: $zecoC = $vnbSN; goto fDmFN; vPSYi: return response()->json(["\x64\x61\x74\x61" => ["\x6c\151\163\164\x5f\61" => $KTpRo, "\x6c\151\163\164\137\x32" => $h8J_v, "\x6c\151\x73\164\x5f\x33" => $zecoC, "\x6c\151\163\164\137\64" => $bPfqO]], 200); goto cx01t; xaKqD: $QUwuF = ProductBestSeller::where("\164\171\160\x65", 1)->orderBy("\160\x6f\163\x69\x74\x69\157\x6e")->pluck("\x70\x72\157\144\x75\x63\164\137\151\144")->toArray(); $h8J_v = Product::select("\151\x64", "\143\x61\164\x65\147\157\x72\171\137\151\x64", "\156\141\x6d\x65", "\163\154\x75\147", "\x73\153\x75", "\x64\151\163\x63\157\165\156\x74", "\x64\145\163\143\162\x69\x70\x74\x69\157\156", "\x69\155\x61\147\145", "\156\157\x74\145", "\160\x6f\x6c\151\x63\171", "\160\157\x73\163\151\142\x6c\x65\137\x64\145\x6c\x69\x76\145\x72\x79\137\x74\151\x6d\145", "\x72\x65\147\165\154\141\x72\x5f\x70\162\151\x63\145\137\146\x72\x6f\155", "\x72\x65\147\165\154\x61\162\x5f\x70\x72\151\143\x65\137\164\x6f", "\x70\162\x69\143\x65\137\x66\162\157\155", "\x70\x72\151\143\145\x5f\x74\x6f")->with("\143\x61\x74\145\x67\x6f\162\x79")->isPublished()->whereIn("\x69\x64", $QUwuF)->orderBy("\151\144", "\104\105\x53\x43")->limit(12)->get(); $TChF6 = []; goto T8911; ifmDw: foreach ($GtXOA as $i9PLh) { foreach ($bPfqO as $USCAo) { if (!($USCAo->id == $i9PLh)) { goto ZUq2Q; } $OZtd1[] = $USCAo; goto rpuKG; ZUq2Q: NWI55: } rpuKG: oE1Qz: } msczF: $bPfqO = $OZtd1; goto vPSYi; PiHyd: $Sbt65 = ProductBestSeller::where("\164\171\160\x65", 2)->orderBy("\160\x6f\x73\x69\x74\x69\157\x6e")->pluck("\x70\162\x6f\144\x75\x63\x74\137\x69\x64")->toArray(); $zecoC = Product::select("\151\144", "\143\x61\164\145\x67\x6f\x72\x79\137\151\x64", "\156\x61\x6d\145", "\x73\x6c\165\x67", "\x73\x6b\x75", "\x64\151\163\143\157\165\x6e\x74", "\x64\x65\x73\x63\x72\x69\x70\164\x69\157\156", "\151\155\x61\x67\145", "\156\157\164\x65", "\x70\157\154\151\x63\171", "\x70\x6f\x73\163\151\x62\x6c\x65\137\x64\x65\x6c\x69\166\x65\162\x79\x5f\164\151\x6d\145", "\x72\145\147\165\154\141\x72\137\160\x72\151\x63\145\137\146\x72\157\x6d", "\x72\x65\x67\x75\154\x61\162\137\160\x72\151\x63\145\137\x74\x6f", "\x70\162\x69\x63\x65\137\146\x72\157\x6d", "\x70\x72\151\x63\145\x5f\164\x6f")->isPublished()->whereIn("\x69\144", $Sbt65)->orderBy("\x69\x64", "\104\x45\x53\103")->limit(12)->get(); $vnbSN = []; goto UR1bX; ZUjEc: $xPtAQ = ProductBestSeller::where("\164\171\x70\145", 0)->orderBy("\x70\x6f\163\x69\164\x69\x6f\156")->pluck("\160\x72\x6f\144\x75\x63\164\x5f\x69\144")->toArray(); $KTpRo = Product::select("\x69\144", "\x63\x61\164\145\147\157\x72\x79\137\151\x64", "\x6e\x61\155\145", "\x73\x6c\165\x67", "\163\153\x75", "\144\151\163\x63\x6f\165\x6e\x74", "\x64\145\x73\x63\x72\x69\x70\164\151\x6f\156", "\x69\x6d\x61\x67\145", "\x6e\x6f\x74\145", "\x70\157\x6c\151\143\x79", "\x70\x6f\163\x73\x69\142\154\145\137\x64\145\154\151\166\145\x72\x79\137\164\151\x6d\x65", "\x72\145\147\165\x6c\x61\x72\x5f\x70\162\x69\143\x65\137\146\x72\157\x6d", "\x72\x65\x67\x75\x6c\x61\x72\137\160\162\151\143\145\137\164\x6f", "\x70\x72\x69\143\145\137\x66\x72\x6f\x6d", "\160\162\151\143\145\x5f\164\x6f")->isPublished()->whereIn("\151\x64", $xPtAQ)->orderBy("\x69\x64", "\x44\x45\x53\103")->limit(6)->get(); $tPwuv = []; goto aF2RY; cx01t: } public function rankingCategory(Request $request, $mcWD0 = 0) { $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\154\x69\x6d\151\164", static::ITEM_PER_PAGE); $ogus3 = ProductBestSeller::where("\x74\171\x70\145", 4)->where("\143\141\164\145\147\x6f\x72\171\137\151\144", $mcWD0)->orderBy("\160\x6f\163\151\x74\151\157\156"); return ProductBestSellerResource::collection($ogus3->paginate($Bd1sQ)); } public function rankingManufacturer(Request $request, $mcWD0 = 0) { $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\154\151\x6d\x69\x74", static::ITEM_PER_PAGE); $ogus3 = ProductBestSeller::where("\164\x79\160\145", 5)->where("\155\141\x6e\165\x66\x61\x63\x74\x75\162\145\162\x5f\x69\x64", $mcWD0)->orderBy("\x70\x6f\x73\x69\164\151\x6f\156"); return ProductBestSellerResource::collection($ogus3->paginate($Bd1sQ)); } public function rankingCategoryAuto(Request $request, $mcWD0 = 0) { goto g9fTl; mL31x: $ogus3->whereIn("\160\162\x6f\x64\165\143\x74\163\x2e\x63\141\164\x65\147\x6f\x72\171\137\151\144", $H1bRC); P233V: QqK6_: goto E_WFB; eX6a8: if (!($mcWD0 != null && $mcWD0 != '' && $mcWD0 != 0)) { goto QqK6_; } $qSJQG = Category::where("\151\x64", $mcWD0)->first(); if (!isset($qSJQG)) { goto P233V; } goto VNKT8; E_WFB: $ogus3->orderBy("\164\157\x74\x61\154\x5f\x73\x61\154\x65", "\104\x45\x53\103")->orderBy("\x70\x72\x6f\144\x75\x63\164\163\56\x69\x64", "\x41\123\x43"); return ProductResource::collection($ogus3->paginate($Bd1sQ)); goto yC8af; g9fTl: $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\154\x69\155\x69\x74", static::ITEM_PER_PAGE); $ogus3 = Product::select("\160\x72\157\144\x75\x63\164\x73\x2e\x2a", DB::raw("\x63\157\165\156\x74\x28\160\x72\157\x64\165\x63\164\163\56\x69\144\x29\40\141\x73\40\164\x6f\164\x61\154\x5f\x73\141\154\x65"))->join("\x6f\x72\x64\145\162\137\x64\x65\164\x61\151\x6c\163", "\157\x72\x64\145\x72\137\144\x65\164\141\x69\x6c\163\56\x70\x72\x6f\x64\165\x63\164\x5f\x69\144", "\75", "\x70\162\x6f\144\x75\x63\x74\x73\x2e\x69\x64")->where("\x70\162\157\x64\x75\x63\164\x73\x2e\x69\x73\137\144\145\x6c\145\164\145\x64", false)->where("\160\x72\157\144\165\x63\164\163\56\x69\x73\137\x61\x63\164\x69\x76\141\x74\145\x64", true)->groupBy("\x70\x72\157\x64\x75\143\164\x73\56\x69\x64"); goto eX6a8; VNKT8: $uEuWH = Category::select("\x69\x64", "\160\x61\x72\145\x6e\164\x5f\151\144")->where("\x69\x64", "\41\75", $qSJQG->parent_id)->where("\x69\x64", "\41\75", $mcWD0)->where("\x70\141\x72\x65\156\x74\137\x69\x64", "\41\75", 0)->whereNotNull("\160\x61\x72\x65\156\x74\x5f\151\144")->get(); $H1bRC = $this->detectChildCategoryId($uEuWH, $mcWD0); $H1bRC[] = $qSJQG->id; goto mL31x; yC8af: } public function rankingManufacturerAuto(Request $request, $mcWD0 = 0) { $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\154\x69\x6d\x69\164", static::ITEM_PER_PAGE); $ogus3 = Product::select("\52")->isPublished()->where("\155\x61\x6e\x75\x66\141\x63\x74\x75\162\x65\162\x5f\x69\144", $mcWD0)->whereNotNull("\x72\x61\x6e\x6b")->orderBy("\x72\x61\x6e\x6b", "\104\105\123\x43")->orderBy("\x75\160\x64\141\164\145\x64\x5f\x61\x74", "\104\105\123\x43"); return ProductResource::collection($ogus3->paginate($Bd1sQ)); } public function relate(Request $request) { $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\x6c\151\155\x69\164", static::ITEM_PER_PAGE); $mcWD0 = Arr::get($Cuj4k, "\151\x64", 0); $ogus3 = ProductRelate::where("\160\x72\x6f\144\x75\x63\164\x5f\151\x64", $mcWD0)->orderBy("\151\x64"); return ProductRelateResource::collection($ogus3->paginate($Bd1sQ)); } public function history(Request $request) { $Cuj4k = $request->all(); $Bd1sQ = Arr::get($Cuj4k, "\x6c\x69\155\151\164", static::ITEM_PER_PAGE); $Ixie7 = Arr::get($Cuj4k, "\151\x64\x73", []); $OyX9T = Arr::get($Cuj4k, "\x69\147\x6e\157\162\145\111\x64", 0); $ogus3 = Product::select("\x2a")->isPublished()->whereIn("\x69\x64", $Ixie7)->where("\151\144", "\x21\x3d", $OyX9T)->orderBy("\151\144"); return ProductResource::collection($ogus3->paginate($Bd1sQ)); } private function detectChildCategoryId($ogus3 = [], $fQEtU = '') { $H1bRC = []; foreach ($ogus3 as $i9PLh) { if (!($i9PLh->parent_id == $fQEtU)) { goto mfteK; } $H1bRC[] = $i9PLh->id; $GcRfG = $this->detectChildCategoryId($ogus3, $i9PLh->id); $H1bRC = array_merge($H1bRC, $GcRfG); mfteK: OBd5X: } JMcbT: return $H1bRC; } private function base64url_encode($l3jGL) { return rtrim(strtr(base64_encode($l3jGL), "\53\57", "\x2d\137"), "\75"); } private function base64url_decode($l3jGL) { return base64_decode(str_pad(strtr($l3jGL, "\55\137", "\x2b\x2f"), strlen($l3jGL) % 4, "\x3d", STR_PAD_RIGHT)); } private function combinations($S3gce, $HH50Q = 0) { goto Z1wAo; Q0Q4Z: $G_S6U = $this->combinations($S3gce, $HH50Q + 1); $OgH_l = array(); foreach ($S3gce[$HH50Q] as $zHhRR) { foreach ($G_S6U as $T5Es1) { $OgH_l[] = is_array($T5Es1) ? array_merge(array($zHhRR), $T5Es1) : array($zHhRR, $T5Es1); k4kcQ: } MBSyf: lKQ8B: } goto uNhoS; RDijN: if (!($HH50Q == count($S3gce) - 1)) { goto hRa4G; } return $S3gce[$HH50Q]; hRa4G: goto Q0Q4Z; Z1wAo: if (isset($S3gce[$HH50Q])) { goto H1Mzh; } return array(); H1Mzh: goto RDijN; uNhoS: mncgS: return $OgH_l; goto E04Zu; E04Zu: } private function updateProductDetail(Product $koe5W, $QbJj0) { goto uPTI_; I1ulu: YIFjz: $rQ0uB = (float) $koe5W->discount_core; $o_vWv = $ySCAd["\160\162\x69\x63\x65"]; goto Urv1y; LdbqU: $ySCAd["\x70\x72\x69\x63\145"] = (double) $ySCAd["\x70\x72\151\x63\x65"]; $rklOQ = $ySCAd["\160\162\x69\143\x65"]; if (!($rklOQ <= 0)) { goto apXlC; } goto HgXGA; hNE27: KNuV_: $FA1AJ = ProductDetail::where("\160\x72\x6f\x64\x75\x63\164\x5f\151\144", $koe5W->id)->where("\x63\157\144\x65", $QbJj0)->first(); if (!($FA1AJ && ($rklOQ <= 0 || $o_vWv <= 0))) { goto SemCt; } goto YwyOF; dBaq3: $e68ad = null; foreach ($GCUnm as $bJiLg) { goto iE7_P; VKuHw: if ($e68ad == null) { goto rkx8x; } $e68ad += $bJiLg["\160\x72\151\143\145"]; goto SvSvS; goto AS6IT; T5Zam: goto s2hM7; N1e46: $e68ad = $bJiLg["\x73\165\x62\120\x72\151\143\145"]["\160\x72\151\143\145"]; goto IqVOt; Kdh2_: gzHx7: if ($e68ad == null) { goto N1e46; } $e68ad += $bJiLg["\x73\165\142\120\x72\151\x63\x65"]["\160\x72\x69\x63\x65"]; goto T5Zam; s_D4S: S8qjf: wannz: goto K71MI; IqVOt: s2hM7: goto S8qjf; sJcpO: goto VKuHw; iE7_P: if (isset($bJiLg["\163\x75\x62\x50\162\x69\x63\145"]) && isset($bJiLg["\163\x75\x62\x50\162\x69\x63\145"]["\160\162\151\x63\145"]) && $bJiLg["\163\165\x62\x50\x72\x69\x63\145"]["\x70\x72\151\143\145"] != null && $bJiLg["\x73\x75\142\x50\x72\151\143\145"]["\160\162\151\x63\x65"] != '') { goto gzHx7; } if (isset($bJiLg["\x70\162\x69\143\x65"]) && $bJiLg["\160\x72\x69\x63\x65"] != null && $bJiLg["\160\x72\x69\x63\145"] != '') { goto sJcpO; } goto S8qjf; goto Kdh2_; AS6IT: rkx8x: $e68ad = $bJiLg["\160\162\151\x63\145"]; SvSvS: goto s_D4S; K71MI: } vxgsk: goto D3CGJ; QAMlk: kNn_9: if (!($koe5W->type == 1 && $rklOQ <= 0)) { goto Ed42A; } $rklOQ = 1; goto TbIE5; uPTI_: $a2k6V = $this->base64url_decode($QbJj0); $tHuSe = explode("\174", $a2k6V); $STt9G = $koe5W->default_price; goto PkRKj; HgXGA: ProductDetail::where("\160\x72\157\144\x75\x63\x74\x5f\x69\x64", $koe5W->id)->where("\x63\157\x64\145", $QbJj0)->delete(); return false; apXlC: goto S2a_C; QCWLy: SemCt: if (!$FA1AJ) { goto EIbci; } $FA1AJ->update($ySCAd); goto d4SuF; D3CGJ: $zE7Ux = $e68ad != null ? $e68ad : $STt9G; $ySCAd["\160\162\x69\143\145"] = (double) $zE7Ux; hR_rL: goto LdbqU; Urv1y: $o_vWv = $o_vWv - $o_vWv / 100 * $rQ0uB; $o_vWv += $koe5W->shipping_cost; $o_vWv += $o_vWv / 100 * 10; goto hNE27; rQR0F: $FA1AJ = ProductDetail::create($ySCAd); lRbCE: ProductDetailOptionDetail::where("\x70\162\x6f\144\165\x63\x74\137\144\145\x74\141\151\x6c\x5f\x69\144", $FA1AJ->id)->delete(); goto UJsSO; S2a_C: if (!($koe5W->discount != null && $koe5W->discount != '' && $koe5W->discount > 0)) { goto kNn_9; } $T2OiR = (float) $koe5W->discount; $rklOQ = $rklOQ - $rklOQ / 100 * $T2OiR; goto QAMlk; ZRJNf: $GCUnm = []; foreach ($TsYis as $gRow1) { $w0vxt = PricingRuleDetail::with("\x6f\x70\x74\151\157\156\x73")->where("\160\162\x69\143\151\156\x67\x5f\162\165\154\x65\x5f\x69\144", $gRow1["\151\144"])->get(); foreach ($w0vxt as $mbiJE) { goto nbKD8; uvb71: $l2xaW = !array_diff($S4PjA, $tHuSe); if (!$l2xaW) { goto wiplq; } $gRow1["\163\165\142\x50\x72\151\143\x65"] = ["\147\x72\x6f\165\x70\x73" => $S4PjA, "\160\162\151\143\145" => $mbiJE->price]; goto cX5Tq; cX5Tq: goto erie5; wiplq: kqYj9: goto ZH2ZE; nbKD8: $S4PjA = []; foreach ($mbiJE->options as $kPGdC) { $S4PjA[] = $kPGdC->product_option_detail_id; wvm5W: } ZQQtz: goto uvb71; ZH2ZE: } erie5: $GCUnm[] = $gRow1; ZfprI: } Uoz1k: goto dBaq3; UJsSO: foreach ($tHuSe as $pK5An) { ProductDetailOptionDetail::create(["\x70\162\157\x64\165\x63\x74\x5f\x64\145\164\141\x69\x6c\x5f\x69\x64" => $FA1AJ->id, "\x70\162\x6f\144\x75\143\x74\137\x6f\160\164\x69\157\x6e\137\x64\x65\x74\141\x69\154\x5f\x69\x64" => $pK5An, "\143\x72\x65\x61\164\x65\144\137\141\x74" => date("\131\x2d\x6d\x2d\144\40\x48\x3a\151\x3a\163"), "\x75\x70\x64\x61\x74\145\144\x5f\x61\x74" => date("\x59\x2d\155\x2d\144\x20\x48\x3a\x69\x3a\x73")]); COjhf: } lgc_q: return true; goto gbb9C; HM3Op: $mbMpp = []; foreach ($N7Dj_ as $i9PLh) { $IcR_S = []; $JTlGw = []; foreach ($i9PLh->detail as $ocGBq) { goto tHRVG; xXC4m: u4a2y: goto HzAxZ; X8I32: foreach ($ocGBq->option->details as $SEn11) { $HdDjy[] = $SEn11->id; a9Iiu: } ky4Tu: goto sxRDx; goto r_6qO; r_6qO: hIYo6: $HdDjy[] = $ocGBq->option_detail_id; sxRDx: goto zH3Ad; tHRVG: $IcR_S[] = $ocGBq->option_id; $HdDjy = []; if ($ocGBq->option_detail_id != null && $ocGBq->option_detail_id != '') { goto hIYo6; } goto X8I32; zH3Ad: if (!(count($HdDjy) > 0)) { goto hg6qY; } $JTlGw[] = $HdDjy; hg6qY: goto xXC4m; HzAxZ: } kqysd: $mbMpp[] = ["\x69\x64" => $i9PLh->id, "\160\x72\151\x63\145" => $i9PLh->price, "\157\x70\164\151\157\x6e\x73" => $IcR_S, "\157\x70\164\x69\157\156\104\x65\164\x61\151\154\163" => $JTlGw]; c7sLk: } bdN8n: goto adM6i; YwyOF: ProductDetailOptionDetail::where("\x70\x72\157\144\165\x63\x74\x5f\144\x65\164\x61\151\154\x5f\151\144", $FA1AJ->id)->delete(); $FA1AJ->delete(); return false; goto QCWLy; PkRKj: $N7Dj_ = PricingRule::with("\144\x65\x74\x61\151\x6c")->where("\160\x72\157\x64\165\143\164\137\151\x64", $koe5W->id)->orderBy("\143\x72\145\x61\164\x65\x64\137\x61\164")->get(); $ySCAd = ["\x70\x72\x6f\x64\x75\143\x74\x5f\151\x64" => $koe5W->id, "\x73\153\x75" => $koe5W->sku . "\137" . str_replace("\x7c", "\x5f", $a2k6V), "\x73\x6c\165\x67" => $koe5W->sku . "\x5f" . str_replace("\x7c", "\137", $a2k6V), "\x63\x6f\x64\145" => $QbJj0, "\160\x72\151\x63\145" => $STt9G, "\160\157\163\151\164\x69\157\156" => 0, "\151\x73\x5f\141\143\x74\x69\166\141\164\x65\x64" => 1, "\165\x70\x64\x61\x74\x65\144\137\141\164" => date("\131\55\155\55\144\40\x48\x3a\x69\72\x73")]; if (!($N7Dj_->count() > 0)) { goto hR_rL; } goto HM3Op; d4SuF: goto lRbCE; EIbci: $ySCAd["\x63\162\145\x61\x74\x65\x64\x5f\141\x74"] = date("\131\x2d\155\55\144\40\110\72\x69\x3a\163"); goto rQR0F; aOKX1: if ($koe5W->discount_core != null && $koe5W->discount_core != '' && $koe5W->discount_core > 0 && $koe5W->discount != $koe5W->discount_core) { goto YIFjz; } $o_vWv = $rklOQ; goto KNuV_; goto I1ulu; TbIE5: Ed42A: $rklOQ += $koe5W->shipping_cost; $rklOQ += $rklOQ / 100 * 10; goto aOKX1; adM6i: $TsYis = []; foreach ($mbMpp as $s45ht => $i9PLh) { goto dA_2f; hylFU: chJmp: if (!(count($xJXAb) > 0)) { goto pALme; } $TsYis[] = ["\x69\x64" => $i9PLh["\x69\x64"], "\160\x72\151\x63\145" => $i9PLh["\160\x72\x69\143\x65"], "\x67\x72\157\x75\x70\163" => $xJXAb, "\163\165\x62\x50\162\151\143\x65" => null]; goto FMUty; dA_2f: $fc7xz = $this->combinations($i9PLh["\157\160\x74\x69\157\156\104\x65\x74\141\x69\154\x73"]); $xJXAb = []; foreach ($fc7xz as $mW85h => $clq5c) { goto z6Usd; o3DHq: $l2xaW = !array_diff($clq5c, $tHuSe); if (!$l2xaW) { goto zscto; } $xJXAb = $clq5c; goto pxISk; z6Usd: if (is_array($clq5c)) { goto bDAxB; } $clq5c = [$clq5c]; bDAxB: goto o3DHq; pxISk: zscto: bJ6MI: goto vaMNO; vaMNO: } goto hylFU; FMUty: pALme: dh2yl: goto jviIz; jviIz: } sY7Gf: goto ZRJNf; gbb9C: } private function updateProductDetailBk(Product $koe5W, $QbJj0) { goto BWf1j; GtpKS: $rklOQ += $koe5W->shipping_cost; $rklOQ += $rklOQ * (10 / 100); if (!($rklOQ <= 0)) { goto M_ohI; } goto pQRap; xurnx: $zE7Ux = $GCUnm["\160\x72\x69\x63\145"]; GtgYz: if (!(isset($GCUnm["\x73\x75\142\120\162\x69\143\145"]) && isset($GCUnm["\x73\x75\x62\120\162\x69\x63\145"]["\x70\162\x69\143\x65"]) && $GCUnm["\x73\x75\x62\x50\x72\x69\143\x65"]["\160\x72\151\143\x65"] != '')) { goto s9m8f; } goto lCXfj; JGwub: M_ohI: $FA1AJ = ProductDetail::where("\x70\x72\157\x64\165\x63\x74\137\x69\144", $koe5W->id)->where("\x63\x6f\144\x65", $QbJj0)->first(); if (!$FA1AJ) { goto Jnkot; } goto ucdCo; ucdCo: $FA1AJ->update($ySCAd); goto tEZcR; Jnkot: goto FABAg; VJBIg: $T2OiR = (float) $koe5W->discount; $rklOQ = $rklOQ - $rklOQ * ($T2OiR / 100); kuAfG: goto GtpKS; r141P: ProductDetailOptionDetail::where("\x70\162\x6f\144\x75\143\164\137\144\145\x74\141\x69\154\x5f\x69\144", $FA1AJ->id)->delete(); foreach ($tHuSe as $pK5An) { ProductDetailOptionDetail::create(["\x70\x72\x6f\x64\x75\143\164\x5f\x64\x65\x74\x61\151\x6c\137\x69\144" => $FA1AJ->id, "\160\x72\157\x64\165\143\x74\x5f\157\160\164\151\x6f\x6e\137\144\x65\x74\141\151\x6c\137\151\x64" => $pK5An, "\x63\162\145\141\x74\145\144\x5f\x61\x74" => date("\x59\x2d\x6d\x2d\144\40\x48\72\x69\72\x73"), "\165\160\144\141\164\145\x64\137\141\x74" => date("\131\x2d\155\55\x64\x20\110\72\151\72\163")]); ygtXG: } B1CoM: goto StuHH; lCXfj: $zE7Ux = $GCUnm["\163\x75\142\120\162\x69\143\145"]["\x70\162\x69\143\145"]; s9m8f: $ySCAd["\160\162\151\x63\145"] = (double) $zE7Ux; goto pDA1e; FABAg: $ySCAd["\143\162\x65\x61\164\x65\144\137\x61\164"] = date("\131\x2d\155\55\144\x20\110\72\151\x3a\163"); $FA1AJ = ProductDetail::create($ySCAd); tEZcR: goto r141P; D6Ffx: $N7Dj_ = PricingRule::with("\144\145\x74\141\x69\x6c")->where("\160\162\x6f\144\x75\143\164\137\x69\144", $koe5W->id)->orderBy("\143\x72\145\x61\164\145\144\137\x61\164")->get(); $ySCAd = ["\x70\162\x6f\144\x75\143\164\137\x69\x64" => $koe5W->id, "\163\153\x75" => $koe5W->sku . "\x5f" . str_replace("\x7c", "\x5f", $a2k6V), "\163\154\x75\x67" => $koe5W->sku . "\137" . str_replace("\174", "\137", $a2k6V), "\x63\x6f\x64\x65" => $QbJj0, "\x70\x72\151\x63\145" => $STt9G, "\160\x6f\163\x69\164\x69\x6f\156" => 0, "\x69\x73\137\141\x63\x74\x69\166\141\x74\x65\x64" => 1, "\x75\x70\144\x61\x74\x65\x64\x5f\141\x74" => date("\131\55\155\x2d\x64\40\110\x3a\151\x3a\163")]; if (!($N7Dj_->count() > 0)) { goto ui24t; } goto zc0a1; pQRap: $KUIFt = ProductDetail::where("\160\x72\157\x64\165\x63\164\137\151\x64", $koe5W->id)->where("\143\157\144\145", $QbJj0)->first(); if (!$KUIFt) { goto A4CTr; } ProductDetailOptionDetail::where("\x70\x72\x6f\144\x75\x63\164\x5f\144\x65\x74\141\x69\x6c\x5f\x69\144", $KUIFt->id)->delete(); goto q64Fr; JVsx6: $TsYis = []; foreach ($mbMpp as $s45ht => $i9PLh) { goto BLTUn; BLTUn: $fc7xz = $this->combinations($i9PLh["\x6f\x70\164\151\157\156\104\145\164\x61\151\154\163"]); $xJXAb = []; foreach ($fc7xz as $mW85h => $clq5c) { try { goto wfwIB; iuAt2: $l2xaW = !array_diff($clq5c, $tHuSe); if (!$l2xaW) { goto bH2qX; } $xJXAb = $clq5c; goto zcvY9; zcvY9: bH2qX: goto ir4Dg; wfwIB: if (is_array($clq5c)) { goto nVTi1; } $clq5c = [$clq5c]; nVTi1: goto iuAt2; ir4Dg: } catch (\Exception $LjoMF) { logger($LjoMF->getMessage()); } EeXNt: } goto xifSp; xifSp: r0Tof: if (!(count($xJXAb) > 0)) { goto bnuF9; } $TsYis[] = ["\151\144" => $i9PLh["\151\144"], "\x70\x72\151\143\145" => $i9PLh["\x70\x72\151\x63\x65"], "\x67\162\157\x75\x70\x73" => $xJXAb, "\163\x75\142\x50\162\151\x63\x65" => null]; goto x9_5W; x9_5W: bnuF9: TbSrj: goto boW0K; boW0K: } m9Wn2: goto MdjUi; q64Fr: $KUIFt->delete(); A4CTr: return false; goto JGwub; MdjUi: $GCUnm = []; if (!(count($TsYis) > 0)) { goto RSsk5; } $GCUnm = $TsYis[count($TsYis) - 1]; goto TzT6j; TzT6j: $w0vxt = PricingRuleDetail::with("\x6f\x70\164\x69\157\156\x73")->where("\160\x72\151\143\151\156\x67\x5f\x72\165\154\x65\137\151\x64", $GCUnm["\151\x64"])->get(); foreach ($w0vxt as $mbiJE) { goto Tb3yo; Tb3yo: $S4PjA = []; foreach ($mbiJE->options as $kPGdC) { $S4PjA[] = $kPGdC->product_option_detail_id; HPObf: } zWPmM: goto Nxxux; Nxxux: $l2xaW = !array_diff($S4PjA, $tHuSe); if (!$l2xaW) { goto GyPOq; } $GCUnm["\163\165\142\x50\x72\151\143\145"] = ["\x67\162\x6f\165\160\x73" => $S4PjA, "\x70\162\x69\143\145" => $mbiJE->price]; goto QWa5N; QWa5N: goto ryV6J; GyPOq: vJml2: goto R0ewE; R0ewE: } ryV6J: goto IeVMw; StuHH: return true; goto NjPq9; pDA1e: ui24t: $rklOQ = (double) $ySCAd["\x70\162\151\143\x65"]; if (!($koe5W->discount != null && $koe5W->discount != '' && $koe5W->discount > 0)) { goto kuAfG; } goto VJBIg; zc0a1: $mbMpp = []; foreach ($N7Dj_ as $i9PLh) { $IcR_S = []; $JTlGw = []; foreach ($i9PLh->detail as $ocGBq) { goto vwASf; nqlsj: foreach ($ocGBq->option->details as $SEn11) { $HdDjy[] = $SEn11->id; VZcyK: } njvIt: goto do1R8; goto mkJzn; gIq5w: b_ufG: goto APA5z; mkJzn: N8U1E: $HdDjy[] = $ocGBq->option_detail_id; do1R8: goto sGieZ; vwASf: $IcR_S[] = $ocGBq->option_id; $HdDjy = []; if ($ocGBq->option_detail_id != null && $ocGBq->option_detail_id != '') { goto N8U1E; } goto nqlsj; sGieZ: if (!(count($HdDjy) > 0)) { goto Wke4X; } $JTlGw[] = $HdDjy; Wke4X: goto gIq5w; APA5z: } aAmA4: $mbMpp[] = ["\151\x64" => $i9PLh->id, "\160\x72\151\x63\x65" => $i9PLh->price, "\x6f\160\164\x69\x6f\156\163" => $IcR_S, "\157\160\164\151\x6f\156\x44\x65\164\x61\151\154\163" => $JTlGw]; h3PSZ: } cFYBs: goto JVsx6; BWf1j: $a2k6V = $this->base64url_decode($QbJj0); $tHuSe = explode("\x7c", $a2k6V); $STt9G = $koe5W->default_price; goto D6Ffx; IeVMw: RSsk5: $zE7Ux = $STt9G; if (!(isset($GCUnm["\x70\x72\151\x63\x65"]) && $GCUnm["\160\162\x69\143\145"] != '')) { goto GtgYz; } goto xurnx; NjPq9: } public function review(Request $request, $mcWD0 = 0) { goto WlGZo; hE9un: if ($koe5W) { goto IHBjH; } return response()->json(["\x65\x72\x72\157\x72" => "\xe3\x81\x93\xe3\201\256\xe5\x95\206\xe5\x93\x81\343\201\257\xe5\xad\x98\345\234\xa8\343\x81\227\xe3\x81\xbe\343\201\233\xe3\202\x93\343\x80\202"], 403); IHBjH: goto K9A15; WlGZo: $params = $request->all(); $Bd1sQ = Arr::get($params, "\154\151\155\x69\x74", static::ITEM_PER_PAGE); $koe5W = Product::isPublished()->where("\151\x64", $mcWD0)->first(); goto hE9un; K9A15: $ogus3 = ProductReview::isPublished()->where("\x70\141\162\145\x6e\164\x5f\151\144", 0)->where("\160\x72\x6f\x64\165\143\x74\137\x69\x64", $koe5W->id)->orderBy("\151\x64"); return ReviewResource::collection($ogus3->paginate($Bd1sQ)); goto BB1B7; BB1B7: } public function estimateSave(Request $request, $mcWD0 = 0) { goto bTrfv; gtRsD: if (isset($FA1AJ)) { goto OY_1c; } return response()->json(["\x73\164\141\164\x75\163" => "\145\x72\x72\x6f\162", "\143\x6f\144\145" => null, "\155\145\163\x73\141\x67\x65" => "\124\x68\145\40\157\160\x74\151\157\156\163\x20\x61\162\x65\40\151\x6e\166\x61\154\x69\144"], 200); OY_1c: goto ZXhR4; idlnD: aBfCk: foreach ($params["\x63\x6f\x6e\x73\164\x72\x75\x63\x74\x69\157\156\x5f\143\157\163\x74"] as $i9PLh) { UserQuotationConstruction::create(["\165\x73\x65\x72\137\x71\165\157\164\x61\164\151\157\156\137\151\144" => $Ds1NA->id, "\143\x6f\156\163\164\x72\165\143\x74\x69\x6f\156\137\151\x64" => $i9PLh["\151\x64"], "\x6e\x61\x6d\145" => $i9PLh["\156\x61\155\145"], "\x70\162\151\143\145" => $i9PLh["\x70\162\151\x63\x65"], "\160\x72\157\144\165\x63\164\137\157\x70\x74\151\x6f\x6e\137\x64\x65\164\141\151\154\137\151\144" => $i9PLh["\x70\162\157\x64\165\x63\164\137\x6f\x70\164\x69\157\x6e\137\144\x65\164\x61\x69\154\137\151\144"], "\143\x72\x65\141\164\x65\x64\x5f\x61\164" => date("\131\x2d\155\x2d\144\40\110\72\x69\72\x73"), "\165\x70\x64\x61\x74\x65\144\137\x61\164" => date("\131\55\155\x2d\144\x20\x48\72\151\72\x73")]); n3atA: } UBDDz: goto OLbP1; sBzG9: $params = $request->all(); $koe5W = Product::select("\x2a")->isPublished()->where("\x69\x64", $mcWD0)->first(); if (isset($koe5W)) { goto hkkE7; } goto NWfWh; OLbP1: return response()->json(["\x73\164\x61\164\x75\x73" => "\x73\165\143\x63\145\x73\163", "\x63\157\x64\x65" => $QbJj0, "\155\145\x73\x73\141\147\145" => "\x43\x72\x65\141\164\145\144\40\161\x75\157\x74\x61\164\151\x6f\x6e\x20\x73\165\x63\x63\145\x73\x73\x66\x75\x6c\154\x79\56"], 200); goto IOojh; NWfWh: return response()->json(["\163\x74\x61\x74\x75\163" => "\145\x72\x72\x6f\x72", "\x63\157\x64\145" => null, "\x6d\x65\163\x73\x61\147\x65" => "\120\x72\x6f\x64\165\143\164\x20\151\163\x20\x69\x6e\166\x61\x6c\x69\x64"], 200); hkkE7: $FA1AJ = ProductDetail::where("\x70\x72\157\x64\165\143\164\x5f\x69\x64", $mcWD0)->where("\143\x6f\144\x65", $params["\x63\x6f\144\x65"])->first(); goto gtRsD; Ovk33: return response()->json(["\x73\164\x61\164\165\163" => "\x73\x75\x63\143\x65\x73\163", "\143\157\144\x65" => $gR5wE->code, "\x6d\145\x73\x73\141\147\x65" => "\121\165\x6f\x74\145\x20\141\154\162\x65\141\144\x79\40\x65\x78\x69\163\164\x73\56"], 200); XP4Vv: ZKFTt: goto hWMrw; dRtm3: hmI2o: $Ds1NA = UserQuotation::create(["\143\x6f\x64\x65" => $QbJj0, "\x75\163\145\162\x5f\151\144" => auth("\141\160\x69")->user()->id, "\160\x75\162\x63\x68\x61\x73\x65\x5f\151\x64" => $y2SYm, "\160\162\x6f\x64\x75\x63\164\137\x69\x64" => $koe5W->id, "\160\162\x6f\x64\x75\x63\164\x5f\x64\145\x74\x61\x69\x6c\137\143\157\x64\145" => $params["\143\157\x64\145"], "\x70\x72\x6f\144\165\143\x74\137\x6e\141\155\x65" => $koe5W->name, "\160\162\x6f\x64\x75\143\x74\137\163\153\x75" => $params["\x73\x6b\x75"], "\x70\x72\x6f\x64\165\x63\164\137\x69\155\x61\147\x65" => $koe5W->image, "\x63\x61\x74\x65\x67\x6f\x72\171\137\151\144" => $koe5W->category_id, "\143\x61\164\x65\147\157\162\171\137\156\141\x6d\145" => $koe5W->category->name, "\x6d\141\156\x75\146\141\143\164\165\162\145\x72\137\x69\144" => $koe5W->manufacturer_id, "\155\141\156\165\146\x61\x63\164\165\162\145\x72\x5f\x6e\141\155\145" => $koe5W->manufacturer->name, "\x72\145\147\x75\154\x61\x72\137\160\x72\x69\143\x65" => $params["\x72\145\x67\x75\154\141\162\x5f\160\x72\x69\x63\145"], "\x70\162\x69\143\145" => $params["\x70\162\151\x63\x65"], "\144\151\163\x63\157\165\x6e\x74" => $params["\144\151\163\143\157\165\156\164"], "\144\151\x73\x63\x6f\165\x6e\x74\x5f\143\x6f\162\145" => $params["\x64\151\x73\143\157\x75\156\164\x5f\x63\x6f\x72\145"], "\x64\151\163\143\157\165\x6e\164\137\141\155\x6f\x75\156\164" => $params["\x64\151\x73\x63\157\165\x6e\164\x5f\x61\x6d\157\x75\x6e\x74"], "\x64\151\x73\x63\x6f\165\x6e\x74\137\x70\x6f\151\156\164" => 0, "\163\x68\x69\x70\160\151\x6e\147\x5f\143\157\163\164" => $params["\163\150\x69\160\x70\151\156\x67\x5f\x63\157\x73\x74"], "\163\164\141\x6e\x64\x61\x72\x64\x5f\143\x6f\156\163\x74\x72\x75\x63\x74\151\157\156\x5f\x66\x65\x65" => $params["\x73\164\x61\x6e\x64\x61\162\144\x5f\x63\x6f\x6e\x73\x74\162\165\x63\x74\151\157\x6e\137\x66\145\x65"], "\x74\x61\x78" => $params["\164\x61\x78"], "\164\x6f\x74\141\x6c\x5f\x61\x6d\x6f\165\156\x74" => $params["\164\x6f\164\x61\x6c\137\141\x6d\x6f\x75\x6e\x74"], "\165\x73\x65\162\x5f\x70\157\x69\156\x74" => $params["\165\x73\x65\x72\137\x70\157\x69\156\x74"], "\x63\x72\x65\x61\164\x65\x64\x5f\141\164" => date("\x59\55\155\x2d\x64\x20\110\x3a\151\72\163"), "\165\x70\x64\141\x74\145\144\x5f\141\164" => date("\x59\55\155\55\x64\x20\x48\x3a\151\72\163")]); foreach ($params["\x6f\x70\164\x69\x6f\156\x73"] as $i9PLh) { UserQuotationOption::create(["\165\163\145\162\137\x71\165\x6f\164\141\x74\151\157\156\137\x69\x64" => $Ds1NA->id, "\x6f\x70\x74\x69\157\156\x5f\151\x64" => $i9PLh["\x69\x64"], "\157\x70\x74\x69\157\x6e\x5f\x6e\x61\155\145" => $i9PLh["\157\x70\164\151\157\x6e\x5f\156\141\155\x65"], "\157\160\x74\151\x6f\156\x5f\144\145\x74\x61\151\154\x5f\x69\x64" => $i9PLh["\x6f\x70\164\x69\x6f\156\137\144\145\164\x61\151\154\x5f\x69\x64"], "\157\x70\x74\151\157\x6e\x5f\x64\145\164\x61\x69\154\137\156\141\155\x65" => $i9PLh["\x6e\x61\x6d\145"], "\x63\162\x65\141\164\x65\x64\x5f\x61\x74" => date("\131\x2d\155\x2d\144\x20\x48\x3a\x69\x3a\163"), "\165\x70\144\141\x74\x65\144\x5f\141\x74" => date("\x59\x2d\x6d\55\144\40\110\x3a\151\72\163")]); U20Rs: } goto idlnD; hWMrw: $QbJj0 = rand(1111, 9999) . rand(1111, 9999) . rand(1111, 9999); $AfXyt = UserQuotation::where(["\143\x6f\x64\145" => $QbJj0])->count(); if ($AfXyt > 0) { goto ZKFTt; } goto dRtm3; ZXhR4: $y2SYm = isset($params["\x70\x75\162\143\150\141\x73\x65\x5f\151\x64"]) && ($params["\x70\165\162\x63\x68\x61\x73\145\x5f\x69\x64"] == 1 || $params["\x70\x75\162\143\x68\141\x73\145\x5f\x69\144"] == "\x31") ? 1 : 2; $gR5wE = UserQuotation::where("\x75\x73\x65\x72\137\151\144", auth("\x61\x70\151")->user()->id)->where("\160\162\x6f\x64\165\x63\x74\137\x69\x64", $koe5W->id)->where("\160\x75\162\143\x68\141\x73\145\x5f\x69\x64", $y2SYm)->where("\x70\162\x6f\144\x75\x63\x74\137\x64\145\164\141\151\x6c\137\143\157\x64\x65", $params["\x63\x6f\x64\x65"])->first(); if (!$gR5wE) { goto XP4Vv; } goto Ovk33; bTrfv: if (auth("\141\x70\x69")->check()) { goto k6Oar; } return response()->json(["\x73\x74\x61\164\x75\x73" => "\x65\x72\x72\x6f\x72", "\143\x6f\144\x65" => null, "\155\145\x73\163\141\147\x65" => "\x41\143\x63\x65\x73\163\40\151\163\x20\154\151\155\151\164\145\144"], 200); k6Oar: goto sBzG9; IOojh: } }