<x-app-layout>
    <x-slot name="header">
        {{ trans_with_platform('@PLATFORM_NAME@ calls') }}
    </x-slot>

    <div class="py-6">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-theme-background overflow-x-visible shadow-xl sm:rounded-lg">
                <div class="p-12 px-6 sm:px-20 bg-theme-background">
                    @php
                        $sidePostType = session('activeProfileType') === \App\Models\Admin::class
                            ? 'SiteContents\\Manage\\CallsAdmin'
                            : 'SiteContents\\Manage\\Calls';
                        $sidePostFallback = session('activeProfileType') === \App\Models\Admin::class
                            ? __('Manage calls (admin)')
                            : __('Manage calls');
                    @endphp
                    @livewire('side-post', [
                        'type' => $sidePostType,
                        'latest' => true,
                        'fallbackTitle' => $sidePostFallback,
                        'fallbackDescription' => ''])

                    @livewire('calls.manage')
                </div>
            </div>
        </div>
    </div>
</x-app-layout>
