@props(['admin' => 0, 'title'])
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shipment Registered Successfully</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 600px;
            margin: 20px auto;
            background-color: #ffffff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        }

        .header {
            background-color: #000000;
            color: #ffffff;
            padding: 20px;
            text-align: center;
            border-radius: 10px 10px 0 0;
        }

        h1 {
            margin: 0;
            font-size: 24px;
        }

        .content {
            padding: 20px;
        }

        p {
            color: #333;
            line-height: 1.6em;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        th,
        td {
            border: 1px solid #ddd;
            padding: 15px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2;
        }

        .footer {
            margin-top: 20px;
            padding: 10px;
            text-align: center;
            background-color: #000000;
            color: white;
            border-radius: 0 0 10px 10px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="header">
            <h1>{{ $title }}</h1>
        </div>
        <div class="content">
            {{ $slot }}

            @if (!$admin)
            <p>If you have any questions or concerns, feel free to contact us at <a
                    href="mailto:{{ $settings->site_email }}">{{ $settings->site_email }}</a>. <br>
                Thank you for choosing our services.
            </p>
            @endif
        </div>
        @if (!$admin)
        <div class="footer">
            <p style="color: white;">Best regards,<br>{{ $settings->site_name }}</p>
        </div>
        @endif
    </div>
</body>

</html>
