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

<x-dynamic-component :component="$layout">
    <x-slot name="header">
            {{ __('Open source') }}
    </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\OpenSource' ?? null,
               'limit' => timebank_config('posts.static.open-source.limit'),
               'hideAuthor' => timebank_config('posts.static.open-source.hideAuthor'),
               'versionInfo' => [
                   'version'       => config('app.name') . ' ' . config('app.version'),
                   'release_date'  => config('app.release_date'),
                   'licence'       => 'AGPL v3',
                   'changelog_url' => config('app.changelog_url'),
               ],
           ])
        </div>
    </div>
</x-dynamic-layout>
