@extends('fontend_master') @section('content')

Shopping Cart

{{-- --}} @php $total = 0; @endphp {{-- @dd($cart) --}} @foreach ($cart as $row) @php $total += $row->price * $row->qty; @endphp {{-- --}} @endforeach
Image Product NameModelQuantity Unit Price Total
{{ $row->name }} {{ $row->product_code }}
@csrf
{{ number_format($row->price) }}৳ {{ number_format($row->price * $row->qty) }}৳
Sub-Total: {{ number_format($total) }}৳
Discount: @php $coupon = Session::get('coupon'); $discount = isset($coupon['discount']) ? number_format($coupon['discount']) : 0; @endphp {{ $discount }}৳
Total: @php $subtotal = isset($coupon['discount']) ? number_format(Cart::Subtotal() - $coupon['discount']) : number_format(Cart::Subtotal()); @endphp {{ $subtotal }} ৳

What would you like to do next?

Choose if you have a discount code or reward points you want to use or would like to estimate your delivery cost.

@csrf
@if ($totalQuantity > 0) @else @endif
@if (Session::has('warning')) @endif @if (Session::has('success')) @endif @if (Session::has('error')) @endif @endsection