@extends('layouts.main-app') @section('title', 'Place Order') @section('content') @include('layouts.navbar')

My Cart

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf

Billing Information

first_name ? 'readonly' : '' }}>
last_name ? 'readonly' : '' }}>
middle_name ? 'readonly' : '' }}>
email ? 'readonly' : '' }}>
phone_number ? 'readonly' : '' }}>
street_address ? 'readonly' : '' }}>
city ? 'readonly' : '' }}>
state ? 'readonly' : '' }}>
country ? 'readonly' : '' }}>
zip_code ? 'readonly' : '' }}>

ORDER SUMMARY

Product

Price

@php // Retrieve cart data from session $cartData = session('cart_data', []); $subtotal = 0; // Calculate the subtotal of the products in the cart foreach ($cartData as $item) { $subtotal += $item['subtotal']; } // Retrieve additional data $shipping = session('shipping', 0); // Placeholder for shipping cost $voucherCode = session('voucher_code'); $discount = session('voucher_discount', 0); // Placeholder for discount $redeemedPoints = session('redeem_points', 0); // Default to 0 if not set $tax = session('tax', 40.00); // Placeholder for tax value $shipping_fee_total = $shipping_fee; // Calculate the total amount $total = $shipping_fee_total + $subtotal - $redeemedPoints - $discount; @endphp @foreach($cartData as $item)

{{ $item['product_name'] }} x{{ $item['quantity'] }}

₱{{ number_format($item['subtotal'], 2) }}

@endforeach

Subtotal

₱{{ number_format($subtotal, 2) }}


Shipping Fee

{{ number_format($shipping_fee_total, 2) }}

Redeemed Points

-₱{{ number_format($redeemedPoints, 2) }}

Discounts

-₱{{ number_format($discount, 2) }}


Total

₱{{ number_format($total, 2) }}






Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our privacy policy

@include('layouts.footer') @endsection