<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:57
 namespace App\Http\Controllers\Admin; use App\Payout; use App\Http\Controllers\Controller; use App\Http\Resources\Admin\PayoutResource; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Validator; class PayoutController extends Controller { const ITEM_PER_PAGE = 100; public function index(Request $request) { goto qywlS; xZgEz: yxdee: $RtiUe->orderBy("\151\x64"); return PayoutResource::collection($RtiUe->paginate($fGgEo)); goto XLEdG; bTVxV: $RtiUe = Payout::query(); if (empty($dwuwt)) { goto yxdee; } $RtiUe->where(function ($YaP2b) use($dwuwt) { $YaP2b->where("\171\x65\x61\x72\163", "\114\111\x4b\105", "\x25" . $dwuwt . "\x25")->orWhere("\162\x61\164\x65", "\x4c\x49\113\105", "\45" . $dwuwt . "\x25"); }); goto xZgEz; qywlS: $Fgeen = $request->all(); $fGgEo = Arr::get($Fgeen, "\154\151\x6d\x69\164", static::ITEM_PER_PAGE); $dwuwt = Arr::get($Fgeen, "\153\x65\x79\x77\x6f\162\144", null); goto bTVxV; XLEdG: } public function all() { return PayoutResource::collection(Payout::orderBy("\151\144")->orderBy("\171\x65\x61\162\163")->get()); } public function show($x_jvt = 0) { $DBIdt = Payout::findOrFail($x_jvt); return new PayoutResource($DBIdt); } public function store(Request $request) { goto XMUmN; VOxsV: Bm6fm: $params = $request->all(); $HU5bB = Payout::where("\171\145\141\x72\x73", $params["\171\145\x61\x72\163"])->count(); goto kSEHN; kSEHN: if (!($HU5bB > 0)) { goto EE0XQ; } return response()->json(["\145\162\x72\x6f\162\x73" => "\x49\164\145\155\40\x68\x61\x76\x65\x20\x65\x78\x69\163\x74\145\144"], 403); EE0XQ: goto W13n1; W13n1: $DBIdt = Payout::create(["\x79\145\141\x72\x73" => $params["\171\x65\x61\162\x73"], "\x72\141\x74\145" => $params["\162\141\x74\x65"]]); return new PayoutResource($DBIdt); goto y3uLo; XMUmN: $XmqEZ = Validator::make($request->all(), ["\x79\x65\x61\x72\x73" => ["\x72\145\x71\165\x69\x72\x65\144", "\x6e\165\155\x65\x72\151\x63", "\x6d\x69\156\x3a\60"], "\x72\141\x74\x65" => ["\162\x65\x71\x75\151\162\x65\144", "\x6e\x75\x6d\x65\162\151\x63", "\155\x69\x6e\x3a\x30"]]); if (!$XmqEZ->fails()) { goto Bm6fm; } return response()->json(["\145\x72\x72\157\x72\163" => $XmqEZ->errors()], 403); goto VOxsV; y3uLo: } public function update(Request $request, $x_jvt = 0) { goto dpmdP; BRGNM: i2trs: $DBIdt->update(["\171\x65\x61\162\163" => $params["\x79\x65\x61\x72\163"], "\162\141\x74\145" => $params["\162\141\x74\x65"]]); return response()->json(null, 204); goto Tr1zZ; dpmdP: $XmqEZ = Validator::make($request->all(), ["\171\x65\141\x72\x73" => ["\162\145\x71\165\x69\162\145\x64", "\156\x75\155\x65\x72\151\143", "\155\151\156\x3a\60"], "\x72\141\x74\145" => ["\x72\145\x71\165\151\x72\x65\x64", "\156\x75\155\x65\162\151\143", "\x6d\151\156\72\x30"]]); if (!$XmqEZ->fails()) { goto dBSsN; } return response()->json(["\x65\x72\x72\x6f\162\163" => $XmqEZ->errors()], 403); goto YweH3; YweH3: dBSsN: $DBIdt = Payout::findOrFail($x_jvt); $params = $request->all(); goto BluDS; BluDS: $HU5bB = Payout::where("\x79\x65\141\x72\x73", $params["\171\145\x61\x72\x73"])->where("\x69\x64", "\41\x3d", $x_jvt)->count(); if (!($HU5bB > 0)) { goto i2trs; } return response()->json(["\x65\x72\x72\x6f\x72\x73" => "\x49\x74\x65\155\40\x68\x61\166\x65\40\145\170\151\163\164\x65\144"], 403); goto BRGNM; Tr1zZ: } public function destroy($x_jvt = 0) { $DBIdt = Payout::findOrFail($x_jvt); $DBIdt->delete(); return response()->json(null, 204); } }