<?php

namespace App\Http\Controllers\Dashboard;

//Internal Library
use App\Http\Controllers\Controller;
use Illuminate\Routing\Controllers\Middleware;
use Illuminate\Routing\Controllers\HasMiddleware;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Asantibanez\LivewireCharts\LivewireCharts;
use Asantibanez\LivewireCharts\RadarChartModel;
use Asantibanez\LivewireCharts\TreeMapChartModel;
use Livewire\Component;
use Carbon\Carbon;

//Application Library
use App\Library\Esi\Esi;
use Seat\Eseye\Cache\NullCache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Eseye;
use Seat\Eseye\Exceptions\RequestFailedException;

//Models
use App\Models\Esi\EsiScope;
use App\Models\Esi\EsiToken;
use App\Models\Auth\UserPermission;
use App\Models\Auth\UserRole;
use App\Models\Auth\User;
use App\Models\Auth\UserAlt;

//Middleware


class DashboardController extends Controller implements HasMiddleware
{
    /**
     * Get the middleware that should be assigned to the controller
     */
    public static function middleware() : array {
        return [
            new Middleware('auth'),
        ];
    }

    public function display() {
        $altCount = null;
        $alts = null;
        $esiHelper = new Esi;
        $config = config('esi');

        $user = auth()->user();
        $characterId = (int)$user->character_id;

        return view('dashboard.dashboard')->with([
            'authUser' => $user,
        ]);
        
    }
}
