@extends('layouts.app') @section('content')
@if(session('cart'))
@if(session()->has('coupon'))

Added Coupon Already!

@else

Have a Coupon? Click here to Enter your Code

If you have a coupon code, please apply it below.

@csrf @method('PUT')
@endif
@endif
@csrf
@guest

Billing Details

@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('password') {{ $message }} @enderror
@endguest

Your Order

@if(session('cart')) @foreach(session('cart') as $cartItem) @endforeach @endif @if(session()->has('coupon')) @endif
Products Total
{{$cartItem['name']}} × {{$cartItem['quantity']}} NGN {{number_format($cartItem['cost'] * $cartItem['quantity'])}}.00
Closest Pickup Location
Subtotal NGN {{number_format(\App\Entities\Carts\Cart::totalPrice())}}.00
Delivery NGN {{number_format(\App\Entities\Carts\Cart::$delivery)}}.00
Coupon Value NGN {{session('coupon')['value']}}.00
Payment Options
    {{--
  • --}} {{--
    --}} {{-- --}} {{-- --}} {{--
    --}} {{--
  • --}} {{--
  • --}} {{--
    --}} {{-- --}} {{-- --}} {{--
    --}} {{--
  • --}}
  • {{--
  • --}} {{--
    --}} {{-- --}} {{-- --}} {{--
    --}} {{--
  • --}}
Total @if(session()->has('coupon')) NGN {{number_format(\App\Entities\Carts\Cart::totalPriceWithCoupon())}}.00 @else NGN {{number_format(\App\Entities\Carts\Cart::totalPrice() + \App\Entities\Carts\Cart::$delivery)}}.00 @endif
@include('includes.productfooter') @endsection