@if (auth()->check() && in_array(auth()->user()->roles->pluck('name')->implode(' '), ['User', 'Super Admin']))
Gold Record
{{ Auth::user()->gold->count() }}
@endif
@if (auth()->check() && in_array(auth()->user()->roles->pluck('name')->implode(' '), ['User', 'Super Admin']))
Total Gold Weight
@php
$totalWeight = 0;
foreach(Auth::user()->gold as $goldRecord) {
$totalWeight += $goldRecord->weight;
}
echo $totalWeight;
@endphp g
@endif
@if (auth()->check() && in_array(auth()->user()->roles->pluck('name')->implode(' '), ['User', 'Super Admin']))
Gold Price 999(24k)
{{ app('App\Http\Controllers\ScraperController')->goldPrice() }}/g
({{ app('App\Http\Controllers\ScraperController')->goldChange() }}%)
@endif
@if (auth()->check() && in_array(auth()->user()->roles->pluck('name')->implode(' '), ['Admin', 'Super Admin']))
Total Users
{{ app('App\Http\Controllers\UserController')->totalUser() }}
@endif
@if (auth()->check() && in_array(auth()->user()->roles->pluck('name')->implode(' '), ['Admin', 'Super Admin']))
New Users
(Last 7 Days)
{{ app('App\Http\Controllers\UserController')->newUser() }}
@endif
@if (auth()->check() && in_array(auth()->user()->roles->pluck('name')->implode(' '), ['Admin', 'Super Admin']))
Number of
Pawnshop Owner
{{ app('App\Http\Controllers\UserController')->typeUser() }}
@endif