@include('Shop.Orders.partials.list', ['dataTable' => $orders])

@if ($customer['orders'] ?? false)
    <table class="table table-striped gradient-green1 green-fluo">
        @foreach ($customer['orders'] as $order)
            <tr>
                <td>
                    {{ Carbon\Carbon::parse($order['created_at'])->format('d-m-Y') }}
                </td>
                <td>
                    Numero facture
                </td>
                <td class="text-right">
                    {{ $order['total_shipped'] }} €
                </td>
                <td class="text-right">
                    <button class="btn btn-sm btn-secondary" data-id="{{ $order['id'] }}">
                        <i class="fa fa-fw fa-print" title="Imprimer"></i>
                    </button>

                    <button class="btn btn-sm btn-secondary" data-id="{{ $order['id'] }}">
                        <i class="fa fa-fw fa-file-pdf" title="Télécharger"></i>
                    </button>
                </td>
            </tr>
        @endforeach
    </table>
@endif
