@include('partials.pilot.wins-ticker')
@php
$heroPayload = \App\Pilot\Services\PilotHeroStateService::forUser(auth()->user());
@endphp
@include('partials.pilot.hero', $heroPayload)
{{-- ── Wallet card ── --}}
{{-- Main Balance --}}
${{ number_format(auth()->user()->balance, 2) }}
Main Wallet · USDT
@if(auth()->user()->type != 'marketer')
{{-- ── ICTP Balance ── --}}
{{-- Candlestick/trading icon --}}
${{ number_format(auth()->user()->ictp_balance ?? 0, 2) }}
ICTP
Inhouse Capital Traders Program
Move
{{-- Rebate Bonus --}}
${{ number_format(auth()->user()->rebates, 2) }}
Rebate Bonus
{{-- Store Setup Bonus --}}
${{ number_format(auth()->user()->store_bonus, 2) }}
Referral Store Bonus
{{-- AI Referral Bonus --}}
${{ number_format(auth()->user()->ai_bonus, 2) }}
AI Referral Purchase Bonus
{{-- Grant Funds --}}
@php
$grantBalance = auth()->user()->grant_balance ?? 0;
$grantCapital = auth()->user()->grant_capital ?? 0;
$grantProfit = max(0, $grantBalance - $grantCapital);
@endphp
${{ number_format($grantBalance, 2) }}
@php
$activeGrant = \App\Models\Grant::where('user_id', auth()->id())
->where('status', 1)
->where('expires_at', '>', now())
->orderByDesc('expires_at')
->first();
@endphp
@if($activeGrant)
Active · Expires {{ $activeGrant->expires_at->format('d M') }}
@endif
🏅 Grant Funds
@if($grantCapital > 0)
· Capital: ${{ number_format($grantCapital, 2) }}
@endif
{{-- Only show Move button if there is profit above capital --}}
@if($grantProfit > 0)
Move
@else
No profit yet
@endif
@endif
{{-- ── Pilot Mode: How it works preview (only for new + ictp states) ── --}}
@php
$pilotStats = null;
if (isset($heroPayload['state']) && in_array($heroPayload['state'], ['new','ictp'], true)) {
$pilotStats = app(\App\Pilot\Services\PilotStatsService::class)->dashboardSnapshot();
}
@endphp
@if ($pilotStats !== null)
@include('partials.pilot.pilot-preview', ['stats' => $pilotStats])
@endif
{{-- ── Pilot Mode: Top Pilots strip (only for non-following states) ── --}}
@php
$topPilots = [];
if (isset($heroPayload['state']) && in_array($heroPayload['state'], ['new','ictp','balance'], true)) {
$topPilots = app(\App\Pilot\Services\PilotTopPilotsService::class)->topThree();
}
@endphp
@include('partials.pilot.top-pilots', ['topPilots' => $topPilots])
{{-- ── NEXUS Session Module (hidden when inactive) ── --}}
@if($nexusActive)
@if($homeSessionOpen)
Trading Session Open
{{ $homeActiveSessionName }} / Session {{ $homeActiveSessionNumber }}
Place your bids now. Session closes automatically.
@else
Next Session
{{ $homeNextSessionName }} / Session {{ $homeNextSessionNumber }}
Browse markets and get your bids ready.
@endif
--:--
{{ $homeSessionOpen ? 'remaining' : 'until open' }}
@foreach($homeSessionTimes as $num => $hour)
@php
$isActive = $homeSessionOpen && $homeActiveSessionNumber === $num;
$isNext = !$homeSessionOpen && $homeNextSessionNumber === $num;
$pClass = $isActive ? 'hp-active' : ($isNext ? 'hp-next' : '');
@endphp
Session {{ $num }}
@endforeach
Browse Markets
@endif
{{-- ── Inventory ── --}}
@php $total = 0; foreach($ownerships as $o){ $total += $o->value * $o->quantity; } @endphp
My Inventory
Store Value: ${{ number_format($total, 2) }} USDT
{{-- ── Performance Chart ── --}}
Manual Performance Chart
@if(empty(auth()->user()->chart_first))
@else
@endif
@if(empty(auth()->user()->chart_first))
@else
@endif
{{-- ── Bid & Sell History ── --}}
Manual Bid & Sell History
{{-- Bids panel --}}
@forelse($bids as $bid)
{{ strtoupper(substr($bid->market?->name ?? '?', 0, 1)) }}
{{ $bid->product?->name }}@if($bid->quantity > 1) ×{{ $bid->quantity }}@endif
{{ $bid->market?->name }} · {{ \Carbon\Carbon::parse($bid->bid_time)->diffForHumans(['parts' => 1, 'short' => true]) }}
${{ number_format($bid->amount * $bid->quantity, 2) }}
@if($bid->status == 0)
● In Progress
@elseif($bid->status == 1)
✓ Successful
@elseif($bid->status == 2)
✕ Unsuccessful
@endif
@empty
No manual bids yet.
@endforelse
{{-- Sells panel --}}
@forelse($sells as $sell)
{{ strtoupper(substr($sell->market?->name ?? '?', 0, 1)) }}
{{ $sell->product?->name }}@if($sell->quantity > 1) ×{{ $sell->quantity }}@endif
{{ $sell->market?->name }} · {{ \Carbon\Carbon::parse($sell->sell_time)->diffForHumans(['parts' => 1, 'short' => true]) }}
${{ number_format($sell->amount * $sell->quantity, 2) }}
@if($sell->status == 0)
● In Progress
@elseif($sell->status == 1)
✓ Successful
@elseif($sell->status == 2)
✕ Unsuccessful
@endif
@empty
No manual sells yet.
@endforelse