
<!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">
    <title><?php echo e(translate('Admin Login Alert')); ?></title>

    <style>
        @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap');

        body {
            margin: 0;
            font-family: 'Roboto', sans-serif;
            font-size: 13px;
            line-height: 21px;
            color: #737883;
            background: #f7fbff;
            padding: 0;
            display: flex;align-items: center;justify-content: center;
            min-height: 100vh;
        }
        h1,h2,h3,h4,h5,h6 {
            color: #334257;
        }
        * {
            box-sizing: border-box
        }

        :root {
            --base: #006161
        }

        .main-table {
            width: 500px;
            background: #FFFFFF;
            margin: 0 auto;
            padding: 40px;
        }
        .main-table-td {
        }
        img {
            max-width: 100%;
        }
        .cmn-btn{
            background: var(--base);
            color: #fff;
            padding: 8px 20px;
            display: inline-block;
            text-decoration: none;
        }
        .mb-1 {
            margin-bottom: 5px;
        }
        .mb-2 {
            margin-bottom: 10px;
        }
        .mb-3 {
            margin-bottom: 15px;
        }
        .mb-4 {
            margin-bottom: 20px;
        }
        .mb-5 {
            margin-bottom: 25px;
        }
        hr {
            border-color : rgba(0, 170, 109, 0.3);
            margin: 16px 0
        }
        .border-top {
            border-top: 1px solid rgba(0, 170, 109, 0.3);
            padding: 15px 0 10px;
            display: block;
        }
        .d-block {
            display: block;
        }
        .privacy {
            display: flex;
            align-items: center;
            justify-content: center;

        }
        .privacy a {
            text-decoration: none;
            color: #334257;
            position: relative;
        }
        .privacy a:not(:last-child)::after {
            content:'';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #334257;
            display: inline-block;
            margin: 0 15px
        }
        .social {
            margin: 15px 0 8px;
            display: block;
        }
        .copyright{
            text-align: center;
            display: block;
        }
        div {
            display: block;
        }
        a {
            text-decoration: none;
        }
        .text-base {
            color: var(--base);
            font-weight: 700
        }
    </style>

</head>


<body>

<?php ($logo=\App\Model\BusinessSetting::where(['key'=>'logo'])->first()->value); ?>
<?php ($business_name=\App\Model\BusinessSetting::where(['key'=>'restaurant_name'])->first()->value); ?>
<?php ($footer=\App\Model\BusinessSetting::where(['key'=>'footer_text'])->first()->value); ?>
<?php
$socialMediaList = \App\Model\SocialMedia::active()->get();
$platforms = ['facebook', 'pinterest', 'linkedin', 'instagram', 'twitter'];
$socialMediaLinks = [];

foreach ($socialMediaList as $social) {
    $social_name = $social['name'];
    $link = $social['link'];

    if (in_array($social_name, $platforms)) {
        $socialMediaLinks[$social_name] = $link;
    }
}
?>

<table class="main-table">
    <tbody>
    <tr>
        <td class="main-table-td">
            <img style="width:120px;display:block;margin:10px 0" onerror="this.src='<?php echo e(asset('/public/assets/admin/img//logo/main-logo.png')); ?>'"
                 src="<?php echo e(asset('storage/app/public/restaurant/' . $logo)); ?>" alt="public/img">
            <h2><?php echo e(translate('Admin Login Alert !')); ?></h2>
            <div class="mb-1"><?php echo e(translate('Hi Admin,')); ?></div>
            <div class="mb-4"><?php echo e(translate('Your account has been been login from a new IP')); ?> <strong><?php echo e($ip_address); ?></strong> </div>
            <hr>
            <div class="mb-2">
                <?php echo e(translate('Please contact us for any queries, we’re always happy to help.')); ?>

            </div>
            <div>
                <?php echo e(translate('Thanks & Regards,')); ?>

            </div>
            <div class="mb-4">
                <?php echo e($business_name); ?>

            </div>
        </td>
    </tr>
    <tr>
        <td>
                <span class="privacy">
                    <a href="<?php echo e(route('pages.privacy-policy')); ?>"><?php echo e(translate('Privacy Policy')); ?></a><a href="<?php echo e(route('pages.about-us')); ?>"><?php echo e(translate('About Us')); ?></a>
                </span>
            <span class="social" style="text-align:center">
                    <a href="<?php echo e($socialMediaLinks['pinterest'] ?? '#'); ?>" style="margin: 0 5px;text-decoration:none">
                        <img src="<?php echo e(asset('/public/assets/admin/img/img/pinterest.png')); ?>" alt="pinterest">
                    </a>
                    <a href="<?php echo e($socialMediaLinks['instagram'] ?? '#'); ?>" style="margin: 0 5px;text-decoration:none">
                        <img src="<?php echo e(asset('/public/assets/admin/img/img/instagram.png')); ?>" alt="instagram">
                    </a>
                    <a href="<?php echo e($socialMediaLinks['facebook'] ?? '#'); ?>" style="margin: 0 5px;text-decoration:none">
                        <img src="<?php echo e(asset('/public/assets/admin/img/img/facebook.png')); ?>" alt="facebook">
                    </a>
                    <a href="<?php echo e($socialMediaLinks['linkedin'] ?? '#'); ?>" style="margin: 0 5px;text-decoration:none">
                        <img src="<?php echo e(asset('/public/assets/admin/img/img/linkedin.png')); ?>" alt="linkedin">
                    </a>
                    <a href="<?php echo e($socialMediaLinks['twitter'] ?? '#'); ?>" style="margin: 0 5px;text-decoration:none">
                        <img src="<?php echo e(asset('/public/assets/admin/img/img/twitter.png')); ?>" alt="twitter">
                    </a>
                </span>
            <span class="copyright">
                    <?php echo e($footer); ?>

                </span>
        </td>
    </tr>
    </tbody>
</table>


</body>
</html>

<?php /**PATH /home/mimeld/admin.mxepto.mimeld.com/resources/views/email-templates/admin/login-alert.blade.php ENDPATH**/ ?>