Intrusion Exploit
Server: LiteSpeed
System: Linux cisadane.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: lenf4658 (1805)
PHP: 8.4.19
Disabled: NONE
Upload Files
File: /home/lenf4658/public_html/unukaltim.lensapedia.id/unukaltim/app/View/Components/Web/NavItem.php
<?php

namespace App\View\Components\Web;

use App\Models\WebPage;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class NavItem extends Component
{
    /**
     * Create a new component instance.
     */
    public function __construct()
    {
        //
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string
    {
        $data['akademiks'] = WebPage::where('type', 'akademik')->orderBy('name')->get();
        $data['lembagas']  = WebPage::where('type', 'lembaga')->orderBy('name')->get();
        $data['layanans']  = WebPage::where('type', 'layanan')->orderBy('name')->get();

        return view('components.web.nav-item', $data);
    }
}