<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:03
 namespace App\Http\Controllers; use App\Http\Resources\KeywordResource; use App\Keyword; use Illuminate\Support\Arr; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; class KeywordController extends Controller { const ITEM_PER_PAGE = 15; public function index() { $WXbMT = Keyword::select("\151\x64", "\x6e\x61\155\x65")->where("\x69\163\x5f\x64\145\x6c\145\x74\x65\x64", false)->where("\151\163\x5f\141\x63\x74\x69\x76\x61\164\145\x64", true)->orderBy("\x70\157\163\x69\164\151\x6f\x6e")->orderBy("\151\144")->get(); return KeywordResource::collection($WXbMT); } public function show($W8Yb3 = '') { $vrhze = Keyword::select("\x69\144", "\156\141\x6d\145")->where("\151\x73\137\x64\x65\154\145\164\145\144", false)->where("\151\163\137\141\x63\164\151\166\x61\164\145\144", true)->where("\151\x64", $W8Yb3)->first(); return new KeywordResource($vrhze); } public function topKeyword(Request $request) { $params = $request->all(); $hXxhh = Arr::get($params, "\x6c\x69\x6d\151\x74", static::ITEM_PER_PAGE); $SJ83U = Keyword::select("\x69\x64", "\156\x61\x6d\145")->where("\x69\x73\137\144\x65\x6c\x65\x74\x65\144", false)->where("\x69\163\137\x61\143\x74\x69\166\141\x74\145\x64", true)->orderBy("\160\x6f\163\x69\x74\151\x6f\x6e")->orderBy("\x69\144", "\104\105\x53\x43"); return KeywordResource::collection($SJ83U->paginate($hXxhh)); } public function relateKeyword(Request $request) { $params = $request->all(); $hXxhh = Arr::get($params, "\154\151\155\x69\x74", static::ITEM_PER_PAGE); $WXbMT = Keyword::select("\x69\144", "\x6e\x61\x6d\x65")->where("\x69\163\137\144\145\154\x65\164\x65\144", false)->where("\x69\x73\x5f\141\x63\164\x69\x76\x61\x74\145\x64", true)->where("\x69\163\137\x72\145\154\x61\x74\x65\x64", true)->orderBy("\x70\157\163\151\164\151\157\x6e")->orderBy("\151\144", "\x44\x45\x53\x43")->paginate($hXxhh); return KeywordResource::collection($WXbMT); } public function noteKeyword(Request $request) { $params = $request->all(); $hXxhh = Arr::get($params, "\x6c\x69\155\x69\x74", static::ITEM_PER_PAGE); $WXbMT = Keyword::select("\x69\x64", "\x6e\141\x6d\x65")->where("\x69\163\x5f\x64\145\x6c\x65\x74\145\x64", false)->where("\x69\163\x5f\141\143\x74\x69\x76\x61\164\x65\x64", true)->where("\151\x73\137\x6e\157\x74\145", true)->orderBy("\160\x6f\163\151\164\x69\x6f\156")->orderBy("\151\x64", "\x44\x45\x53\103")->paginate($hXxhh); return KeywordResource::collection($WXbMT); } }