<?php

namespace App\Models\Mobile\Utils;

use CodeIgniter\Model;

class SidebarModel extends Model
{

    public function menu()
    {
        $menu = [[
            'name' => "Home",
            "icon" => "bi bi-house-door",
            "url" => base_url(),
        ]];
        if (options("el_mode")) {
            $menu[] = [
                "name" => 'Jadwal Kelas',
                "icon" => 'bi bi-calendar3',
                "url" => base_url('kelas/jadwal'),
                "badge" => [
                    "count" => 0,
                    "type" => "warning"
                ]
            ];
        }
        $menu[] = [
            "name" => 'Jadwal Ujian',
            "icon" => 'bi bi-folder2-open',
            "url" => base_url('ujian/jadwal'),
            "badge" => [
                "count" => 0,
                "type" => "warning"
            ]
        ];
        $menu[] = [
            "name" => 'Pengumuman',
            "icon" => 'bi bi-bell',
            "url" => base_url('pengumuman'),
            "badge" => [
                "count" => 0,
                "type" => "primary"
            ]
        ];
        return $menu;
    }
}
