commit before consolodating payment methods
This commit is contained in:
@@ -224,28 +224,34 @@
|
||||
@endif
|
||||
|
||||
<div class="item-details">
|
||||
<h3>{{ $item['product']->name }}</h3>
|
||||
<h3>{{ $item['product']->name }}{{ $item['is_sample'] ? ' - Sample' : '' }}</h3>
|
||||
<p>{{ $item['product']->category->name }}</p>
|
||||
|
||||
@php
|
||||
$stockCost = 0;
|
||||
$stockUnit = $item['type'] === 'wallpaper' ? '/m' : '/m²';
|
||||
|
||||
if ($item['stock']) {
|
||||
if (!$item['is_sample'] && $item['stock']) {
|
||||
$stockCost = $item['type'] === 'wallpaper' ? $item['stock']->cost_per_meter : $item['stock']->cost_per_m2;
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if($item['stock'])
|
||||
@if($item['is_sample'])
|
||||
<p style="font-size: 0.9rem; color: #666;">
|
||||
Sample - Fixed Price: <span class="item-price">R{{ number_format(\App\Services\ShippingService::getSampleCost(), 2) }}</span>
|
||||
</p>
|
||||
@elseif($item['stock'])
|
||||
<p style="font-size: 0.9rem; color: #666;">
|
||||
{{ $item['stock']->name }}: <span class="item-price">R{{ number_format($stockCost, 2) }}{{ $stockUnit }}</span>
|
||||
</p>
|
||||
@endif
|
||||
|
||||
@if($item['type'] === 'wallpaper')
|
||||
<p style="color: #666; font-size: 0.9rem;">Length: {{ $item['length'] }}m</p>
|
||||
@elseif($item['type'] === 'mural')
|
||||
<p style="color: #666; font-size: 0.9rem;">Dimensions: {{ $item['width'] }}m × {{ $item['height'] }}m ({{ number_format($item['width'] * $item['height'], 2) }}m²)</p>
|
||||
@if(!$item['is_sample'])
|
||||
@if($item['type'] === 'wallpaper')
|
||||
<p style="color: #666; font-size: 0.9rem;">Length: {{ $item['length'] }}m</p>
|
||||
@elseif($item['type'] === 'mural')
|
||||
<p style="color: #666; font-size: 0.9rem;">Dimensions: {{ $item['width'] }}m × {{ $item['height'] }}m ({{ number_format($item['width'] * $item['height'], 2) }}m²)</p>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<p style="color: var(--primary-color); font-weight: 600;">Subtotal: R{{ number_format($item['subtotal'], 2) }}</p>
|
||||
@@ -277,20 +283,14 @@
|
||||
<span>Subtotal:</span>
|
||||
<span>R{{ number_format($total, 2) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="summary-row">
|
||||
<span>Shipping:</span>
|
||||
<span>Free</span>
|
||||
</div>
|
||||
|
||||
<div class="summary-row">
|
||||
<span>Tax:</span>
|
||||
<span>TBD</span>
|
||||
<span>{{ $shippingLabel }}:</span>
|
||||
<span>R {{ number_format($shippingFee, 2) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="summary-row total">
|
||||
<span>Total:</span>
|
||||
<span>R {{ number_format($total, 2) }}</span>
|
||||
<span>R {{ number_format($total + $shippingFee, 2) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="summary-actions">
|
||||
|
||||
Reference in New Issue
Block a user