@extends('main-page') @section('title') Checkout @endsection @section('main-contents')

THANK YOU FOR YOUR ORDER!

YOUR ORDER #{{$orderDetails->orderId}} HAS BEEN PLACED. YOU WILL RECIEVE ORDER CONFIRMATION EMAIL
ON {{$userEmail}}

Shipping Address

{{ $shippingAddress->first_name }} {{ $shippingAddress->last_name }}

{{ $shippingAddress->address1 }}

@if($shippingAddress->address2)

{{ $shippingAddress->address2 }}

@endif

{{ $shippingAddress->city }}, {{ $shippingAddress->state }} {{ $shippingAddress->zip }}

{{ $shippingAddress->country }}

{{ $shippingAddress->phone }}

Billing Address

{{ $billingAddress->first_name }} {{ $billingAddress->last_name }}

{{ $billingAddress->address1 }}

@if($billingAddress->address2)

{{ $billingAddress->address2 }}

@endif

{{ $billingAddress->city }}, {{ $billingAddress->state }} {{ $billingAddress->zip }}

{{ $billingAddress->country }}

{{ $billingAddress->phone }}

Payment Method

@if ($paymentInfo->method == 'mastercard') logo @endif

{{ $paymentInfo->method }}

***{{ $paymentInfo->last_4 }}

Order summary

Items total

{{ number_format($orderDetails->grandTotal, 2) }}

Discounts

-{{ $orderDetails->discount }}

subtotal

{{ number_format($orderDetails->grandTotal - $orderDetails->discount, 2) }}

Shipping

0

Order total

{{ number_format($orderDetails->grandTotal - $orderDetails->discount, 2) }}

SHOPPING CART

@foreach($cartItems as $item)

{{$item->product_name}}

NAME: {{ $item->colorName ?? 'Green With Envy' }}

@if ($item->type != 'none')
@endif @if ($item->fragranceName != 'none')
@endif

PRICE
{{$item->buyPrice-$item->discount}}

{{ $item->quantity }}

SUBTOTAL
{{$item->quantity * ($item->buyPrice-$item->discount)}}

@endforeach
@endsection