<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:53
 namespace App\Http\Controllers\Admin; use App\Exports\CombinedExport; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Maatwebsite\Excel\Facades\Excel; use Carbon\Carbon; use Validator; class ExportController extends Controller { public function generate(Request $request) { try { goto nIY6g; nIY6g: $gknBd = Validator::make($request->all(), ["\146\x69\145\x6c\x64\163" => ["\x72\x65\161\x75\151\x72\145\144"]]); if (!$gknBd->fails()) { goto yIULF; } return response()->json(["\145\x72\162\157\x72\163" => $gknBd->errors()], 403); goto Pp2OX; OREcK: $Le9ly = "\146\151\x6c\145\x73\57" . $BUaRy; Excel::store(new CombinedExport($params["\x66\151\x65\154\x64\163"]), $Le9ly, "\160\165\142\x6c\151\143"); return response()->json(["\163\164\x61\164\x75\x73" => "\163\165\143\x63\145\x73\163", "\x75\x72\x6c" => asset("\x73\x74\x6f\x72\141\147\145\x2f" . $Le9ly), "\155\145\163\x73\x61\x67\145" => "\106\151\x6c\145\40\145\x78\160\x6f\x72\164\145\144\40\x73\165\143\143\x65\163\x73\146\165\154\x6c\171"]); goto YPmhE; Pp2OX: yIULF: $params = $request->all(); $BUaRy = md5("\x65\x6d\x70\x6c\157\171\145\145\163\x5f" . Carbon::now()->format("\x59\x6d\144\x48\151\x73")) . "\x2e\170\154\x73\170"; goto OREcK; YPmhE: } catch (\Exception $n3K93) { \Log::error("\105\162\x72\x6f\x72\x20\x65\170\x70\157\x72\164\x69\156\147\x20\x65\x6d\160\x6c\x6f\x79\x65\145\x73\x3a\x20" . $n3K93->getMessage()); return response()->json(["\163\x74\141\x74\165\163" => "\145\x72\162\157\162", "\x6d\x65\163\163\x61\147\x65" => "\x45\x72\x72\x6f\162\x20\145\x78\x70\x6f\162\164\151\156\147\40\x66\151\x6c\145\x3a\x20" . $n3K93->getMessage()], 500); } } }