<?php
    $breadcrumb = get_setting('breadcrumb_color');
    $breadcrumb = str_replace(' ', '', $breadcrumb);
    $hex = $breadcrumb;
    [$r, $g, $b] = sscanf($hex, '#%02x%02x%02x');
    $hex = "$r $g $b";
    $hex = str_replace(' ', ',', $hex);

?>

<?php
    if (Session::has('locale')) {
        $locale = Session::get('locale', Config::get('app.locale'));
    } else {
        $locale = get_setting('DEFAULT_LANGUAGE', 'en');
    }
?>


<!DOCTYPE html>
<html lang="<?php echo e($locale); ?>" dir="<?php echo e($locale == 'sa' ? 'rtl' : ''); ?>">

<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">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <?php if(Request::url() != url('/')): ?>
        <title><?php echo e($title ?? ''); ?> - <?php echo e(get_setting('company_name')); ?> </title>
    <?php else: ?>
        <title><?php echo e($title ?? get_setting('company_name')); ?> </title>
    <?php endif; ?>


    <?php if(fileExists('assets/logo/', get_setting('front_favicon')) != false &&  get_setting('front_favicon') != null): ?>
        <link rel="icon" href="<?php echo e(asset('assets/logo/' . get_setting('front_favicon'))); ?>" type="image/gif"
            sizes="20x20">
    <?php else: ?>
        <link rel="icon" href="<?php echo e(asset('frontend/images/bg/sm-logo.png')); ?>" type="image/gif" sizes="20x20">
    <?php endif; ?>

    <!-- Meta -->
    <?php if(!Request::is('customer/*')): ?>
        <meta name="robots" content="index, follow">
        <meta name="googlebot-news" content="index, follow">
        <meta name="msnbot" content="index, follow">
    <?php endif; ?>



<?php


?>


    <meta name="description" content="<?php echo e(isset($meta_description)? clean($meta_description):""); ?>">
    <meta name="keywords" content="<?php echo e($meta_keyward ?? ''); ?>">

    <meta name="author" content="<?php echo e(get_setting('company_name')); ?>">
    <meta name="resource-type" content="document">
    <meta name="contact" content="<?php echo e(get_setting('company_email1')); ?>">

    <meta property="og:site_name" content="<?php echo e(get_setting('company_name')); ?>">
    <meta property="og:title" content="<?php echo e($title ?? ''); ?>">
    <meta property="og:description" content="<?php echo e(isset($meta_description)?clean($meta_description):""); ?>">
    <meta property="og:type" content="website" />
    <meta property="og:locale" content="en_US">
    <meta property="og:url" content="<?php echo e(url()->current()); ?>">

    <meta name="twitter:site" content="<?php echo e('@' . get_setting('company_name')); ?>">
    <meta name="brand_name" content="<?php echo e(get_setting('company_name')); ?>">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="<?php echo e($title ?? ''); ?>">
    <meta name="twitter:description" content="<?php echo e(isset($meta_description)?clean($meta_description):""); ?>">
    <meta name="twitter:domain" content="<?php echo e(url('/')); ?>">
    <?php if(isset($meta_image) && $meta_image): ?>
        <meta property="og:image" content="<?php echo e($meta_image?? ''); ?>">
        <meta name="twitter:image" content="<?php echo e($meta_image?? ''); ?>">
    <?php endif; ?>


    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/animate.css')); ?>">
    <!-- css file link -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/all.css')); ?>">

    <!-- bootstrap 5 -->

    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/bootstrap.rtl.min.css')); ?>">

    <!-- box-icon -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/boxicons.min.css')); ?>">

    <!-- bootstrap icon -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/bootstrap-icons.css')); ?>">

    <!-- jquery ui -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/jquery-ui.css')); ?>">

    <!-- swiper-slide -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/swiper-bundle.min.css')); ?>">

    <!-- slick-slide -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/slick-theme.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/slick.css')); ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('backend/libraries/cutealert/css/style.css')); ?>">
    <!-- select 2 -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/nice-select.css')); ?>">

    <!-- animate css -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/magnific-popup.css')); ?>">

    <!-- odometer css -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/odometer.css')); ?>">

    <!-- style css -->
    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/style.css')); ?>">

    <link rel="stylesheet" href="<?php echo e(asset('frontend/css/modify.css')); ?>">
    <?php if($locale == 'sa'): ?>
        <link rel="stylesheet" href="<?php echo e(asset('frontend/css/style-rtl.css')); ?>">
    <?php endif; ?>

    <?php if(get_setting('analytics_id')): ?>
        <!-- Global site tag (gtag.js) - Google Analytics -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo e(get_setting('analytics_id')); ?>"></script>

        <script>
            window.dataLayer = window.dataLayer || [];

            function gtag() {
                dataLayer.push(arguments);
            }
            gtag('js', new Date());

            gtag('config', "<?php echo e(get_setting('analytics_id')); ?>");
        </script>
    <?php endif; ?>

    <style>
        :root {
            --primary: <?php echo e(get_setting('primary_color') ?? '#32c36c'); ?>;
            --secondary: <?php echo e(get_setting('secondary_color') ?? '#1F2230'); ?>;
        }

        .inner-banner {
            background: rgba(<?php echo $hex; ?>, .9);
        }
    </style>




