user() != null) { $user_id = Auth::user()->id; $cart = \App\Models\Cart::where('user_id', $user_id)->get(); } else { $temp_user_id = Session()->get('temp_user_id'); if ($temp_user_id) { $cart = \App\Models\Cart::where('temp_user_id', $temp_user_id)->get(); } } ?> 0): ?> 0