@extends('frontEnd.layouts.master') @section('title','Shopping Cart') @section('content')
@php $subtotal = Cart::instance('shopping')->subtotal(); $subtotal = str_replace(',', '', $subtotal); $subtotal = str_replace('.00', '', $subtotal); view()->share('subtotal', $subtotal); $shipping = Session::get('shipping') ? Session::get('shipping') : 0; $discount = Session::get('discount') ? Session::get('discount') : 0; $grandTotal = ($subtotal + $shipping) - $discount; $cartCount = Cart::instance('shopping')->count(); @endphp

Shopping Cart

@foreach($data as $value) @endforeach
Image Product Price Qty Total Remove
{{$value->name}} {{$value->price}} ৳
{{$value->price * $value->qty}} ৳
Cart Summary
Items {{ $cartCount }} (qty)
Total ৳{{ $subtotal }}
Shipping ৳{{ $shipping }}
Discount ৳{{ $discount }}
Total ৳{{ $grandTotal }}
{{-- Checkout button – ট্র্যাকিংয়ের জন্য ID দিলাম --}} PROCESS TO CHECKOUT
@endsection @push('script') @endpush