<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:02:05
 namespace App\Http\Controllers; use App\Http\Resources\SliderResource; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Cache; use App\Slider; use Illuminate\Http\Request; class SliderController extends Controller { const ITEM_PER_PAGE = 25; public function index(Request $request) { $params = $request->all(); $XnNEi = Arr::get($params, "\x6c\151\x6d\151\164", static::ITEM_PER_PAGE); $YhrmP = Slider::select("\x69\144", "\x6e\x61\155\x65", "\151\155\x61\147\145", "\x75\x72\x6c", "\x69\x73\x5f\151\156\x74\145\x72\156\141\154\137\165\162\x6c")->isPublished()->orderBy("\x70\157\163\x69\x74\151\157\156", "\101\123\x43")->orderBy("\151\x64", "\101\x53\x43")->paginate($XnNEi); return response()->json($YhrmP, 200); } public function position($V2s4O = '') { $YhrmP = Slider::isPublished()->where("\x70\x6f\x73\151\164\x69\157\x6e", $V2s4O)->orderBy("\x69\144", "\104\105\x53\x43")->first(); if (isset($YhrmP)) { goto akfe2; } return response()->json(["\144\x61\x74\x61" => null], 200); akfe2: return new SliderResource($YhrmP); } public function showPosition($V2s4O = '') { } public function topPage(Request $request) { $YhrmP = Slider::with("\x64\145\164\x61\151\154\163")->where("\151\x73\x5f\144\x65\x6c\x65\x74\x65\144", false)->where("\x69\163\137\141\x63\x74\151\x76\141\164\145\x64", true)->where("\x70\157\163\x69\x74\151\x6f\x6e", "\x74\157\x70\x5f\160\141\147\145")->orderBy("\151\x64", "\104\105\x53\x43")->first(); return response()->json(["\144\141\164\141" => $YhrmP], 200); } }