<table style="background-color: #fff; font-weight: 400; font-family: Arial,'HelveticaNeue',Helvetica,sans-serif;" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr>
            <td>
                <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                    <tbody>
                        <tr>
                            <td style="text-align: left; border: 0;" width="50%">
                                <img src="http://opensem.test/693d11c7-2be8-4c7e-aafb-e5baa4b097fd" style="display: block; border: 0px none; max-width: 100%;" alt="jardin'envie" width="150" height="69" align="top" />
                            </td>
                            <td align="center" width="50%">
                                <div style="font-weight: 400; font-family: Arial,'HelveticaNeue',Helvetica,sans-serif; color: #010000; line-height: 1.5;">
                                    <p style="margin: 0; font-size: 26px; line-height: 1.5; word-break: break-word; letter-spacing: 5px;">
                                        <strong>FACTURE</strong>
                                    </p>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                
                <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                    <tbody>
                        <tr>
                            <td style="text-align: left;" width="33.3%">
                                <div style="font-size: 14px; color: #555; line-height: 1.2;">
                                    <p style="margin: 0; text-align: left; color: #010000;">
                                        <strong>Livr&eacute; &agrave;:</strong>
                                    </p>
                                    <span style="text-transform: capitalize; letter-spacing: 0px; color: #666666;">
                                        {{ $order['delivery_address']['name'] }}<br />
                                        {{ $order['delivery_address']['address'] }}<br />
                                        {{ $order['delivery_address']['zipcode'] }}
                                        {{ $order['delivery_address']['city'] }}<br />
                                        FR
                                    </span>
                                </div>
                            </td>
                            <td style="text-align: left;" width="33.3%">
                                <div style="font-size: 14px; color: #555; line-height: 1.2;">
                                    <p><strong>Factur&eacute; &agrave;:</strong></p>
                                    <p>
                                        {{ $customer['first_name'] }} {{ $customer['last_name'] }}<br />
                                        {{ $customer['address'] }}<br />
                                        {{ $customer['zipcode'] }} {{ $customer['city'] }}<br />
                                        FR 
                                    </p>
                                </div>
                            </td>
                            <td style="text-align: left;" width="33.3%">
                                <div style="font-size: 14px; color: #555; line-height: 1.2;">
                                    <p>Jardin'enVie Artisan Semencier SCIC SA</p>
                                    <p>429 route des chaux</p>
                                    <p>26500 Bourge les Valence</p>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                
                <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                    <tbody>
                        <tr>
                            <td width="33.3%">
                                <div style="font-size: 14px; color: #555; line-height: 1.2;">
                                    <strong style="color: #000000;">N&deg; Facture</strong><br />
                                    {{ $invoice['ref'] }}
                                </div>
                            </td>
                            <td width="33.3%">
                                <div style="font-size: 14px; color: #555; line-height: 1.2;">
                                    <strong style="color: #000000;">Date D'&eacute;mission</strong><br />
                                    {{ $invoice['created_at'] }}
                                </div>
                            </td>
                            <td width="33.3%">
                                <div style="font-size: 14px; color: #555; line-height: 1.2;">
                                    <strong style="color: #000000;">TVA N&deg;</strong><br />
                                    FR21 818 557 589
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div style="font-size: 14px; color: #000; line-height: 1.2;">
                                    <strong>Num&eacute;ro de commande</strong><br />
                                    {{ $order['ref'] }}
                                </div>
                            </td>
                            <td>
                                <div style="font-size: 14px; color: #000; line-height: 1.2;">
                                    <strong>N&deg; Client </strong><br />
                                    {{ $customer['id'] }}
                                </div>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
                    <tbody>
                        <tr>
                            <td>
                                <strong>D&eacute;signation</strong>
                            </td>
                            <td>
                                <strong>Quantit&eacute;</strong>
                            </td>
                            <td>
                                <strong>TOTAL HT</strong>
                            </td>
                            <td>
                                <strong>Total TVA</strong>
                            </td>
                            <td>
                                <strong>Total</strong>
                            </td>
                            <td>
                                <strong>TAUX</strong>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Livraison</strong>
                            </td>
                            <td colspan="3"></td>
                            <td align="right">{{ $invoice['shipping'] }}</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="6"></td>
                        </tr>
                        @foreach ($order['detail'] as $detail)
                            <tr>
                                <td>{{ $detail['name'] }}</td>
                                <td>{{ $detail['quantity'] }}</td>
                                <td>{{ $detail['total'] }}</td>
                                <td>{{ $detail['total_tax'] }}</td>
                                <td>{{ $detail['total_taxed'] }}</td>
                                <td></td>
                            </tr>
                        @endforeach
                        <tr>
                            <td></td>
                            <td></td>
                            <td>TOTAL HT</td>
                            <td>TOTAL TVA</td>
                            <td>TOTAL</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td align="right">{{ $invoice['total'] }}</td>
                            <td align="right">{{ $invoice['taxes'] }}</td>
                            <td align="right">{{ $invoice['total_taxed'] }}</td>
                            <td>EUR</td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
