Files
timebank-cc-public/resources/views/main-page.blade.php
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

60 lines
1.6 KiB
PHP

<x-app-layout>
<x-slot name="header">
@if (session('login-success-data'))
{{ __('messages.login_success', session('login-success-data')) }}
@else
{{ __('Main page') }}
@endif
</x-slot>
@if (session('unauthorizedAction'))
<div class="alert alert-danger">
<livewire:notify-unauthorized-action>
</div>
@endif
{{-- Show the secondary / success / info / error /alert notification session messages --}}
@if (session('notification'))
<livewire:notification>
@endif
{{-- Show the notification message that profile has been switched --}}
@if (session('profile-switched-notification'))
<livewire:notify-switch-profile>
@endif
{{-- Show the notification message that the email address has been verified --}}
@if (session('email-verified'))
<livewire:notify-email-verified>
@endif
@if (session('results'))
@livewire('search.show', ['results' => session('results')])
@endif
<div class="py-0 md:py-3">
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
<div class="overflow-hidden bg-theme-background shadow-xl sm:rounded-lg">
<livewire:main-page>
</div>
</div>
</div>
@if(getActiveProfileType() === 'Admin')
<div class="py-6">
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
<div class="overflow-hidden bg-theme-background shadow-xl sm:rounded-lg">
<livewire:admin.maintenance-mode>
</div>
</div>
@endif
</x-app-layout>