@php
use App\Models\Game;
use App\Models\GameList;
use App\Models\Genre;
use App\Models\Platform;
@endphp
{{-- Check to see if the user is logged in. --}}
@if (Auth::check())
{{-- Check role of user. --}}
@if (
Auth::user()->role_id != 1 &&
Auth::user()->role_id != 2 &&
Auth::user()->role_id != 3
)
{{-- Redirect to home page. --}}
@endif
@endif