<?php

namespace App\Controllers\Panel;

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