<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Services\DummyDataService;

class DashboardController extends Controller
{
    public function index()
    {
        return view('admin.dashboard', [
            'pageTitle' => 'Beranda',
            'user' => auth()->user(),
            'greeting' => 'Selamat Datang',
            'stats' => DummyDataService::getAdminDashboardStats(),
            'statistikBulanan' => DummyDataService::getStatistikPeminjamanAdmin(),
            'komposisiBuku' => DummyDataService::getKomposisiBukuAdmin(),
            'pengumuman' => DummyDataService::getPengumuman(),
            'aktivitasTerakhir' => DummyDataService::getAktivitasTerakhir(),
        ]);
    }
}
