@if (session()->has('success'))
{{ session()->get('success') }}
@endif @if (session()->has('error'))
{{ session()->get('error') }}
@endif {{-- @foreach ($cartItems as $item) @endforeach --}} @php $total = 0; @endphp @foreach ($cartItems as $item) @php $total += $item->price * $item->quantity; @endphp @endforeach
Product Quantity Total
{{ $item->name }} (Nrs {{ $item->price }})

Nrs. {{ $item->price * $item->quantity }}
{{ $item->name }}
Nrs {{ $item->price }}
@csrf

Nrs. {{ $item->price * $item->quantity }}
Discount codes
Cart total
  • Subtotal Nrs {{ $total }}
  • Total Nrs {{ $total }}
{{-- --}}