Your order

@foreach(\App\Cart::where('user_id',Auth::id())->orderBy('id')->get() as $n=>$cart_item) @endforeach
{{$cart_item->quantity}}x {{$cart_item->item_name}} {{$cart_item->item_price}}

@if(DB::table('cart')->where('user_id', Auth::id())->sum('item_price')>0)
TOTAL {{$price = DB::table('cart') ->where('user_id', Auth::id()) ->sum('item_price')}}

Order now
@else Empty Cart
@endif