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

{{ $pageTitle }}

{{ $pagesubTitle }}

@if (session('success')) @endif @if (session('error')) @endif
Live Gold Price
LIVE Updated {{ $lastUpdated ? $lastUpdated->format('h:i A') : 'N/A' }}
@php $currentPrice = collect($currentPrice)->sortKeysDesc()->all(); @endphp @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.

Your Gold Holdings
{{ number_format($vaultTotal, 5) }} g

Total available to sell · {{ $user->user_name }}

Holdings shown reflect the account currently selected in the form.

@foreach ($vaultHoldings as $purity => $grams)
{{ $purity }} {{ number_format($grams, 5) }}g
@endforeach

Sell orders cannot exceed the gold you currently hold.

Sell Gold

Fill in the details to place your sell order

@csrf
{{ $user->user_name }} ({{ $user->user_id }})
@foreach ($spreads as $item)
first ? 'checked' : '' }}>
@endforeach
g
You cannot sell more than your available balance.
*Minimum weight 0.01 gram · Available: 0.00 g
Gold Value RM 0.00
@foreach ($additional as $addCharge) @if ($addCharge->type == 'Fixed Amount')
{{ $addCharge->name }} RM{{ number_format($addCharge->amount, 2) }}
@endif @if ($addCharge->type == 'Percent')
{{ $addCharge->name }} RM0.00 ({{ number_format($addCharge->amount, 2) }}%)
@endif @endforeach
You Will Receive RM 0.00
@include('partials.footer')