@php
$assetPath = 'frontend_assets';
$detectedLang = strtoupper(session('lang_code', 'ENG'));
$user = auth('web')->user();
$sessionId = \Illuminate\Support\Facades\Session::get('cart_session_id');
$cartCountQuery = \Modules\Customer\Entities\Cart::query();
if ($user) {
$cartCountQuery->where('user_id', $user->id);
} elseif ($sessionId) {
$cartCountQuery->where('session_id', $sessionId);
} else {
$cartCountQuery->where('id', '<', 0);
}
$cartCount = $cartCountQuery->sum('quantity');
@endphp
@include('frontend::home.modals.notification')