<?php

namespace App\Controllers\Panel;

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