<div class="header-wrapper">
    <div class="container-fluid">
        <!-- Start Header Title -->
        <h1 class="header-title">
            <?php echo replacePlaceholders(translate('Homepage Title'), [
                'site_name' => getSetting('site_name'),
            ]); ?>

        </h1>
        <!-- End Header Title -->
        <!-- Start Header Text -->
        <p class="header-text lead">
            <?php echo replacePlaceholders(translate('Homepage first description'), [
                'site_name' => getSetting('site_name'),
            ]); ?>


        </p>
        <!-- End Header Text -->
        <!-- Start Mail Wrapper -->
        <div class="mail-wrapper">
            <?php if($ad = ad('header_right')): ?>
                <div class="ad ad-250x250">
                    <?php echo $ad; ?>

                </div>
            <?php endif; ?>

            <!-- Start Mail Selection -->
            <div class="mail-selection mb-3">
                <!-- Start Mail Select -->
                <div class="mail-select" data-clipboard-target="#mainEmail">
                    <!-- Start Mail Input -->
                    <div class="mail-input">
                        <input id="mainEmail" type="text" value="<?php echo e(translate('landing')); ?>" readonly
                            aria-label="<?php echo e(translate('landing')); ?>" />
                        <input id="email_token" hidden value="" />
                        <!-- Start Mail Input Copy -->
                        <button class="mail-input-copy btn btn-secondary disable-button btn-copy" disabled
                            data-clipboard-target="#mainEmail" aria-label="Copy email address">
                            <i class="far fa-clone" id="copyIcon"></i>
                        </button>
                        <!-- End Mail Input Copy -->
                    </div>
                    <!-- End Mail Input -->
                </div>
                <!-- End Mail Select -->
                <!-- Start Mail Actions -->
                <div class="mail-actions">
                    <!-- Start Mail Action -->
                    <button id="refresh" class="mail-action btn btn-light btn-md"
                        aria-label="<?php echo e(translate('Refresh')); ?>">
                        <i class="fas fa-redo-alt"></i> <span class="mail-action-text"><?php echo e(translate('Refresh')); ?></span>
                    </button>
                    <button disabled class="mail-action btn btn-light btn-md kill request-button disable-button"
                        id='delete' aria-label="<?php echo e(translate('Delete')); ?>">
                        <i class="fa fa-trash"></i> <span class="mail-action-text"><?php echo e(translate('Delete')); ?></span>
                    </button>
                    <!-- End Mail Action -->
                    <!-- Start Mail Action -->
                    <button disabled class="mail-action btn btn-light btn-md disable-button" id="show_qr_code"
                        aria-label="<?php echo e(translate('QR Code')); ?>">
                        <i class="fa-solid fa-qrcode"></i> <span
                            class="mail-action-text"><?php echo e(translate('QR Code')); ?></span>
                    </button>
                    <!-- End Mail Action -->
                    <!-- Start Mail Action -->
                    <button disabled class="mail-action btn btn-light btn-md disable-button" id="show_history"
                        aria-label="<?php echo e(translate('History')); ?>">
                        <i class="fa-solid fa-clock-rotate-left"></i> <span
                            class="mail-action-text"><?php echo e(translate('History')); ?></span>
                    </button>
                    <!-- End Mail Action -->
                    <!-- Start Mail Action -->
                    <button disabled class="mail-action btn btn-light btn-md disable-button" data-bs-toggle="modal"
                        data-bs-target="#changeEmail" id="change_email_btn" aria-label="<?php echo e(translate('Change')); ?>">
                        <i class="fa-solid fa-pen-to-square"></i> <span
                            class="mail-action-text"><?php echo e(translate('Change')); ?></span>
                    </button>
                    <!-- End Mail Action -->
                </div>
                <!-- End Mail Actions -->
            </div>
            <!-- End Mail Selection -->
            <?php if($ad = ad('header_right')): ?>
                <div class="ad ad-250x250">
                    <?php echo $ad; ?>

                </div>
            <?php endif; ?>

        </div>
        <!--  ads('header_bottom', 'ad-h mx-auto my-4') -->
        <?php if($ad = ad('header_bottom')): ?>
            <div class="ad ad-h mx-auto mb-4">
                <?php echo $ad; ?>

            </div>
        <?php endif; ?>

        <p class="header-text lead">
            <?php echo e(translate('Homepage second description')); ?>

        </p>
        <!-- Start Header Counters -->
        <div class="header-counters mt-4">
            <div class="row row-cols-1 row-cols-md-2 g-3">
                <div class="col">
                    <!-- Start Header Counter -->
                    <div class="header-counter">
                        <!-- Start Header Counter Info -->
                        <div class="header-counter-info">
                            <!-- Start Header Counter Number -->
                            <p class="header-counter-number"><?php echo e($emails_created); ?></p>
                            <!-- End Header Counter Number -->
                            <!-- Start Header Counter Title -->
                            <p class="header-counter-title"><?php echo e(translate('Emails Created')); ?></p>
                            <!-- End Header Counter Title -->
                        </div>
                        <!-- End Header Counter Info -->
                        <!-- Start Header Counter Icon -->
                        <div class="header-counter-icon">
                            <i class="fa-solid fa-at"></i>
                        </div>
                        <!-- End Header Counter Icon -->
                    </div>
                    <!-- End Header Counter -->
                </div>
                <div class="col">
                    <!-- Start Header Counter -->
                    <div class="header-counter">
                        <!-- Start Header Counter Info -->
                        <div class="header-counter-info">
                            <!-- Start Header Counter Number -->
                            <p class="header-counter-number"><?php echo e($messages_created); ?></p>
                            <!-- End Header Counter Number -->
                            <!-- Start Header Counter Title -->
                            <p class="header-counter-title"><?php echo e(translate('Messages Received')); ?></p>
                            <!-- End Header Counter Title -->
                        </div>
                        <!-- End Header Counter Info -->
                        <!-- Start Header Counter Icon -->
                        <div class="header-counter-icon">
                            <i class="fa-solid fa-envelope"></i>
                        </div>
                        <!-- End Header Counter Icon -->
                    </div>
                    <!-- End Header Counter -->
                </div>
            </div>
            <!-- End Header Counters -->
        </div>
    </div>
</div>

<!-- ShareThis BEGIN -->

<?php echo $__env->make('frontend.themes.basic.sections.qrcode', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('frontend.themes.basic.sections.change', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('frontend.themes.basic.sections.history', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<?php if(isPluginEnabled('recaptcha_invisible')): ?>
    <div id='recaptcha' class="g-recaptcha" data-tabindex="100" data-sitekey="<?php echo e(env('ROCAPTCHA_SITEKEY_INVISIBLE')); ?>"
        data-callback="myCallback" data-size="invisible">
    </div>
    <input type="hidden" id="captcha-response" name="captcha-response" />

    <?php $__env->startPush('scripts'); ?>
        <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback" async defer></script>

        <script>
            window.check_recaptcha = false;
            var onloadCallback = function() {
                grecaptcha.execute();
            };
        </script>
    <?php $__env->stopPush(); ?>
<?php else: ?>
    <?php $__env->startPush('scripts'); ?>
        <script>
            window.check_recaptcha = true;
        </script>
    <?php $__env->stopPush(); ?>
<?php endif; ?>
<?php /**PATH /home/onemail/public_html/resources/views/frontend/themes/basic/sections/mail.blade.php ENDPATH**/ ?>