</head>

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

<body>

    <?php if(get_setting('show_preloader') == 1): ?>
        <!-- preloader -->
        <div class="preloader">
            <div class="loader">
                <span></span>
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
    <?php endif; ?>

    <div class="layout-wrapper">
        <!-- =============== search-area start =============== -->

        <?php echo $__env->make('frontend.template-1.partials.mobile_search', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        <!-- =============== search-area end  =============== -->

        <!-- ========== topbar ============= -->
        <?php echo $__env->make('frontend.template-1.partials.topbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        <!-- ========== header============= -->

        <?php echo $__env->make('frontend.template-1.partials.header', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        <!-- ========== header end============= -->

        <!-- ===============  Hero area end=============== -->

        <!-- main-container -->
        
        <div class="main-content">
            <?php echo $__env->yieldContent('content'); ?>
        </div>

        <!-- =============== counter-section end =============== -->

        <!-- =============== Footer-action-section start =============== -->

        <?php echo $__env->make('frontend.template-1.partials.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

        <!-- =============== Footer-action-section end =============== -->
    </div>
    <!-- js file link -->
    <script src="<?php echo e(asset('frontend/js/jquery-3.7.1.min.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/jquery-ui.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/bootstrap.bundle.min.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/wow.min.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/swiper-bundle.min.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/slick.js')); ?>"></script>
    <script src="<?php echo e(asset('backend/libraries/cutealert/js/cute-alert.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/jquery.nice-select.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/odometer.min.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/range-slider.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/viewport.jquery.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/jquery.magnific-popup.min.js')); ?>"></script>
    <script src="<?php echo e(asset('frontend/js/main.js')); ?>"></script>
    <!--Start of Tawk.to Script-->




    <!--End of Tawk.to Script-->
    <script>
        var successAlertImage = "<?php echo e(asset('backend/libraries/cutealert/img/success.svg')); ?>";
        var errorAlertImage = "<?php echo e(asset('backend/libraries/cutealert/img/error.svg')); ?>";

        <?php if(Session::has('success')): ?>
            cuteToast({
                type: "success",
                message: "<?php echo e(session('success')); ?>",
                img: successAlertImage,
                timer: 4000
            });
        <?php endif; ?>

        <?php if(Session::has('error')): ?>
            cuteToast({
                type: "error",
                message: "<?php echo e(session('error')); ?>",
                img: errorAlertImage,
                timer: 4000
            });
        <?php endif; ?>
    </script>

    <?php echo $__env->yieldPushContent('js'); ?>


    <?php if(get_setting('tawk_enabled') == 1 && get_setting('tawk_code') !== ''): ?>
        <script type="text/javascript">
            var Tawk_API = Tawk_API || {},
                Tawk_LoadStart = new Date();
            (function() {
                var s1 = document.createElement("script"),
                    s0 = document.getElementsByTagName("script")[0];
                s1.async = true;
                s1.src = "<?php echo e(get_setting('tawk_code')); ?>";
                s1.charset = 'UTF-8';
                s1.setAttribute('crossorigin', '*');
                s0.parentNode.insertBefore(s1, s0);
            })();
        </script>
    <?php endif; ?>


    <p class="d-none cookie"></p>
</body>

</html>
<?php /**PATH C:\ServBay\www\bidout-application\resources\views/frontend/template-1/partials/master.blade.php ENDPATH**/ ?>