<?php

namespace App\Controllers\Panel;

class ProfileViewsPanelController extends PanelController
{
    public function index()
    {
        $user = $this->currentUser();
        $endpoint = $user->isCandidate() ? '/candidates/me/profile-views' : '/agencies/me/profile-views';
        return view('panel/profile_views/index', $this->panelData(['title' => 'Who Viewed My Profile', 'endpoint' => $endpoint]));
    }
}
