File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/views/excel/export_orders.blade.php
<table>
<thead>
<tr>
@foreach($attributes as $attribute)
<th><strong>{{ $attribute }}</strong></th>
@endforeach
</tr>
</thead>
<tbody>
@foreach($results as $result)
@foreach($result->lines as $item)
<tr>
<td>{{ $result->order_number }}</td>
<td>{{ $result->company_name }}</td>
<td>{{ $result->company_vat_number }}</td>
<td>{{ $result->first_name }}</td>
<td>{{ $result->last_name }}</td>
<td>{{ $item->location_id }}</td>
<td>{{ $item->location->city }}</td>
<td>{{ $item->product_id }}</td>
<td>{{ $item->product->translation->name ?? '' }}</td>
<td>{{ $item->quantity }}</td>
<td>{{ $result->created_at }}</td>
<td>{{ $result->date->format('Y-m-d') }}</td>
<td>@if(\Illuminate\Support\Str::startsWith($result->remarks, ['=>', '&']))'@endif {{ $result->remarks }}</td>
<td>{{ $item->product->price_each_unit }}</td>
<td>{{ $item->product->price_each_unit_excluding_vat }}</td>
<td>{{ $item->product->price_start_up }}</td>
<td>{{ $item->product->price_start_up_excluding_vat }}</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>