File: D:/HostingSpaces/stafa/werkenbijstafa.nl/resources/views/shop/partials/orders/shipments.blade.php
<table>
<thead>
<tr>
<th></th>
<th>ID:</th>
<th>{{ __('shop/shipments.status_name') }}</th>
<th>{{ __('shop/shipments.tracking_code') }}</th>
<th>{{ __('shop/shipments.comment') }}</th>
<th>{{ __('shop/shipments.created_at') }}</th>
<th>{{ __('shop/shipmentgroups.shipmentGroup') }}</th>
</tr>
</thead>
<tbody dusk="order_shipments_table">
@if(isset($shipments) && $shipments->count() > 0)
@foreach($shipments as $shipment)
@php /** @var \App\Komma\Shop\Shipments\Shipment $shipment */@endphp
<tr>
<td>
<a href="{{ route('shipments.show', ['shipment' => $shipment]) }}" dusk="shipment_{{ $shipment->id }}">@lang('shop/shipments.shipment')</a>
@if(isset($shipment->shipmentGroup)) <a href="{{ route('shipmentgroups.show', ['shipmentgroup' => $shipment->shipmentGroup]) }}">@lang('shop/shipmentgroups.shipmentGroup')</a> @endif
</td>
<td>{{ $shipment->id }}</td>
<td>{{ __('shop/shipments.status.'.$shipment->status) }}</td>
<td>{{ $shipment->tracking_code }}</td>
<td>{{ \Illuminate\Support\Str::limit($shipment->comment, 30) }}</td>
<td>{{ $shipment->created_at }}</td>
<td>{{ (isset($shipment->shipmentGroup)) ? $shipment->shipmentGroup->id.' ('.$shipment->shipmentGroup->created_at.')' : __('kms/global.none') }}</td>
</tr>
@endforeach
@endif
</tbody>
</table>
@can('createShipmentForOrder', $order)
<button type="submit" name="create_shipment" value="create_shipment" dusk="create_shipment">@lang('shop/orders.create_shipment')</button>
@endcan