@php $subtotal = Cart::instance('shopping')->subtotal(); $subtotal = str_replace(',', '', $subtotal); $subtotal = str_replace('.00', '', $subtotal); $shipping = Session::get('shipping') ? Session::get('shipping') : 0; // dd(); // dd(Cart::instance('shopping')->content()); @endphp
@forelse (Cart::instance('shopping')->content() as $value) @empty @endforelse
Image Product Details Model Price Quantity Total
{{ $value->name }} {{ Str::limit($value->name, 35) }}
Size: {{ $value->options->product_size }} | Color: {{ $value->options->product_color }}
{{ $value->options->product_code ?? 'N/A' }} ৳{{ number_format($value->price, 2) }}
৳{{ number_format($value->price * $value->qty, 2) }}

Your cart is empty!

Shop Now

What would you like to do next?

@php $total = 0; $subTotal = 0; foreach (Cart::instance('shopping')->content() as $item) { $subTotal += $item->price * $item->qty; } // $discount = 0; // চাইলে পরে logic বসাবে // $vatRate = 0; // 5% VAT example // $vat = $subTotal * $vatRate; // $total = $subTotal - $discount + $vat; $total = $subTotal; @endphp {{-- --}}
Sub-Total: {{ number_format($subTotal, 2) }} BDT
Discount: {{ number_format($discount, 2) }} BDT
VAT: {{ number_format($vat, 2) }} BDT
Total: {{ number_format($total, 2) }} BDT
{{-- continue --}} checkout