| SL | Product Description | Warranty | Qty | U.Price | Amount |
|---|---|---|---|---|---|
| {{$sl++}} |
{{$purchase['name']}} {{$purchase['product_variation']}} {{$purchase['variation']}}
@if(!empty($purchase['sub_sku']))
{{$purchase['sub_sku']}}
@endif
@if(!empty($purchase['product_description']))
{!!$purchase['product_description']!!}
@endif
{{-- Display SL, Color, and Storage on same line (for exchange products) --}}
@php
// Check if show_color_storage is enabled in invoice layout settings
// Handle both array and object access, and check for truthy values (1, '1', true)
$show_color_storage_setting = null;
if (isset($receipt_details->common_settings)) {
if (is_array($receipt_details->common_settings)) {
$show_color_storage_setting = $receipt_details->common_settings['show_color_storage'] ?? null;
} else {
$show_color_storage_setting = $receipt_details->common_settings->show_color_storage ?? null;
}
}
$show_color_storage = !empty($show_color_storage_setting) || $show_color_storage_setting === '1' || $show_color_storage_setting === 1 || $show_color_storage_setting === true;
$has_serial = $receipt_details->show_serial_number && !empty(getPurchaseProductSerial($purchase['product_id'], $purchase['serial_purchase_code']));
$has_color = $show_color_storage && !empty($purchase['product_color']);
$has_storage = $show_color_storage && !empty($purchase['product_storage']);
$show_info_line = $has_serial || $has_color || $has_storage;
@endphp
@if($show_info_line)
@if($has_serial)
SL:
@foreach(getPurchaseProductSerial($purchase['product_id'], $purchase['serial_purchase_code']) as $serial_number)
{{$serial_number->serial_number}}@if(!$loop->last), @endif
@endforeach
@endif
@if($has_serial && ($has_color || $has_storage))
|
@endif
@if($has_color)
Color: {{$purchase['product_color']}}
@endif
@if($has_color && $has_storage)
|
@endif
@if($has_storage)
Storage: {{$purchase['product_storage']}}
@endif
@endif
|
@if(!empty($purchase['warranty_name'])) {{$purchase['warranty_name']}} @else - @endif | {{$purchase['quantity']}} | {{$purchase['unit_price_before_discount']}} | {{$purchase['line_total']}} |
| {{$sl++}} |
{{$line['name']}} {{$line['product_variation']}} {{$line['variation']}}
@if(!empty($line['sub_sku']))
{{$line['sub_sku']}}
@endif
@if(!empty($line['product_description']))
{!!$line['product_description']!!}
@endif
@if(!empty($line['sell_line_note']))
{!!$line['sell_line_note']!!}
@endif
{{-- Display SL, Color, and Storage on same line --}}
@php
// Check if show_color_storage is enabled in invoice layout settings
// Handle both array and object access, and check for truthy values (1, '1', true)
$show_color_storage_setting = null;
if (isset($receipt_details->common_settings)) {
if (is_array($receipt_details->common_settings)) {
$show_color_storage_setting = $receipt_details->common_settings['show_color_storage'] ?? null;
} else {
$show_color_storage_setting = $receipt_details->common_settings->show_color_storage ?? null;
}
}
$show_color_storage = !empty($show_color_storage_setting) || $show_color_storage_setting === '1' || $show_color_storage_setting === 1 || $show_color_storage_setting === true;
$has_serial = $receipt_details->show_serial_number && !empty(getSellsProductSerial($line['product_id'], $receipt_details->product_Transaction_id));
$has_color = $show_color_storage && !empty($line['product_color']);
$has_storage = $show_color_storage && !empty($line['product_storage']);
$show_info_line = $has_serial || $has_color || $has_storage;
@endphp
@if($show_info_line)
@if($has_serial)
SL:
@foreach(getSellsProductSerial($line['product_id'], $receipt_details->product_Transaction_id) as $serial_number)
{{$serial_number->serial_number}}@if(!$loop->last), @endif
@endforeach
@endif
@if($has_serial && ($has_color || $has_storage))
|
@endif
@if($has_color)
Color: {{$line['product_color']}}
@endif
@if($has_color && $has_storage)
|
@endif
@if($has_storage)
Storage: {{$line['product_storage']}}
@endif
@endif
|
@if(!empty($line['warranty_name'])) {{$line['warranty_name']}} @else - @endif | @if($receipt_details->show_only_sold_unit) {{$line['sell_unit_quantity']}} @else {{$line['quantity']}} @endif | @if($receipt_details->show_only_sold_unit) {{$line['sell_unit_price_before_discount']}} @else {{$line['unit_price_before_discount']}} @endif | {{$line['line_total']}} |
| {{$sl++}} |
{{$modifier['name']}} {{$modifier['variation']}}
@if(!empty($modifier['sell_line_note']))
({!!$modifier['sell_line_note']!!})
@endif
|
- | {{$modifier['quantity']}} | {{$modifier['unit_price_inc_tax']}} | {{$modifier['line_total']}} |
| No items found | |||||