<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">

<th:block layout:fragment="pagetitle">
	<!--page title-->
	<div th:replace="partials/title-meta :: title-meta('Checkout')"></div>
</th:block>

<head>
</head>

<body>
	<div layout:fragment="content">
		<div th:replace="partials/page-title :: page-title('Checkout','Ecommerce')"></div>
		<div class="row">
			<div class="col-xl-8">
				<div class="card">
					<div class="card-body checkout-tab">

						<form action="#">
							<div class="step-arrow-nav mt-n3 mx-n3 mb-3">

								<ul class="nav nav-pills nav-justified custom-nav" role="tablist">
									<li class="nav-item" role="presentation">
										<button class="nav-link fs-15 p-3 active" id="pills-bill-info-tab" data-bs-toggle="pill" data-bs-target="#pills-bill-info" type="button" role="tab" aria-controls="pills-bill-info" aria-selected="true">
											<i class="ri-user-2-line fs-16 p-2 bg-soft-primary text-primary rounded-circle align-middle me-2"></i>
											Personal Info
										</button>
									</li>
									<li class="nav-item" role="presentation">
										<button class="nav-link fs-15 p-3" id="pills-bill-address-tab" data-bs-toggle="pill" data-bs-target="#pills-bill-address" type="button" role="tab" aria-controls="pills-bill-address" aria-selected="false">
											<i class="ri-truck-line fs-16 p-2 bg-soft-primary text-primary rounded-circle align-middle me-2"></i>
											Shipping Info
										</button>
									</li>
									<li class="nav-item" role="presentation">
										<button class="nav-link fs-15 p-3" id="pills-payment-tab" data-bs-toggle="pill" data-bs-target="#pills-payment" type="button" role="tab" aria-controls="pills-payment" aria-selected="false">
											<i class="ri-bank-card-line fs-16 p-2 bg-soft-primary text-primary rounded-circle align-middle me-2"></i>
											Payment Info
										</button>
									</li>
									<li class="nav-item" role="presentation">
										<button class="nav-link fs-15 p-3" id="pills-finish-tab" data-bs-toggle="pill" data-bs-target="#pills-finish" type="button" role="tab" aria-controls="pills-finish" aria-selected="false">
											<i class="ri-checkbox-circle-line fs-16 p-2 bg-soft-primary text-primary rounded-circle align-middle me-2"></i>
											Finish
										</button>
									</li>
								</ul>
							</div>

							<div class="tab-content">
								<div class="tab-pane fade show active" id="pills-bill-info" role="tabpanel" aria-labelledby="pills-bill-info-tab">
									<div>
										<h5 class="mb-1">Billing Information</h5>
										<p class="text-muted mb-4">Please fill all information below</p>
									</div>

									<div>
										<div class="row">
											<div class="col-sm-6">
												<div class="mb-3">
													<label for="billinginfo-firstName" class="form-label">First
														Name</label>
													<input type="text" class="form-control" id="billinginfo-firstName" placeholder="Enter first name" value="">
												</div>
											</div>

											<div class="col-sm-6">
												<div class="mb-3">
													<label for="billinginfo-lastName" class="form-label">Last
														Name</label>
													<input type="text" class="form-control" id="billinginfo-lastName" placeholder="Enter last name" value="">
												</div>
											</div>
										</div>

										<div class="row">
											<div class="col-sm-6">
												<div class="mb-3">
													<label for="billinginfo-email" class="form-label">Email <span class="text-muted">(Optional)</span></label>
													<input type="email" class="form-control" id="billinginfo-email" placeholder="Enter email">
												</div>
											</div>

											<div class="col-sm-6">
												<div class="mb-3">
													<label for="billinginfo-phone" class="form-label">Phone</label>
													<input type="text" class="form-control" id="billinginfo-phone" placeholder="Enter phone no.">
												</div>
											</div>
										</div>

										<div class="mb-3">
											<label for="billinginfo-address" class="form-label">Address</label>
											<textarea class="form-control" id="billinginfo-address" placeholder="Enter address" rows="3"></textarea>
										</div>

										<div class="row">
											<div class="col-md-4">
												<div class="mb-3">
													<label for="country" class="form-label">Country</label>
													<select class="form-select" id="country" data-plugin="choices">
														<option value="">Select Country...</option>
														<option selected>United States</option>
													</select>
												</div>
											</div>

											<div class="col-md-4">
												<div class="mb-3">
													<label for="state" class="form-label">State</label>
													<select class="form-select" id="state" data-plugin="choices">
														<option value="">Select State...</option>
														<option value="Alabama">Alabama</option>
														<option value="Alaska">Alaska</option>
														<option value="American Samoa">American Samoa</option>
														<option value="California" selected>California</option>
														<option value="Colorado">Colorado</option>
														<option value="District Of Columbia">District Of Columbia
														</option>
														<option value="Florida">Florida</option>
														<option value="Georgia">Georgia</option>
														<option value="Guam">Guam</option>
														<option value="Hawaii">Hawaii</option>
														<option value="Idaho">Idaho</option>
														<option value="Kansas">Kansas</option>
														<option value="Louisiana">Louisiana</option>
														<option value="Montana">Montana</option>
														<option value="Nevada">Nevada</option>
														<option value="New Jersey">New Jersey</option>
														<option value="New Mexico">New Mexico</option>
														<option value="New York">New York</option>
													</select>
												</div>
											</div>

											<div class="col-md-4">
												<div class="mb-3">
													<label for="zip" class="form-label">Zip Code</label>
													<input type="text" class="form-control" id="zip" placeholder="Enter zip code">
												</div>
											</div>
										</div>

										<div class="d-flex align-items-start gap-3 mt-3">
											<button type="button" class="btn btn-secondary btn-label right ms-auto nexttab" data-nexttab="pills-bill-address-tab">
												<i class="ri-truck-line label-icon align-middle fs-16 ms-2"></i>Proceed
												to Shipping
											</button>
										</div>
									</div>
								</div>
								<!-- end tab pane -->

								<div class="tab-pane fade" id="pills-bill-address" role="tabpanel" aria-labelledby="pills-bill-address-tab">
									<div>
										<h5 class="mb-1">Shipping Information</h5>
										<p class="text-muted mb-4">Please fill all information below</p>
									</div>

									<div class="mt-4">
										<div class="d-flex align-items-center mb-2">
											<div class="flex-grow-1">
												<h5 class="fs-14 mb-0">Saved Address</h5>
											</div>
											<div class="flex-shrink-0">
												<!-- Button trigger modal -->
												<button type="button" class="btn btn-sm btn-info mb-3" data-bs-toggle="modal" data-bs-target="#addAddressModal">
													Add Address
												</button>
											</div>
										</div>
										<div class="row gy-3">
											<div class="col-lg-4 col-sm-6">
												<div class="form-check card-radio">
													<input id="shippingAddress01" name="shippingAddress" type="radio" class="form-check-input" checked>
													<label class="form-check-label" for="shippingAddress01">
														<span class="mb-4 fw-semibold d-block text-muted text-uppercase">Home
															Address</span>

														<span class="fs-14 mb-2 d-block">Marcus Alfaro</span>
														<span class="text-muted fw-normal text-wrap mb-1 d-block">4739
															Bubby Drive Austin, TX 78729</span>
														<span class="text-muted fw-normal d-block">Mo.
															012-345-6789</span>
													</label>
												</div>
												<div class="d-flex flex-wrap p-2 py-1 bg-light rounded-bottom border mt-n1">
													<div>
														<a href="#" class="d-block text-body p-1 px-2" data-bs-toggle="modal" data-bs-target="#addAddressModal"><i class="ri-pencil-fill text-muted align-bottom me-1"></i>
															Edit</a>
													</div>
													<div>
														<a href="#" class="d-block text-body p-1 px-2" data-bs-toggle="modal" data-bs-target="#removeItemModal"><i class="ri-delete-bin-fill text-muted align-bottom me-1"></i>
															Remove</a>
													</div>
												</div>
											</div>
											<div class="col-lg-4 col-sm-6">
												<div class="form-check card-radio">
													<input id="shippingAddress02" name="shippingAddress" type="radio" class="form-check-input">
													<label class="form-check-label" for="shippingAddress02">
														<span class="mb-4 fw-semibold d-block text-muted text-uppercase">Office
															Address</span>

														<span class="fs-14 mb-2 d-block">James Honda</span>
														<span class="text-muted fw-normal text-wrap mb-1 d-block">1246
															Virgil Street Pensacola, FL 32501</span>
														<span class="text-muted fw-normal d-block">Mo.
															012-345-6789</span>
													</label>
												</div>
												<div class="d-flex flex-wrap p-2 py-1 bg-light rounded-bottom border mt-n1">
													<div>
														<a href="#" class="d-block text-body p-1 px-2" data-bs-toggle="modal" data-bs-target="#addAddressModal"><i class="ri-pencil-fill text-muted align-bottom me-1"></i>
															Edit</a>
													</div>
													<div>
														<a href="#" class="d-block text-body p-1 px-2" data-bs-toggle="modal" data-bs-target="#removeItemModal"><i class="ri-delete-bin-fill text-muted align-bottom me-1"></i>
															Remove</a>
													</div>
												</div>
											</div>
										</div>

										<div class="mt-4">
											<h5 class="fs-14 mb-3">Shipping Method</h5>

											<div class="row g-4">
												<div class="col-lg-6">
													<div class="form-check card-radio">
														<input id="shippingMethod01" name="shippingMethod" type="radio" class="form-check-input" checked>
														<label class="form-check-label" for="shippingMethod01">
															<span class="fs-20 float-end mt-2 text-wrap d-block fw-semibold">Free</span>
															<span class="fs-14 mb-1 text-wrap d-block">Free
																Delivery</span>
															<span class="text-muted fw-normal text-wrap d-block">Expected
																Delivery 3 to 5 Days</span>
														</label>
													</div>
												</div>
												<div class="col-lg-6">
													<div class="form-check card-radio">
														<input id="shippingMethod02" name="shippingMethod" type="radio" class="form-check-input" checked>
														<label class="form-check-label" for="shippingMethod02">
															<span class="fs-20 float-end mt-2 text-wrap d-block fw-semibold">$24.99</span>
															<span class="fs-14 mb-1 text-wrap d-block">Express
																Delivery</span>
															<span class="text-muted fw-normal text-wrap d-block">Delivery
																within 24hrs.</span>
														</label>
													</div>
												</div>
											</div>
										</div>
									</div>

									<div class="d-flex align-items-start gap-3 mt-4">
										<button type="button" class="btn btn-light btn-label previestab" data-previous="pills-bill-info-tab"><i class="ri-arrow-left-line label-icon align-middle fs-16 me-2"></i>Back
											to Personal Info</button>
										<button type="button" class="btn btn-primary btn-label right ms-auto nexttab" data-nexttab="pills-payment-tab"><i class="ri-bank-card-line label-icon align-middle fs-16 ms-2"></i>Continue
											to Payment</button>
									</div>
								</div>
								<!-- end tab pane -->

								<div class="tab-pane fade" id="pills-payment" role="tabpanel" aria-labelledby="pills-payment-tab">
									<div>
										<h5 class="mb-1">Payment Selection</h5>
										<p class="text-muted mb-4">Please select and enter your billing information</p>
									</div>

									<div class="row g-4">
										<div class="col-lg-4 col-sm-6">
											<div data-bs-toggle="collapse" data-bs-target="#paymentmethodCollapse.show" aria-expanded="false" aria-controls="paymentmethodCollapse">
												<div class="form-check card-radio">
													<input id="paymentMethod01" name="paymentMethod" type="radio" class="form-check-input">
													<label class="form-check-label" for="paymentMethod01">
														<span class="fs-16 text-muted me-2"><i class="ri-paypal-fill align-bottom"></i></span>
														<span class="fs-14 text-wrap">Paypal</span>
													</label>
												</div>
											</div>
										</div>
										<div class="col-lg-4 col-sm-6">
											<div data-bs-toggle="collapse" data-bs-target="#paymentmethodCollapse" aria-expanded="true" aria-controls="paymentmethodCollapse">
												<div class="form-check card-radio">
													<input id="paymentMethod02" name="paymentMethod" type="radio" class="form-check-input" checked>
													<label class="form-check-label" for="paymentMethod02">
														<span class="fs-16 text-muted me-2"><i class="ri-bank-card-fill align-bottom"></i></span>
														<span class="fs-14 text-wrap">Credit / Debit Card</span>
													</label>
												</div>
											</div>
										</div>

										<div class="col-lg-4 col-sm-6">
											<div data-bs-toggle="collapse" data-bs-target="#paymentmethodCollapse.show" aria-expanded="false" aria-controls="paymentmethodCollapse">
												<div class="form-check card-radio">
													<input id="paymentMethod03" name="paymentMethod" type="radio" class="form-check-input">
													<label class="form-check-label" for="paymentMethod03">
														<span class="fs-16 text-muted me-2"><i class="ri-money-dollar-box-fill align-bottom"></i></span>
														<span class="fs-14 text-wrap">Cash on Delivery</span>
													</label>
												</div>
											</div>
										</div>
									</div>

									<div class="collapse show" id="paymentmethodCollapse">
										<div class="card p-4 border shadow-none mb-0 mt-4">
											<div class="row gy-3">
												<div class="col-md-12">
													<label for="cc-name" class="form-label">Name on card</label>
													<input type="text" class="form-control" id="cc-name" placeholder="Enter name">
													<small class="text-muted">Full name as displayed on card</small>
												</div>

												<div class="col-md-6">
													<label for="cc-number" class="form-label">Credit card number</label>
													<input type="text" class="form-control" id="cc-number" placeholder="xxxx xxxx xxxx xxxx">
												</div>

												<div class="col-md-3">
													<label for="cc-expiration" class="form-label">Expiration</label>
													<input type="text" class="form-control" id="cc-expiration" placeholder="MM/YY">
												</div>

												<div class="col-md-3">
													<label for="cc-cvv" class="form-label">CVV</label>
													<input type="text" class="form-control" id="cc-cvv" placeholder="xxx">
												</div>
											</div>
										</div>
										<div class="text-muted mt-2 fst-italic">
											<i data-feather="lock" class="text-muted icon-xs"></i> Your transaction is
											secured with SSL encryption
										</div>
									</div>

									<div class="d-flex align-items-start gap-3 mt-4">
										<button type="button" class="btn btn-light btn-label previestab" data-previous="pills-bill-address-tab"><i class="ri-arrow-left-line label-icon align-middle fs-16 me-2"></i>Back
											to Shipping</button>
										<button type="button" class="btn btn-secondary btn-label right ms-auto nexttab" data-nexttab="pills-finish-tab"><i class="ri-shopping-basket-line label-icon align-middle fs-16 ms-2"></i>Complete
											Order</button>
									</div>
								</div>
								<!-- end tab pane -->

								<div class="tab-pane fade" id="pills-finish" role="tabpanel" aria-labelledby="pills-finish-tab">
									<div class="text-center py-5">

										<div class="mb-4">
											<lord-icon src="https://cdn.lordicon.com/lupuorrc.json" trigger="loop" colors="primary:#0ab39c,secondary:#405189" style="width:120px;height:120px"></lord-icon>
										</div>
										<h5>Thank you ! Your Order is Completed !</h5>
										<p class="text-muted">You will receive an order confirmation email with details
											of your order.</p>

										<h5 class="fw-semibold">Order ID: <a href="/apps-ecommerce-order-details" class="text-decoration-underline">VZ2451</a></h5>
									</div>
								</div>
								<!-- end tab pane -->
							</div>
							<!-- end tab content -->
						</form>
					</div>
					<!-- end card body -->
				</div>
				<!-- end card -->
			</div>
			<!-- end col -->

			<div class="col-xl-4">
				<div class="card">
					<div class="card-header">
						<div class="d-flex">
							<div class="flex-grow-1">
								<h5 class="card-title mb-0">Order Summary</h5>
							</div>
						</div>
					</div>
					<div class="card-body">
						<div class="table-responsive table-card">
							<table class="table table-borderless align-middle mb-0">
								<thead class="table-light text-muted">
									<tr>
										<th style="width: 90px;" scope="col">Product</th>
										<th scope="col">Product Info</th>
										<th scope="col" class="text-end">Price</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>
											<div class="avatar-md bg-light rounded p-1">
												<img src="/assets/images/products/img-8.png" alt="" class="img-fluid d-block">
											</div>
										</td>
										<td>
											<h5 class="fs-14"><a href="/apps-ecommerce-product-details" class="text-dark">Sweatshirt for Men (Pink)</a></h5>
											<p class="text-muted mb-0">$ 119.99 x 2</p>
										</td>
										<td class="text-end">$ 239.98</td>
									</tr>
									<tr>
										<td>
											<div class="avatar-md bg-light rounded p-1">
												<img src="/assets/images/products/img-7.png" alt="" class="img-fluid d-block">
											</div>
										</td>
										<td>
											<h5 class="fs-14"><a href="/apps-ecommerce-product-details" class="text-dark">Noise Evolve Smartwatch</a></h5>
											<p class="text-muted mb-0">$ 94.99 x 1</p>
										</td>
										<td class="text-end">$ 94.99</td>
									</tr>
									<tr>
										<td>
											<div class="avatar-md bg-light rounded p-1">
												<img src="/assets/images/products/img-3.png" alt="" class="img-fluid d-block">
											</div>
										</td>
										<td>
											<h5 class="fs-14"><a href="/apps-ecommerce-product-details" class="text-dark">350 ml Glass Grocery Container</a></h5>
											<p class="text-muted mb-0">$ 24.99 x 1</p>
										</td>
										<td class="text-end">$ 24.99</td>
									</tr>
									<tr>
										<td class="fw-semibold" colspan="2">Sub Total :</td>
										<td class="fw-semibold text-end">$ 359.96</td>
									</tr>
									<tr>
										<td colspan="2">Discount <span class="text-muted">(VELZON15)</span> : </td>
										<td class="text-end">- $ 50.00</td>
									</tr>
									<tr>
										<td colspan="2">Shipping Charge :</td>
										<td class="text-end">$ 24.99</td>
									</tr>
									<tr>
										<td colspan="2">Estimated Tax (12%): </td>
										<td class="text-end">$ 18.20</td>
									</tr>
									<tr class="table-active">
										<th colspan="2">Total (USD) :</th>
										<td class="text-end">
											<span class="fw-semibold">
												$353.15
											</span>
										</td>
									</tr>
								</tbody>
							</table>

						</div>
					</div>
					<!-- end card body -->
				</div>
				<!-- end card -->
			</div>
			<!-- end col -->
		</div>
		<!--end row-->
	</div>


	<th:block layout:fragment="modal">
		<!-- removeItemModal -->
		<div id="removeItemModal" class="modal fade zoomIn" tabindex="-1" aria-hidden="true">
			<div class="modal-dialog modal-dialog-centered">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
					</div>
					<div class="modal-body">
						<div class="mt-2 text-center">
							<lord-icon src="https://cdn.lordicon.com/gsqxdxog.json" trigger="loop" colors="primary:#f7b84b,secondary:#f06548" style="width:100px;height:100px"></lord-icon>
							<div class="mt-4 pt-2 fs-15 mx-4 mx-sm-5">
								<h4>Are you sure ?</h4>
								<p class="text-muted mx-4 mb-0">Are you sure you want to remove this address ?</p>
							</div>
						</div>
						<div class="d-flex gap-2 justify-content-center mt-4 mb-2">
							<button type="button" class="btn w-sm btn-light" data-bs-dismiss="modal">Close</button>
							<button type="button" class="btn w-sm btn-danger ">Yes, Delete It!</button>
						</div>
					</div>

				</div><!-- /.modal-content -->
			</div><!-- /.modal-dialog -->
		</div><!-- /.modal -->

		<!-- editItemModal -->
		<div id="addAddressModal" class="modal fade zoomIn" tabindex="-1" aria-labelledby="addAddressModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-dialog-centered">
				<div class="modal-content">
					<div class="modal-header">
						<h5 class="modal-title" id="addAddressModalLabel">Address</h5>
						<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
					</div>
					<div class="modal-body">
						<div>
							<div class="mb-3">
								<label for="addaddress-Name" class="form-label">Name</label>
								<input type="text" class="form-control" id="addaddress-Name" placeholder="Enter name">
							</div>

							<div class="mb-3">
								<label for="addaddress-textarea" class="form-label">Address</label>
								<textarea class="form-control" id="addaddress-textarea" placeholder="Enter address" rows="2"></textarea>
							</div>

							<div class="mb-3">
								<label for="addaddress-Name" class="form-label">Phone</label>
								<input type="text" class="form-control" id="addaddress-Name" placeholder="Enter phone no.">
							</div>

							<div class="mb-3">
								<label for="state" class="form-label">Address Type</label>
								<select class="form-select" id="state" data-choices data-choices-search-false>
									<option value="homeAddress">Home (7am to 10pm)</option>
									<option value="officeAddress">Office (11am to 7pm)</option>
								</select>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-light" data-bs-dismiss="modal">Close</button>
						<button type="button" class="btn btn-success">Save</button>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal-dialog -->
		</div><!-- /.modal -->
	</th:block>
	<th:block layout:fragment="pagejs">

		<!-- init js -->
		<script src="/assets/js/pages/ecommerce-product-checkout.init.js"></script>
		<script>
			document.querySelector(".main-content").classList.add("overflow-hidden");
		</script>
	</th:block>
</body>

</html>