@stack('styles')
@yield('page-title', 'Dashboard')
@if(config('trading.multi_account_enabled') && isset($portalTradingAccounts, $portalTradingAccount))
Trading account
@foreach($portalTradingAccounts as $switchAccount)
id === $portalTradingAccount->id) @disabled(!$switchAccount->isActive())> {{ $switchAccount->name }} · {{ $switchAccount->account_number }}{{ $switchAccount->isActive() ? '' : ' (disabled)' }}
@endforeach
@endif @yield('topbar-right')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif @yield('content')
@if(config('trading.multi_account_enabled') && isset($portalTradingAccount)) @endif @include('portal.partials.portal-toast') @unless(request()->routeIs('portal.chat.page')) @include('portal.partials.agent-chat') @endunless @stack('scripts') @yield('page-js')