@php $cache = \App\Models\Setting::getByCache() @endphp
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
        body {
            margin: 0;
            font-family: "Arial", sans-serif;

        }

        .container {
            min-height: 100vh;

            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f7fafc;
        }

        .content {
            background-color: #fffefe;
            padding: 2rem 0;
            border-radius: 0.5rem;
            width: 100vw;
        }

        .my-0 {
            margin-bottom: 0;
            margin-top: 0;
        }
    </style>
    <title>Email Content</title>
</head>

<body>

    <body style="
        font-family: Arial, Helvetica, sans-serif;
        background-color: #edf2f7;
    ">
        <table style="margin: 0 auto">
            <tr>
                <td>
                    <table
                        style="
                        margin: 0 auto;

                        width: 768px;
                    ">
                        <tr>
                            <td>
                                <h1
                                    style="
                                    color: #3181d2;
                                    text-align: center;
                                    padding: 10px 36px;
                                    margin-bottom: 0;
                                    font-weight: 900;
                                    text-transform: uppercase;
                                ">
                                    {{ $cache->value('page_title') }}
                                </h1>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table
                        style="
                        margin: 0 auto;
                        background-color: #ffffff;
                        width: 768px;
                        padding: 24px;
                    ">
                        <tr>
                            <td>
                                <h3>Dear Admin,</h3>
                            </td>
                        </tr>
                        <tr style="color: #696969; margin: 5px 0 0 0">
                            <td>
                                <span>My Name: </span>
                                <span>{{ $data['name'] }}</span>
                            </td>
                        </tr>
                        @if (!empty($data['phone']))
                            <tr style="color: #696969; margin: 5px 0 0 0">
                                <td>
                                    <span>Phone number:</span>
                                    <span>{{ $data['phone'] }}</span>
                                </td>
                            </tr>
                        @endif
                        @if (!empty($data['company']))
                            <tr style="color: #696969; margin: 5px 0 0 0">
                                <td>
                                    <span>My Company:</span>
                                    <span>{{ $data['company'] }}</span>
                                </td>
                            </tr>
                        @endif
                        <tr>
                            <td>
                                <p style="color: #696969; white-space:pre-line; margin: 0; margin-bottom: 20px">
                                    {{ $data['message'] }}
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <p style="margin: 0">Regards,</p>
                                <p style="margin: 5px 0 0 0; font-weight: bold">
                                    {{ $data['name'] }}.
                                </p>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table
                        style="
                        margin: 0 auto;

                        width: 768px;
                    ">
                        <tr>
                            <td>
                                <h5
                                    style="
                                    text-align: center;
                                    padding: 10px 36px;
                                    margin: 0;
                                ">
                                    {{-- Footer --}}
                                    {{ $cache->value('license') }}
                                </h5>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</body>

</html>
