update order detail
This commit is contained in:
parent
f1e0577bef
commit
e56dca452b
|
|
@ -36,54 +36,13 @@
|
|||
{{ $detail->reference->item->name ?? 'Product Name' }}
|
||||
</a>
|
||||
</h5>
|
||||
<div class="h6 mb-2">Rp {{ number_format($detail->price ?? 0, 0, ',', '.') }}</div>
|
||||
<div class="h6 mb-2">Rp {{ number_format($detail->unit_priceq ?? 0, 0, ',', '.') }}</div>
|
||||
<div class="fs-xs">Qty: {{ $detail->qty ?? 1 }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<!-- Default items for demo -->
|
||||
<div class="d-flex align-items-center">
|
||||
<a class="flex-shrink-0" href="shop-product-general-electronics.html">
|
||||
<img src="assets/img/shop/electronics/thumbs/01.png" width="110" alt="Smart Watch">
|
||||
</a>
|
||||
<div class="w-100 min-w-0 ps-2 ps-sm-3">
|
||||
<h5 class="d-flex animate-underline mb-2">
|
||||
<a class="d-block fs-sm fw-medium text-truncate animate-target"
|
||||
href="shop-product-general-electronics.html">Smart Watch Series 7, White</a>
|
||||
</h5>
|
||||
<div class="h6 mb-2">$429.00</div>
|
||||
<div class="fs-xs">Qty: 1</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center">
|
||||
<a class="flex-shrink-0" href="shop-product-general-electronics.html">
|
||||
<img src="assets/img/shop/electronics/thumbs/08.png" width="110" alt="iPhone 14">
|
||||
</a>
|
||||
<div class="w-100 min-w-0 ps-2 ps-sm-3">
|
||||
<h5 class="d-flex animate-underline mb-2">
|
||||
<a class="d-block fs-sm fw-medium text-truncate animate-target"
|
||||
href="shop-product-general-electronics.html">Apple iPhone 14 128GB White</a>
|
||||
</h5>
|
||||
<div class="h6 mb-2">$899.00</div>
|
||||
<div class="fs-xs">Qty: 1</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center">
|
||||
<a class="flex-shrink-0" href="shop-product-general-electronics.html">
|
||||
<img src="assets/img/shop/electronics/thumbs/09.png" width="110" alt="iPad Pro">
|
||||
</a>
|
||||
<div class="w-100 min-w-0 ps-2 ps-sm-3">
|
||||
<h5 class="d-flex animate-underline mb-2">
|
||||
<a class="d-block fs-sm fw-medium text-truncate animate-target"
|
||||
href="shop-product-general-electronics.html">Tablet Apple iPad Pro M2</a>
|
||||
</h5>
|
||||
<div class="h6 mb-2">$989.00</div>
|
||||
<div class="fs-xs">Qty: 1</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
|
@ -92,9 +51,9 @@
|
|||
<h6>Delivery</h6>
|
||||
<ul class="list-unstyled fs-sm mb-4">
|
||||
<li class="d-flex justify-content-between mb-1">
|
||||
Estimated delivery date:
|
||||
Tanggal Pemesanan:
|
||||
<span class="text-body-emphasis fw-medium text-end ms-2">
|
||||
{{ $order?->estimated_delivery_date ?? 'Feb 8, 2025 / 10:00 - 12:00' }}
|
||||
{{ $order?->created_at ?? '-' }}
|
||||
</span>
|
||||
</li>
|
||||
<li class="d-flex justify-content-between mb-1">
|
||||
|
|
@ -106,7 +65,7 @@
|
|||
<li class="d-flex justify-content-between">
|
||||
Shipping address:
|
||||
<span class="text-body-emphasis fw-medium text-end ms-2">
|
||||
{{ $order?->address?->location ?? '567 Cherry Lane Apt B12,<br>Harrisburg' }}
|
||||
{{ $order?->address?->location ?? '-' }}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -115,7 +74,7 @@
|
|||
<li class="d-flex justify-content-between mb-1">
|
||||
Payment method:
|
||||
<span class="text-body-emphasis fw-medium text-end ms-2">
|
||||
{{ $order?->payment_method ?? 'Cash on delivery' }}
|
||||
{{ $order?->payments->first()->method->payment_method ?? '-' }}
|
||||
</span>
|
||||
</li>
|
||||
<li class="d-flex justify-content-between mb-1">
|
||||
|
|
@ -127,7 +86,7 @@
|
|||
<li class="d-flex justify-content-between">
|
||||
Shipping:
|
||||
<span class="text-body-emphasis fw-medium text-end ms-2">
|
||||
Rp {{ number_format($order?->shipping_cost ?? 0, 0, ',', '.') }}
|
||||
Rp {{ number_format($order?->shipping_price ?? 0, 0, ',', '.') }}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Reference in New Issue