<x-layouts.email title="Shipment Created">
    <p>Dear {{ $shipment->receiver_name }},</p>
    <p>We are excited to inform you that your shipment has been successfully registered. Here are the details:</p>

    <table>
        <tr>
            <th>Sender Fullname</th>
            <td>{{ $shipment->sender_name }}</td>
        </tr>

        <tr>
            <th>Sender Country</th>
            <td>{{ $shipment->sender_country }}</td>
        </tr>

        <tr>
            <th>Receiver Fullname</th>
            <td>{{ $shipment->receiver_name }}</td>
        </tr>

        <tr>
            <th>Receiver Country</th>
            <td>{{ $shipment->receiver_country }}</td>
        </tr>

        <tr>
            <th>Date Sent</th>
            <td>{{ $shipment->tracking->date_sent->format('d/m/Y') }}</td>
        </tr>
        <tr>
            <th>Delivery Date</th>
            <td>{{ $shipment->tracking->date_expected->format('d/m/Y') }}</td>
        </tr>
        <tr>
            <th>Tracking Code</th>
            <td>{{ $shipment->tracking_code }}</td>
        </tr>
    </table>
</x-layouts.email>