@php $userRole = auth()->user()->roles[0]->id; $page_name = 'Dashboard'; @endphp @include('partial.header') @php $box_1 = 'primary'; $box_2 = 'blue'; $box_3 = 'red'; $box_4 = 'yellow'; $box_5 = 'secondary'; $box_0 = 'green'; $count = 1; // Dummy User Data (Replace with actual dynamic data) $user = auth()->user(); $userInitial = strtoupper(substr($user->name, 0, 1)); $balance = 0; // Replace with dynamic balance $limit = 0; // Replace with dynamic limit @endphp @include('partial.loader')
@if (session('message'))
{{ session('message') }}
@endif
{{ $userInitial }}
Hi, {{ $user->name }}

Mobile: {{ $user->phone ?? 'N/A' }}

Super Admin
Balance: {{ number_format($balance, 2) }} Limit: {{ number_format($limit, 2) }}
@if ($shifts) @foreach ($shifts as $val) @if ($val['declare_number'] && $val['shift_date']==$date)
{{ $val['shift_name'] }}
DATE : {{ date('d/m/Y', strtotime($val['shift_date'])) }}
RESULT :{{ $val['declare_number'] }}
@else
{{ $val['shift_name'] }}
SALE {{ round($shiftTotalData[$val['id']]) ?? 0 }}
COLL {{ $shiftTotalSale[$val['id']] ?? 0 }}
@endif @php $count++; @endphp @endforeach @endif
@include('site.mobile.layout.navbar') @include('partial.footer')