diff --git a/resources/views/form/rapport-team3/preview-1791391025-cf688862-93e7-43b5-bf4e-7a29b30e3830.blade.php b/resources/views/form/rapport-team3/preview-1791391025-cf688862-93e7-43b5-bf4e-7a29b30e3830.blade.php index f87ee299..1c9b8d7f 100644 --- a/resources/views/form/rapport-team3/preview-1791391025-cf688862-93e7-43b5-bf4e-7a29b30e3830.blade.php +++ b/resources/views/form/rapport-team3/preview-1791391025-cf688862-93e7-43b5-bf4e-7a29b30e3830.blade.php @@ -51,20 +51,20 @@ $invoiceExt = strtolower(pathinfo((string) parse_url($invoiceUrl, PHP_URL_PATH), PATHINFO_EXTENSION)); $invoiceIsImage = in_array($invoiceExt, ['jpg', 'jpeg', 'png', 'gif', 'webp'], true); $invoiceIsPdf = $invoiceExt === 'pdf'; - $showActual = $supplyStatus === 'Yes' || $invoiceUrl !== '' || $val('total_actual_pob_units') !== '' || $val('total_actual_pob_value') !== ''; @endphp

POB Review

-

Review the order and invoice before you approve or reject

+

Review the actual POB and invoice before you approve or reject

@if(isset($form->user_info->name) && $form->user_info->name !== '')

Submitted by: {{ $form->user_info->name }}

@endif
-
-
{{ $contactLabel }} details
+
+
+ {{ $contactLabel }} details
Date @@ -102,40 +102,10 @@ {{ $val('submission_status') !== '' ? $val('submission_status') : '—' }}
-
+ -
-
POB
-
- - - - - - - - - - @foreach($skus as [$label, $code]) - - - - - - @endforeach - - - - - - -
SKUUnitsValue
{{ $label }}{{ $val($code.'_units') !== '' ? $val($code.'_units') : '0' }}{{ $val($code.'_value') !== '' ? $val($code.'_value') : '0' }}
Total{{ $val('total_pob_units') !== '' ? $val('total_pob_units') : '0' }}{{ $val('total_pob_value') !== '' ? $val('total_pob_value') : '0' }}
-
-
- - @if($showActual) -
-
Actual POB
+
+ Actual POB
@@ -161,11 +131,10 @@
-
- @endif + -
-
Invoice
+
+ Invoice
@if($invoiceUrl === '')

No invoice uploaded.

@@ -181,6 +150,7 @@

Open invoice

@endif
+
@@ -235,21 +205,37 @@ font-size: 1rem; margin-bottom: 0; } - .details-section, .request-letter-section { + .preview-panel { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; margin: 16px 0; overflow: hidden; } + .preview-panel > summary { + list-style: none; + cursor: pointer; + } + .preview-panel > summary::-webkit-details-marker { display: none; } .section-title { background: #007bff; color: #fff; margin: 0; - padding: 12px 16px; + padding: 12px 40px 12px 16px; font-size: 1.05rem; font-weight: 600; + position: relative; } + .section-title::after { + content: '+'; + position: absolute; + right: 16px; + top: 50%; + transform: translateY(-50%); + font-size: 1.25rem; + line-height: 1; + } + .preview-panel[open] > .section-title::after { content: '−'; } .section-content { padding: 16px; } .detail-row { display: flex;