@extends("front/layout.master") @section('title',__('staticwords.ShoppingCart').' | ') @section("body")
@php $pro = Session('pro_qty'); $stock = session('stock'); $value = Session::get('cart'); if (!empty($auth)) { $cart_table = App\Cart::where('user_id', $auth->id) ->get(); $count = App\Cart::where('user_id', $auth->id) ->count(); } else { if (isset($value)) { $count = count($value); } else { $count = 0; } } if(Auth::check()){ $usercart = $cart_table; }else{ $usercart = Session::get('cart'); } @endphp