<?php

namespace App\Controllers\Panel;

class ReportsPanelController extends PanelController
{
    public function index()
    {
        $user = $this->currentUser();
        if ($user->isSuperAdmin()) {
            return view('panel/reports/platform', $this->panelData(['title' => 'Platform Reports']));
        }
        $this->requireAgency();
        return view('panel/reports/agency', $this->panelData(['title' => 'Reports']));
    }
}
