commit before consolodating payment methods

This commit is contained in:
twotalesanimation
2025-12-30 10:40:45 +02:00
parent 3c24c0e9ef
commit a898c35a39
23 changed files with 673 additions and 2184 deletions
+16 -16
View File
@@ -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) }})</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) }})</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">