@include('partials.head', ['title' => $pageTitle])
@include('partials.sidebar')
@include('partials.navbar')

{{ $pageTitle }}

{{ $pagesubTitle }}

Live Gold Price
LIVE Updated {{ $lastUpdated ? $lastUpdated->format('h:i A') : 'N/A' }}
@foreach ($currentPrice as $purity => $price) @php $buyFormatted = number_format($price['Buy'], 2); [$buyInt, $buyDec] = explode('.', $buyFormatted); $sellFormatted = number_format($price['Sell'], 2); [$sellInt, $sellDec] = explode('.', $sellFormatted); @endphp
{{ $purity }} per gram
@endforeach

Prices update in real time and include applicable margins.

My Gold Vault
{{ $user->user_name }}

IC / Passport: {{ $user->user_id }}

Estimated Net Portfolio

RM {{ number_format($vaultEstimatedNet, 2) }}
@foreach ($vaultDetails as $purity => $detail)
{{ $purity }} ยท {{ $detail['karat'] }}K
{{ number_format($detail['grams'], 2) }} g
Est. RM {{ number_format($detail['estimated'], 2) }}
@endforeach
Payout Cash Pocket
Held funds pending bank credit
RM {{ number_format($cashPocket, 2) }}
Company List
@if ($company->isEmpty())

No companies are linked to your account yet.

@else @foreach ($company as $rep)
{{ Str::upper(Str::substr($rep->company->ssm_name ?? '?', 0, 1)) }}
{{ $rep->company->ssm_name ?? 'Unknown Company' }} SSM ID: {{ $rep->ssm_id }}
@if ($rep->status == 1) Active @else Inactive @endif
@endforeach @endif
@include('partials.footer')