<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:01
 namespace App\Http\Controllers; use App\Contact; use App\Events\NotifyEvent; use App\Mail\ContactAdmin; use App\Mail\ContactUser; use App\Mail\SurveyAdmin; use App\Mail\SurveyUser; use App\Notify; use App\Product; use App\ProductArea; use App\ProductDetail; use Illuminate\Http\Request; use Validator; use Mail; class ContactController extends Controller { public function store(Request $request) { goto k4GqW; GGXPg: try { Notify::create(["\143\x6f\156\x74\145\156\x74" => "\x5b" . $fTEDX["\x66\165\x6c\x6c\137\156\x61\155\145"] . "\135\40\152\x75\163\164\40\163\145\156\x74\40\x79\157\165\x20\141\40\x63\x6f\x6e\164\x61\143\164\56", "\155\x6f\144\x75\x6c\x65" => "\x63\x6f\x6e\x74\x61\x63\x74", "\x69\164\145\155\x5f\143\157\156\164\145\x6e\164" => json_encode($fTEDX), "\x63\162\x65\x61\x74\x65\x64\137\x61\x74" => date("\x59\x2d\155\x2d\144\40\110\x3a\151\72\163"), "\165\160\x64\x61\164\145\144\137\141\164" => date("\x59\55\155\55\144\40\x48\72\151\72\x73")]); event(new NotifyEvent()); try { if (!(config("\163\x65\164\164\x69\156\147\163\x2e\x75\137\x63\157\156\x74\141\x63\x74") != '')) { goto WrnCE; } Mail::to($Up1KK)->send(new ContactUser($cV0dX)); WrnCE: if (!(config("\x73\145\164\164\x69\156\x67\163\56\155\x5f\x63\157\x6e\164\x61\x63\164") != '')) { goto lvQF1; } Mail::to(config("\163\x65\x74\164\x69\x6e\147\163\x2e\141\144\155\151\156\x5f\x65\155\x61\x69\x6c"))->send(new ContactAdmin($cV0dX)); lvQF1: } catch (\Exception $Pc1vz) { logger("\133\105\x6d\x61\151\154\x5d\40\x45\162\162\157\x72\72\x20" . $Pc1vz->getMessage()); } } catch (\Exception $Pc1vz) { logger($Pc1vz->getMessage()); } finally { return response()->json(["\144\x61\x74\x61" => ["\x73\164\x61\164\x75\163" => "\163\x75\143\x63\145\x73\x73", "\155\145\x73\x73\x61\x67\145" => __("\143\157\156\164\x61\143\164\56\x6d\145\x73\x73\141\x67\x65\x2e\163\x75\143\x63\145\163\163")]], 200); } goto EzleV; Xfu6Z: qi0tq: $params = $request->all(); $cV0dX = Contact::create(["\x74\x79\x70\145" => 1, "\156\141\x6d\x65" => $params["\146\151\x72\x73\164\137\x6e\x61\155\145"] . "\40" . $params["\154\x61\163\164\x5f\156\x61\x6d\145"], "\x66\151\162\x73\x74\x5f\x6e\141\155\x65" => $params["\146\151\x72\x73\164\137\x6e\141\x6d\x65"], "\154\x61\x73\x74\137\x6e\141\155\145" => $params["\x6c\x61\163\x74\137\156\141\155\x65"], "\x65\x6d\x61\151\x6c" => $params["\x65\155\141\151\154"], "\x70\150\x6f\156\x65\137\156\x75\155\x62\x65\162" => $params["\x70\150\x6f\156\145\137\156\165\155\142\x65\162"], "\143\x6f\156\x74\145\156\x74" => $params["\143\x6f\x6e\164\x65\x6e\x74"], "\151\x73\x5f\x72\x65\141\x64" => 0, "\x69\x73\137\141\x63\164\151\x76\141\164\x65\x64" => 1, "\x63\162\x65\x61\x74\145\144\137\x61\164" => date("\x59\x2d\x6d\x2d\144\40\110\x3a\151\72\163"), "\x75\x70\144\141\x74\x65\144\137\141\x74" => date("\131\x2d\x6d\x2d\144\40\x48\x3a\x69\x3a\163")]); goto ntHkS; ntHkS: $fTEDX = $params; $fTEDX["\163\x69\x74\x65"] = url("\x2f"); $fTEDX["\146\151\162\163\x74\x5f\156\x61\155\145"] = $params["\146\151\x72\x73\164\x5f\156\141\x6d\145"]; goto HaVyv; Yfqcw: $fTEDX["\160\x68\157\156\145\137\156\x75\155\x62\145\x72"] = $params["\x70\x68\157\x6e\145\x5f\x6e\165\x6d\x62\x65\x72"]; $fTEDX["\x63\x6f\x6e\164\x65\156\164"] = $params["\143\x6f\156\164\x65\x6e\164"]; $Up1KK = $params["\145\155\x61\151\154"]; goto GGXPg; HaVyv: $fTEDX["\x6c\141\x73\164\137\156\x61\155\x65"] = $params["\x6c\141\163\164\137\x6e\x61\155\145"]; $fTEDX["\146\165\x6c\154\137\156\x61\155\x65"] = $params["\x66\151\x72\163\164\x5f\156\141\155\145"] . "\40" . $params["\x6c\141\163\x74\137\156\x61\x6d\x65"]; $fTEDX["\x65\155\x61\x69\x6c"] = $params["\x65\155\141\x69\x6c"]; goto Yfqcw; k4GqW: $FsfHV = Validator::make($request->all(), ["\x66\151\x72\163\x74\137\156\x61\155\145" => ["\162\145\161\165\151\x72\145\144"], "\x6c\141\163\x74\137\156\x61\x6d\145" => ["\162\x65\161\165\x69\162\145\x64"], "\145\x6d\141\151\x6c" => ["\162\145\161\x75\151\x72\x65\x64"], "\160\x68\157\x6e\x65\x5f\x6e\165\155\x62\145\x72" => ["\x72\145\x71\x75\x69\162\x65\x64"], "\143\x6f\156\164\x65\x6e\x74" => ["\x72\x65\161\165\151\162\145\x64"]]); if (!$FsfHV->fails()) { goto qi0tq; } return response()->json(["\145\x72\x72\x6f\x72\x73" => $FsfHV->errors()], 403); goto Xfu6Z; EzleV: } public function storeSurvey(Request $request, $kfVyV) { goto V5A6M; KTsfA: goto Jh2Qu; jIV3z: $WnBCm = "\345\x8d\x88\345\x89\x8d"; goto XAjrU; jp1dh: $hYL68 = "\345\x8d\210\345\276\214"; uXHCr: $Q0oZh = ''; goto DcUpZ; so14J: $WnBCm = "\xe6\214\x87\xe5\xae\x9a\xe3\201\252\343\201\x97"; if ($params["\163\143\x68\x65\144\x75\154\145\137\x72\145\161\165\145\x73\x74\x5f\61\x5f\163\145\x73\x73\151\157\x6e"] == "\61" || $params["\163\143\x68\x65\144\x75\154\x65\x5f\x72\x65\161\x75\145\x73\164\137\x31\x5f\163\145\x73\163\x69\157\156"] == 1) { goto jIV3z; } if ($params["\163\x63\150\x65\144\165\154\145\137\162\145\161\165\145\x73\164\137\61\x5f\x73\x65\163\163\x69\x6f\x6e"] == "\x32" || $params["\x73\143\x68\145\x64\165\154\145\x5f\x72\145\161\x75\x65\x73\x74\137\61\137\163\x65\x73\x73\x69\x6f\156"] == 2) { goto UbyVU; } goto KTsfA; eiN3r: $fTEDX["\160\150\x6f\156\145\137\156\x75\x6d\x62\145\162"] = $params["\x70\150\x6f\156\x65\137\x6e\165\x6d\x62\x65\162"]; $fTEDX["\x63\x6f\156\164\x65\x6e\x74"] = $params["\x63\x6f\156\164\x65\x6e\164"]; $Up1KK = $params["\145\x6d\141\151\154"]; goto N82LV; scHhn: return response()->json(["\145\x72\162\157\162\x73" => "\x50\x72\157\x64\165\143\164\40\151\x73\40\151\156\166\x61\154\151\x64\56"], 403); cFc0U: $params = $request->all(); goto so14J; cTFs_: if ($params["\x73\x63\x68\x65\x64\x75\154\145\137\x72\145\161\165\145\x73\x74\137\x32\137\x73\x65\x73\x73\151\x6f\156"] == "\62" || $params["\x73\143\x68\x65\144\x75\x6c\x65\137\162\x65\x71\x75\x65\x73\164\137\62\137\x73\145\163\163\151\x6f\156"] == 2) { goto HgIQ0; } goto uXHCr; OtGDV: goto i0DH4; N82LV: try { Notify::create(["\x63\157\x6e\x74\145\156\x74" => "\x5b" . $fTEDX["\x66\x75\154\154\x5f\156\x61\x6d\x65"] . "\135\x20\152\165\x73\x74\x20\x73\145\156\x74\40\171\x6f\x75\40\141\x20\x73\x75\162\166\x65\171\40\143\157\156\x74\141\x63\x74", "\x6d\157\144\165\154\x65" => "\163\165\162\x76\145\171", "\151\x74\x65\x6d\x5f\x69\144" => $cV0dX->id, "\151\x74\x65\x6d\137\x63\x6f\156\164\145\156\x74" => json_encode($fTEDX), "\x63\162\x65\141\x74\145\x64\137\141\164" => date("\131\55\x6d\55\x64\x20\110\x3a\x69\x3a\x73"), "\x75\x70\x64\x61\164\145\144\137\x61\x74" => date("\x59\x2d\x6d\55\x64\40\x48\72\x69\x3a\163")]); event(new NotifyEvent()); try { if (!(config("\163\x65\x74\164\x69\x6e\147\x73\x2e\165\x5f\x73\165\x72\166\x65\171") != '')) { goto O1Yiu; } Mail::to($Up1KK)->send(new SurveyUser($cV0dX)); O1Yiu: if (!(config("\163\x65\x74\164\151\156\147\x73\56\x6d\137\163\x75\x72\166\x65\x79") != '')) { goto cwfr7; } Mail::to(config("\x73\x65\164\164\151\x6e\x67\x73\x2e\141\x64\155\151\x6e\137\x65\x6d\141\151\154"))->send(new SurveyAdmin($cV0dX)); cwfr7: } catch (\Exception $Pc1vz) { logger("\x5b\x45\x6d\x61\x69\154\135\40\105\162\x72\157\162\72\40" . $Pc1vz->getMessage()); } } catch (\Exception $Pc1vz) { logger($Pc1vz->getMessage()); } finally { return response()->json(["\x64\141\164\141" => ["\163\164\141\x74\x75\163" => "\163\x75\143\x63\145\x73\x73", "\155\x65\x73\x73\x61\147\145" => __("\143\157\156\x74\x61\x63\x74\x2e\x6d\x65\x73\x73\141\x67\x65\x2e\163\165\x63\143\145\163\163")]], 200); } goto O6j0h; vpi_h: Jh2Qu: $hYL68 = "\xe6\x8c\x87\xe5\256\x9a\343\x81\xaa\xe3\x81\227"; if ($params["\x73\x63\150\145\x64\165\154\145\x5f\x72\x65\x71\x75\x65\x73\164\x5f\62\x5f\x73\145\163\163\151\157\x6e"] == "\61" || $params["\163\143\150\x65\x64\165\154\145\x5f\x72\145\161\165\x65\x73\x74\x5f\62\x5f\x73\x65\163\x73\x69\157\x6e"] == 1) { goto OtGDV; } goto cTFs_; aTI1T: $fTEDX["\154\141\x73\x74\x5f\156\x61\155\145"] = $params["\x6c\141\163\164\137\156\x61\155\145"]; $fTEDX["\146\165\154\x6c\x5f\156\x61\155\x65"] = $params["\146\x69\x72\163\164\137\156\141\155\145"] . "\40" . $params["\x6c\x61\163\164\137\x6e\x61\x6d\x65"]; $fTEDX["\x65\155\141\x69\154"] = $params["\x65\155\141\151\154"]; goto eiN3r; dClB3: $fTEDX = $params; $fTEDX["\163\x69\164\x65"] = url("\57"); $fTEDX["\146\151\x72\163\x74\137\x6e\x61\155\145"] = $params["\x66\151\x72\163\164\x5f\x6e\141\x6d\145"]; goto aTI1T; DcUpZ: foreach ($K5j4u->option_detail as $nNf6Z) { $Q0oZh .= $Q0oZh != '' ? "\x2c\40" : ''; $Q0oZh .= $nNf6Z->detail->option->name . "\x3a\40" . $nNf6Z->detail->name; aFOEm: } GG9ow: $fakAX = ceil($K5j4u->price / (100 - $K5j4u->product->discount) * 100); goto SEQZi; XAjrU: goto Jh2Qu; UbyVU: $WnBCm = "\xe5\215\210\345\xbe\214"; goto vpi_h; i0DH4: $hYL68 = "\345\215\210\xe5\x89\215"; goto uXHCr; HgIQ0: goto jp1dh; gykzx: noEWA: $K5j4u = ProductDetail::with("\160\x72\157\x64\165\143\x74", "\157\x70\164\151\x6f\156\137\144\145\164\x61\151\154")->isPublished()->where("\x63\x6f\x64\x65", $kfVyV)->first(); if ($K5j4u) { goto cFc0U; } goto scHhn; SEQZi: $dGitI = ceil(($K5j4u->price + $K5j4u->product->standard_construction_fee) * (10 / 100)); $ydNuq = ceil($K5j4u->price + $K5j4u->product->standard_construction_fee + $dGitI + $K5j4u->product->shipping_cost); $cV0dX = Contact::create(["\164\171\160\x65" => 0, "\x6e\x61\155\145" => $params["\146\x69\162\163\x74\137\156\141\155\145"] . "\40" . $params["\x6c\141\x73\x74\137\156\141\x6d\x65"], "\x66\151\162\x73\164\137\156\x61\x6d\145" => $params["\146\x69\x72\163\x74\x5f\x6e\141\155\145"], "\154\x61\x73\x74\137\x6e\141\x6d\x65" => $params["\154\x61\x73\x74\x5f\x6e\x61\x6d\145"], "\x65\x6d\x61\151\154" => $params["\145\x6d\x61\x69\154"], "\x70\150\157\x6e\145\x5f\156\165\155\x62\145\162" => $params["\x70\x68\x6f\x6e\145\x5f\156\165\155\x62\145\x72"], "\172\x69\160\x5f\x63\157\144\x65\x5f\x31" => $params["\160\157\163\x74\137\143\157\144\145\137\x31"] . "\55" . $params["\160\157\163\x74\x5f\143\157\x64\x65\137\x32"], "\160\162\x65\x66\145\x63\164\165\x72\x65\163" => $params["\x61\x64\x64\x72\x65\163\163"], "\141\144\x64\x72\x65\163\163" => $params["\x61\144\144\x72\145\x73\163\62"], "\142\x75\151\154\x64\x69\x6e\147\137\x6e\x61\x6d\145" => $params["\141\144\144\x72\145\163\x73\63"], "\x73\x63\150\x65\x64\x75\154\145\137\162\145\161\x75\x65\x73\x74\137\x31\x5f\x64\141\x74\x65" => $params["\163\x63\x68\x65\144\165\154\x65\x5f\x72\145\x71\x75\x65\163\x74\137\x31\x5f\x64\x61\x74\145"], "\x73\x63\150\x65\x64\165\x6c\x65\137\x72\x65\161\x75\145\163\x74\x5f\x31\137\163\x65\163\x73\x69\157\x6e" => $WnBCm, "\163\x63\150\145\x64\x75\154\145\137\162\x65\161\x75\x65\x73\x74\137\x31\x5f\x74\x69\x6d\x65" => $params["\163\x63\x68\145\144\165\154\x65\x5f\162\145\x71\x75\145\x73\x74\137\x31\x5f\x74\151\x6d\x65"], "\x73\143\x68\145\144\x75\154\x65\137\x72\145\x71\x75\145\x73\164\x5f\x32\137\144\141\x74\x65" => $params["\x73\x63\150\145\144\165\x6c\x65\x5f\x72\x65\161\x75\x65\163\164\x5f\x32\137\x64\141\164\x65"], "\x73\143\150\145\144\x75\154\x65\137\x72\x65\161\165\145\x73\164\x5f\x32\137\x73\145\163\163\151\157\156" => $hYL68, "\163\x63\x68\x65\144\165\x6c\145\x5f\162\145\x71\x75\x65\x73\x74\x5f\x32\x5f\x74\151\155\145" => $params["\163\143\150\x65\x64\x75\154\x65\137\162\x65\161\165\145\163\164\x5f\62\x5f\x74\x69\x6d\x65"], "\x63\x6f\x6e\x74\x65\x6e\x74" => $params["\x63\x6f\156\164\145\156\164"], "\160\162\x6f\144\165\143\164\x5f\151\144" => $K5j4u->product->id, "\x70\x72\157\144\x75\x63\x74\x5f\x63\157\144\x65" => $K5j4u->code, "\x70\162\157\x64\x75\143\164\137\x6e\x61\x6d\145" => $K5j4u->product->name, "\160\x72\157\144\165\143\164\x5f\x69\155\x61\147\x65" => $K5j4u->product->image, "\160\x72\157\144\165\143\164\x5f\x72\x65\147\165\154\141\162\x5f\x70\162\151\143\145\137\x66\x72\157\x6d" => $K5j4u->product->regular_price_from, "\160\162\x6f\144\165\x63\x74\137\162\x65\x67\x75\x6c\141\162\137\160\x72\151\x63\x65\x5f\164\x6f" => $K5j4u->product->regular_price_to, "\160\162\x6f\x64\x75\x63\164\137\x70\x72\151\x63\x65\137\x66\162\x6f\155" => $K5j4u->product->price_from, "\160\x72\x6f\x64\x75\143\164\137\160\162\151\x63\x65\137\x74\x6f" => $K5j4u->product->price_to, "\x70\162\157\x64\x75\143\164\137\144\x69\x73\143\x6f\x75\x6e\164" => $K5j4u->product->discount, "\x70\162\157\144\x75\x63\164\x5f\163\x61\154\x65\x5f\143\x6f\163\164" => $fakAX, "\160\162\x6f\144\x75\x63\164\137\x70\162\151\143\145" => $K5j4u->price, "\160\x72\157\x64\165\x63\x74\137\x73\164\x61\x6e\144\x61\162\144\137\143\157\x6e\x73\164\162\x75\143\164\151\x6f\x6e\x5f\146\x65\x65" => $K5j4u->product->standard_construction_fee, "\x70\162\x6f\144\165\x63\164\x5f\x74\141\x78" => $dGitI, "\160\x72\157\144\x75\x63\x74\x5f\163\x68\x69\160\x70\x69\156\147\x5f\x63\157\x73\164" => $K5j4u->product->shipping_cost, "\160\162\157\144\x75\143\164\137\164\x6f\x74\141\154\137\141\155\157\x75\x6e\x74" => $ydNuq, "\157\160\164\x69\x6f\x6e\163" => $Q0oZh, "\172\x69\x70\x5f\x63\157\144\x65\137\x32" => $params["\157\x74\150\145\162\x5f\x70\x6f\163\164\137\x63\157\x64\x65\137\x31"] . "\x2d" . $params["\157\164\x68\x65\162\137\x70\157\163\x74\x5f\x63\x6f\144\x65\137\62"], "\x6f\164\x68\145\162\x5f\141\144\x64\x72\145\x73\x73" => $params["\x6f\x74\150\x65\x72\137\141\x64\144\162\x65\163\163"], "\157\164\150\145\162\137\141\144\x64\162\x65\163\163\62" => $params["\157\x74\x68\145\x72\x5f\x61\x64\144\x72\145\163\x73\62"], "\x6f\x74\x68\145\x72\x5f\141\144\144\162\145\163\x73\x33" => $params["\157\164\x68\x65\162\x5f\x61\x64\144\x72\x65\x73\x73\63"], "\x75\163\x65\162\137\151\x64" => auth("\x61\x70\x69")->check() ? auth("\141\160\151")->user()->id : null, "\151\x73\x5f\157\164\x68\x65\162\137\x61\144\x64\x72\x65\163\x73" => $params["\151\x73\137\x6f\164\x68\x65\162\x5f\141\x64\144\x72\x65\x73\x73"] == true || $params["\x69\x73\x5f\x6f\164\x68\x65\x72\137\141\x64\x64\x72\x65\x73\163"] == "\164\x72\165\x65" ? 1 : 0, "\151\163\137\162\145\x61\144" => 0, "\x69\x73\x5f\141\143\164\151\166\141\164\x65\x64" => 1, "\x63\x72\145\141\164\x65\x64\137\x61\164" => date("\x59\x2d\155\x2d\x64\40\110\x3a\x69\x3a\x73"), "\x75\x70\x64\x61\164\x65\144\137\x61\x74" => date("\131\55\155\x2d\x64\x20\110\72\x69\x3a\x73")]); goto dClB3; V5A6M: $FsfHV = Validator::make($request->all(), ["\143\x6f\144\x65" => ["\162\145\161\x75\151\162\145\x64"], "\146\x69\x72\x73\x74\137\156\x61\155\x65" => ["\x72\x65\x71\165\x69\x72\145\144"], "\154\141\163\x74\x5f\156\141\155\145" => ["\162\x65\161\165\x69\162\x65\x64"], "\x65\x6d\x61\x69\154" => ["\x72\145\161\165\151\x72\145\144"], "\160\x68\x6f\156\x65\137\x6e\165\x6d\x62\145\162" => ["\x72\145\x71\x75\151\162\145\x64"]]); if (!$FsfHV->fails()) { goto noEWA; } return response()->json(["\145\x72\x72\x6f\162\163" => $FsfHV->errors()], 403); goto gykzx; O6j0h: } public function checkArea(Request $request, $kfVyV) { goto hzSNH; hzSNH: $FsfHV = Validator::make($request->all(), ["\x70\x6f\x73\164\137\143\157\x64\145" => ["\162\145\x71\x75\x69\x72\x65\144"], "\141\x64\144\x72\145\163\x73" => ["\x72\145\161\165\x69\162\x65\144"], "\141\144\x64\x72\145\x73\163\x32" => ["\x72\x65\x71\165\151\162\x65\144"], "\141\144\144\162\x65\163\163\63" => ["\x72\x65\x71\165\x69\x72\145\x64"]]); if (!$FsfHV->fails()) { goto l5z5g; } return response()->json(["\145\x72\162\157\162\x73" => $FsfHV->errors()], 403); goto rS_aY; hXQ4g: if ($K5j4u) { goto HwvEu; } return response()->json(["\145\x72\162\x6f\x72\x73" => "\x50\x72\x6f\144\x75\x63\x74\40\151\163\x20\x69\x6e\166\x61\x6c\x69\x64\x2e"], 403); HwvEu: goto vb_aA; vb_aA: $bLCKm = ProductArea::where("\164\x79\160\145", 1)->where("\160\162\x6f\144\165\143\x74\x5f\x69\x64", $K5j4u->product_id)->orderBy("\x63\151\x74\x79")->pluck("\x63\x69\164\x79")->toArray(); $K4WX4 = in_array(trim($params["\141\144\144\x72\145\x73\163"]), $bLCKm); return response()->json(["\x73\164\141\164\165\x73" => $K4WX4 ? "\163\165\143\x63\145\163\163" : "\145\162\x72\x6f\x72", "\x61\x72\x65\141\x73" => $bLCKm], 200); goto RpsEx; rS_aY: l5z5g: $params = $request->all(); $K5j4u = ProductDetail::select("\x69\x64", "\x70\162\157\x64\x75\x63\x74\x5f\151\144")->isPublished()->where("\x63\157\144\145", $kfVyV)->first(); goto hXQ4g; RpsEx: } }