44 lines
No EOL
1.9 KiB
PHP
44 lines
No EOL
1.9 KiB
PHP
<div id="invoice_box">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left" style="width: 10%">
|
|
<span class="no-line-break">{{__('tables.article_no')}}</span>
|
|
</th>
|
|
<th class="text-left" style="width: 40%">{{__('tables.label')}}</th>
|
|
<th class="text-right" style="width: 10%">{{__('tables.quantity')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($shopping_order->shopping_order_items as $shopping_order_item)
|
|
<tr class="item">
|
|
<td class="small text-left">
|
|
{{ $shopping_order_item->product->number }}
|
|
</td>
|
|
<td class="small text-left">
|
|
{{ maxStrLength($shopping_order_item->product->getLang('name'), 35) }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ cleanIntegerFromString($shopping_order_item->qty) }}
|
|
</td>
|
|
</tr>
|
|
{{-- Bundle-Items: Enthaltene Produkte im Set/Kit auflisten --}}
|
|
@if($shopping_order_item->product->bundleItems && $shopping_order_item->product->bundleItems->count() > 0)
|
|
@foreach($shopping_order_item->product->bundleItems as $bundleItem)
|
|
<tr class="item" style="background-color: #f9f9f9;">
|
|
<td class="small text-left" style="padding-left: 5mm; color: #666;">
|
|
{{ $bundleItem->number }}
|
|
</td>
|
|
<td class="small text-left" style="color: #666;">
|
|
<span style="font-size: 0.9em;">↳ {{ $bundleItem->pivot->quantity }}x {{ maxStrLength($bundleItem->getLang('name'), 30) }}</span>
|
|
</td>
|
|
<td class="text-right small" style="color: #999;">
|
|
-
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div> |