@php
use App\Models\Cart;
$carts = Cart::with('product','productvariant', 'product.images')
->where('cart_session_id',Session::get('cart_session_id'))
->latest()
->get();
$sum = Cart::where('cart_session_id',Session::get('cart_session_id'))
->sum('unit_total');
@endphp
{{ $countCart ?? 0 }}
Cart
@forelse($carts as $cart)
{{--
--}}
{{--
Save 20%--}}
{{--
1000৳
--}}
{{--
--}}
@empty
No products in cart
@endforelse
{{ $sum }} BDT
{{--
--}}
{{-- --}}
{{-- 1150৳--}}
{{--
--}}
{{--
--}}
{{-- To find out your shipping cost , Please proceed to--}}
{{-- checkout.--}}
{{--
--}}
@push('scripts')
@endpush