Files
SkinbaseNova/resources/views/errors/403.blade.php

44 lines
1.5 KiB
PHP

{{--
403 Forbidden
Use for: private artwork, banned content, region restrictions.
Shows login button if user is a guest; profile/discover if logged in.
--}}
@extends('errors._layout', [
'error_code' => 403,
'error_title' => 'Access Denied',
'error_message' => $message ?? 'You do not have permission to view this content.',
])
@section('badge', 'Forbidden')
@section('primary-cta')
@guest
<a href="/login"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-sign-in-alt" aria-hidden="true"></i>
Sign In
</a>
@else
<a href="/discover/trending"
class="inline-flex items-center gap-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-white font-semibold px-6 py-3 text-sm shadow-lg shadow-sky-900/30 transition-colors">
<i class="fas fa-compass" aria-hidden="true"></i>
Back to Discover
</a>
@endguest
@endsection
@section('secondary-ctas')
@guest
<a href="/register" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Create Account
</a>
@else
<a href="/@{{ Auth::user()->username }}" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
My Profile
</a>
@endguest
<a href="/" class="rounded-xl border border-white/10 hover:border-white/25 text-white/70 hover:text-white px-4 py-2 text-sm transition-colors">
Home
</a>
@endsection