HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/resources/views/organisms/my_account/orders.blade.php
@extends('templates.auth.my_account')

@section('my_account_content')
    <h2 class="c-title  u-spacing-mb4">Bestellingen</h2>
    <div class="o-account__orders">
        @foreach ($orders as $order)
            @php /** @var \App\Orders\Models\Order $order **/ @endphp

            <div class="c-order">
                <div class="c-order__header">
                    <p class="u-fw-bold">{{ $order->displayOrderDate() }}</p>
                    <div class="c-order__download">
                        @include('components.button', [
                            'modifiers' => 'text',
                            'buttonText' => 'Download '. __('KMS::orders.invoice'),
                            'buttonLink' => route('site.orders.invoice.download', ['order' => $order->id]),
                            'testKey' => 'register'
                        ])
                    </div>
                </div>
                <div class="c-order__body">
                    <p class="c-order__number">@lang('KMS::orders.order') {{ $order->order_number }}</p>
                    @include('organisms.my_account.order_productables', ['order' => $order])
                </div>
                <p class="u-fw-bold">Verzendingen</p>
                @if($order->shipments->count() > 0)
                    <table class="c-order__shipments">
                        <thead>
                            <tr>
                                <th>@lang('KMS::shipments.shipment_number')</th>
                                <th>@lang('KMS::shipments.tracking_code')</th>
                                <th>@lang('KMS::shipments.status_name')</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach ($order->shipments as $shipment)
                                <tr>
                                    <td>{{ $shipment->id }}</td>
                                    <td>@if(!empty($shipment->tracking_url))
                                            <a href="{{ $shipment->tracking_url }}">{{ $shipment->displayTrackingCode() }}</a>
                                        @else
                                            {{ $shipment->displayTrackingCode() }}
                                        @endif
                                    </td>
                                    <td>@lang('KMS::shipments.status.'.$shipment->status)</td>
                                </tr>
                            @endforeach
                        </tbody>
                    </table>
                @else
                    <p class="u-fw-bold">Nog geen verzendingen</p>
                @endif
            </div>

        @endforeach
    </div>
    <div>
        {{ $orders->links() }}
    </div>

@endsection