@extends('frontend.template.layout') @section('content')
{{-- Toastr notifications (CSS loaded globally in includes.css) --}} @if(session('message')) @endif @if(session('error')) @endif {{-- Notice via query param will show a popup even if session cookie is lost during external redirect --}} @if(request()->has('notice')) @endif @if(count($items) > 0)
@php $subtotal = 0; $delivery = 20; $discount = 0; @endphp @foreach ($items as $item) @php $itemTotal = $item['price'] * $item['quantity']; $subtotal += $itemTotal; $discount += $item['discount']; @endphp @endforeach
Product Price Quantity Total Action
{{ $item['name'] }}
৳{{ number_format($item['price'], 2) }} {{--
--}} {{-- @csrf --}}
{{--
--}}
৳{{ number_format($itemTotal, 2) }} {{--
--}} {{-- @csrf @method('DELETE') --}} {{--
--}}

Select One

{{--
--}} {{-- @csrf --}}

{{-- --}} {{--
--}}

Cart Totals

  • Cart Subtotal ৳{{ number_format($subtotal, 2) }}
  • Delivery Charge ৳ 0
  • Discount
  • Order Total ৳{{ number_format($subtotal - (session('cart_discount')->amount ?? 0), 2) }}
{{--
@csrf --}}
{{--
--}}
@else

Your cart is empty

Looks like you haven't added any items to your cart yet

{{-- Continue Shopping --}}
@endif
@push('scripts') @endpush @endsection