@php
    $layout = Auth::check() ? 'app-layout' : 'guest-layout';
@endphp

<x-dynamic-component :component="$layout">
    <x-slot name="header">
            {{ __('Events') }}
    </x-slot>

    <div class="py-6">
        <div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
            @livewire('static-post', ['type' => 'SiteContents\Static\Events' ?? null, 'limit' => timebank_config('posts.static.events.limit'), 'hideAuthor' => timebank_config('posts.static.events.hideAuthor')])
            @livewire('event-calendar-post', ['type' => 'App\Models\Meeting' ?? null, 'limit' => timebank_config('posts.static.events.limit'), 'hideAuthor' => timebank_config('posts.static.events.hideAuthor')])
        </div>
    </div>

</x-dynamic-layout>
