@yield('page_css')
@php $authUser = Auth::user(); $authName = $authUser->name ?? $authUser->full_name ?? 'User'; $authRole = optional($authUser->role)->role_name ?? 'Admin'; $authPhoto = ($authUser && $authUser->photo) ? 'uploads/employee/' . $authUser->photo : 'admin_assets/img/default.png'; try { $lowStockCount = \Illuminate\Support\Facades\DB::table('products')->where('alert_qty', '>', 0)->count(); } catch (\Exception $e) { $lowStockCount = 0; } @endphp
{{ explode(' ', $authName)[0] }}
{{ $authRole }}
@if($lowStockCount > 0)
@endif
Notifications ({{ $lowStockCount }})
View Low Stock
@php $siteSettings = \App\SiteCommonHelper::getSiteSettings(); @endphp @if(!empty($siteSettings) && file_exists( public_path().'/uploads/logo/'.$siteSettings->site_logo ) && !empty($siteSettings->site_logo))
@else
@endif
Quick Sale
@if(isset($lowStockCount) && $lowStockCount > 0)
{{ $lowStockCount }}
@endif
Low Stock Notifications ({{ $lowStockCount ?? 0 }})
See All Products
{{ $authName }}
{{ $authRole }}
My Profile
Change Password
Logout
Navigation
Dashboard