File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/views/emails/components/orderLines.blade.php
@if(isset($order->lines) && $order->lines->count() > 0)
<table class="c-table">
<thead>
<tr>
<th class="c-table-heading-item" width="200" style="text-align: left; vertical-align: bottom;">Activiteit</th>
<th class="c-table-heading-item" width="60" style="text-align: right; vertical-align: bottom;">Aantal<br/>Pers.</th>
@if($order->lines->where('price_start_up', '>', 0)->count() >= 1)
<th class="c-table-heading-item" width="110" style="text-align: right; vertical-align: bottom;">Prijs p.p.</th>
<th class="c-table-heading-item" width="100" style="text-align: right; vertical-align: bottom;">Opstart</th>
<th class="c-table-heading-item" width="100" style="text-align: right; vertical-align: bottom;">Totaal</th>
@else
<th class="c-table-heading-item" width="150" style="text-align: right; vertical-align: bottom;">Prijs p.p.</th>
<th class="c-table-heading-item" width="160" style="text-align: right; vertical-align: bottom;">Totaal</th>
@endif
</tr>
</thead>
<tbody>
@foreach($order->lines as $orderLine)
<tr>
<td class="c-table-item" valign="top">{!! $orderLine->name !!}
</td>
<td class="c-table-item" style="text-align: right;" valign="top">
{{ $orderLine->quantity }} x
</td>
@if($order->lines->where('price_start_up', '>', 0)->count() >= 1)
<td class="c-table-item" style="text-align: right;" valign="top">
@if($orderLine->price_each_unit != 0){{ config('site.shop_currency') }} {{ euro_pricing_format($orderLine->price_each_unit) }}@endif
</td>
<td class="c-table-item" style="text-align: right;" valign="top">
@if($orderLine->price_each_unit != 0 && $orderLine->price_start_up)+ @endif
@if($orderLine->price_start_up != 0){{ config('site.shop_currency') }} {{ euro_pricing_format($orderLine->price_start_up) }}<br/>@endif
</td>
@else
<td class="c-table-item" style="text-align: right;" valign="top">
@if($orderLine->price_each_unit != 0){{ config('site.shop_currency') }} {{ euro_pricing_format($orderLine->price_each_unit) }}@endif
</td>
@endif
<td class="c-table-item" style="text-align: right;" valign="top">{{ config('site.shop_currency') }} {{ euro_pricing_format($orderLine->price_total) }}</td>
</tr>
@if(!empty($orderLine->remarks))
<tr>
<td colspan="{{ $order->lines->where('price_start_up', '>', 0)->count() >= 1 ? 5 : 4 }}">
<div class="c-table-item__sub" style="padding-bottom: 6px;"><strong>Opmerking: </strong> {!! nl2br($orderLine->remarks) !!}</div>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
@endif