<?php

namespace App\Controllers\Panel;

class TeamPanelController extends PanelController
{
    public function index()
    {
        $user = $this->currentUser();
        if (! $user->isAgencyOwner()) {
            throw new \App\Exceptions\ForbiddenException('Only the Agency Owner can manage the team.');
        }
        return view('panel/team/index', $this->panelData(['title' => 'Team']));
    }
}
