@extends('layouts.app')

@section('title', 'Access denied')

@section('content')
    <div class="row justify-content-center">
        <div class="col-lg-6">
            <div class="portal-card">
                <div class="card-body text-center py-5">
                    <div class="display-6 text-muted mb-3">403</div>
                    <h1 class="h5 fw-bold mb-2">Access denied</h1>
                    <p class="text-muted mb-4">{{ $message ?? 'You do not have access to this module.' }}</p>
                    <div class="d-flex gap-2 justify-content-center flex-wrap">
                        <a href="{{ default_home_url() }}" class="btn btn-portal-primary">Go to my home</a>
                        <form method="POST" action="{{ route('logout') }}" class="d-inline">
                            @csrf
                            <button type="submit" class="btn btn-portal-outline">Logout</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
