<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:01:53
 namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Arr; use App\FilterWord; use App\Http\Resources\Admin\FilterWordResource; use Illuminate\Validation\Rule; use Validator; class FilterController extends Controller { const ITEM_PER_PAGE = 100; public function index(Request $request) { goto W76kD; lOvA2: $ONcIa->where("\156\x61\x6d\145", "\x4c\x49\x4b\x45", "\x25" . $eaqCL . "\x25"); nqYzO: if (!($fjOpt != '')) { goto Phdq4; } goto f7nlB; NS0S0: $eaqCL = Arr::get($Up0jN, "\x6b\x65\171\x77\x6f\x72\x64", ''); $fjOpt = Arr::get($Up0jN, "\x73\x74\x61\x74\165\x73", ''); if (empty($eaqCL)) { goto nqYzO; } goto lOvA2; W76kD: $Up0jN = $request->all(); $ONcIa = FilterWord::notDeleted(); $u0Ia2 = Arr::get($Up0jN, "\154\151\x6d\x69\x74", static::ITEM_PER_PAGE); goto NS0S0; f7nlB: $ONcIa->where("\x69\x73\137\x61\x63\x74\151\x76\141\x74\145\144", $fjOpt); Phdq4: $ONcIa->orderBy("\x69\x64", "\x44\x45\123\x43"); goto dWS5y; dWS5y: return FilterWordResource::collection($ONcIa->paginate($u0Ia2)); goto zRsBP; zRsBP: } public function all() { $ONcIa = FilterWord::select("\151\144", "\x6e\x61\155\145", "\163\154\165\x67")->notDeleted()->orderBy("\151\x64"); return FilterWordResource::collection($ONcIa->get()); } public function show($E8yyC = 0) { $xmopD = FilterWord::notDeleted()->where("\x69\x64", $E8yyC)->first(); if (isset($xmopD)) { goto duBYy; } return response()->json(["\145\x72\162\157\x72\163" => "\106\x69\x6c\x74\145\x72\40\x57\x6f\162\x64\x20\151\x73\x20\156\x6f\x74\x20\x76\141\154\151\x64"], 403); duBYy: return new FilterWordResource($xmopD); } public function store(Request $request) { goto lxmFE; lBOV1: return new FilterWordResource($xmopD); goto EW8Ad; VLx1Z: Xix1j: $params = $request->all(); $xmopD = FilterWord::create(["\164\x79\160\x65" => $params["\164\171\160\x65"], "\167\157\162\x64" => $params["\x77\157\162\x64"], "\143\x6f\156\x74\145\156\164" => $params["\143\157\156\164\145\x6e\164"], "\x69\163\x5f\x61\143\x74\x69\166\141\x74\145\x64" => $params["\x69\x73\137\x61\x63\x74\x69\x76\141\164\145\x64"] === true ? 1 : 0, "\143\162\x65\x61\164\x65\144\137\x61\164" => date("\131\x2d\x6d\x2d\x64\x20\x48\72\x69\72\x73"), "\165\x70\x64\141\x74\x65\x64\137\x61\164" => date("\131\x2d\x6d\55\144\x20\x48\x3a\151\72\163")]); goto lBOV1; lxmFE: $ZlRkg = Validator::make($request->all(), ["\x74\x79\x70\x65" => "\162\x65\161\x75\x69\162\x65\x64", "\x77\157\x72\144" => "\x72\x65\161\165\151\x72\145\144\174\165\156\151\x71\x75\x65\x3a\146\x69\x6c\x74\x65\162\x5f\167\157\162\x64\163\54\x77\x6f\162\144", "\143\x6f\x6e\x74\145\156\x74" => "\x72\145\161\x75\x69\x72\x65\144", "\x69\163\x5f\x61\143\x74\151\166\141\164\x65\x64" => "\x72\x65\161\165\151\x72\x65\144"]); if (!$ZlRkg->fails()) { goto Xix1j; } return response()->json(["\x65\162\x72\157\x72\163" => $ZlRkg->errors()], 403); goto VLx1Z; EW8Ad: } public function update($E8yyC = 0, Request $request) { goto Qzt7a; ZKSGl: return response()->json(["\145\162\x72\157\162\x73" => "\x46\x69\x6c\164\x65\x72\x20\x57\x6f\162\x64\x20\x69\163\40\156\x6f\164\x20\x76\x61\154\x69\x64"], 403); Mn4uI: $params = $request->all(); goto ULSlP; ULSlP: $xmopD->update(["\164\171\x70\145" => $params["\164\x79\x70\x65"], "\x77\157\x72\144" => $params["\167\x6f\162\144"], "\143\157\156\x74\x65\156\164" => $params["\x63\157\156\x74\x65\x6e\x74"], "\151\x73\x5f\141\x63\x74\x69\166\x61\164\x65\144" => $params["\x69\163\x5f\141\x63\x74\x69\166\141\x74\x65\x64"] === true ? 1 : 0, "\x75\160\x64\141\164\x65\144\137\x61\164" => date("\131\55\155\x2d\144\40\110\x3a\x69\x3a\163")]); return response()->json(null, 204); goto n3MCQ; mtDHc: mvzZU: $xmopD = FilterWord::notDeleted()->where("\151\x64", $E8yyC)->first(); if (isset($xmopD)) { goto Mn4uI; } goto ZKSGl; Qzt7a: $ZlRkg = Validator::make($request->all(), ["\x74\x79\x70\145" => "\x72\x65\161\x75\151\x72\x65\144", "\x77\157\162\144" => ["\x72\x65\161\x75\151\162\145\144", Rule::unique("\x66\151\x6c\164\x65\x72\137\167\x6f\162\x64\163")->ignore($E8yyC)], "\143\157\156\164\x65\156\164" => "\162\x65\161\x75\x69\x72\x65\144", "\151\163\x5f\x61\x63\x74\x69\166\141\164\145\x64" => "\162\145\161\x75\x69\x72\x65\144"]); if (!$ZlRkg->fails()) { goto mvzZU; } return response()->json(["\x65\162\162\x6f\x72\163" => $ZlRkg->errors()], 403); goto mtDHc; n3MCQ: } public function destroy($E8yyC = 0) { $xmopD = FilterWord::notDeleted()->where("\151\x64", $E8yyC)->first(); if (isset($xmopD)) { goto TVRF7; } response()->json(["\x65\162\162\x6f\162" => "\x45\150\x68\150\x21\x20\103\x61\156\40\156\x6f\x74\x20\144\145\x6c\145\164\x65\40\164\x68\x69\163\40\146\151\154\164\x65\x72\x20\167\157\162\x64"], 403); TVRF7: try { $xmopD->update(["\151\163\x5f\x64\145\x6c\x65\164\145\x64" => true]); } catch (\Exception $CvcTP) { response()->json(["\x65\x72\x72\x6f\x72" => $CvcTP->getMessage()], 403); } return response()->json(null, 204); } public function destroyMultiple(Request $request) { goto pb4fd; hkmF8: try { FilterWord::notDeleted()->whereIn("\151\x64", $p8n8z)->update(["\151\x73\137\x64\145\x6c\145\164\145\144" => true]); } catch (\Exception $CvcTP) { response()->json(["\x65\x72\x72\157\x72" => $CvcTP->getMessage()], 403); } return response()->json(null, 204); goto u0yId; pb4fd: $ZlRkg = Validator::make($request->all(), ["\x69\144\163" => "\x72\145\x71\165\x69\x72\145\x64"]); if (!$ZlRkg->fails()) { goto Httyr; } return response()->json(["\x65\x72\x72\157\x72\x73" => $ZlRkg->errors()], 403); goto TL6Vc; TL6Vc: Httyr: $p8n8z = $request->get("\x69\x64\x73", []); $LVxDt = FilterWord::notDeleted()->whereIn("\151\144", $p8n8z)->get(); goto Fc2Py; Fc2Py: if (!($LVxDt->count() <= 0)) { goto X3gO1; } response()->json(["\x65\162\x72\157\162" => "\106\x69\154\164\x65\x72\x20\127\x6f\x72\144\x20\x69\163\40\156\157\164\40\166\141\x6c\x69\144\56"], 403); X3gO1: goto hkmF8; u0yId: } public function activateMultiple(Request $request) { goto MUpkA; MUpkA: $ZlRkg = Validator::make($request->all(), ["\151\144\x73" => "\x72\145\161\x75\151\x72\145\x64"]); if (!$ZlRkg->fails()) { goto LnPRR; } return response()->json(["\x65\162\x72\x6f\x72\x73" => $ZlRkg->errors()], 403); goto AVHk6; GwkKS: if (!($LVxDt->count() <= 0)) { goto pY6R2; } response()->json(["\x65\x72\x72\157\162" => "\x46\x69\154\x74\145\162\x20\127\x6f\162\x64\40\x69\x73\40\156\x6f\164\x20\x76\141\154\151\144\56"], 403); pY6R2: goto WgdIe; AVHk6: LnPRR: $p8n8z = $request->get("\151\x64\x73", []); $LVxDt = FilterWord::notDeleted()->whereIn("\151\144", $p8n8z)->get(); goto GwkKS; WgdIe: try { FilterWord::notDeleted()->whereIn("\x69\144", $p8n8z)->update(["\x69\163\137\x61\x63\x74\x69\x76\x61\164\145\144" => true]); } catch (\Exception $CvcTP) { response()->json(["\x65\x72\162\157\162" => $CvcTP->getMessage()], 403); } return response()->json(null, 204); goto qLctu; qLctu: } public function deactivateMultiple(Request $request) { goto iWNbj; z2gUR: try { FilterWord::notDeleted()->whereIn("\151\144", $p8n8z)->update(["\151\x73\x5f\141\x63\x74\x69\x76\141\164\x65\x64" => false]); } catch (\Exception $CvcTP) { response()->json(["\145\162\162\157\162" => $CvcTP->getMessage()], 403); } return response()->json(null, 204); goto KwNuI; AmcOp: Cnn5C: $p8n8z = $request->get("\x69\144\163", []); $LVxDt = FilterWord::notDeleted()->whereIn("\151\x64", $p8n8z)->get(); goto EyPh6; EyPh6: if (!($LVxDt->count() <= 0)) { goto Sek75; } response()->json(["\145\162\162\x6f\x72" => "\x46\x69\x6c\164\145\162\x20\127\x6f\x72\x64\x20\151\x73\40\x6e\x6f\x74\x20\x76\x61\x6c\151\144\x2e"], 403); Sek75: goto z2gUR; iWNbj: $ZlRkg = Validator::make($request->all(), ["\151\144\163" => "\162\145\161\x75\151\162\x65\144"]); if (!$ZlRkg->fails()) { goto Cnn5C; } return response()->json(["\x65\x72\162\x6f\162\163" => $ZlRkg->errors()], 403); goto AmcOp; KwNuI: } }