<!DOCTYPE html>
<html class="dark" lang="zxx">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        <?php $metaTags = generateMetaTags($seo_settings, $page ?? null,); ?>

        <title><?php echo e($metaTags['title']); ?></title>

        <?php if($metaTags['description']): ?><meta name="description" content="<?php echo e($metaTags['description']); ?>"> <?php endif; ?>


        <?php if($metaTags['keywords']): ?><meta name="keywords" content="<?php echo e($metaTags['keywords']); ?>"> <?php endif; ?>


        <meta name="robots" content="index, follow">

        <link rel="shortcut icon" href="<?php echo e(asset('site/assets/images/faviconkirmizi.svg')); ?>" type="image/x-icon">
        <script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
        <link
            href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap"
            rel="stylesheet" />
        <link rel="stylesheet" href="<?php echo e(asset('site/assets/css/style.css')); ?>">
        <script id="tailwind-config">
            tailwind.config = {
                darkMode: "class",
                theme: {
                    extend: {
                        colors: {
                            "surface": "#0a0a0a",
                            "primary": "#ed1c24",
                            "inverse-primary": "#ffffff",
                            "surface-tint": "#ed1c24",
                            "error": "#ff4d4d",
                            "secondary-fixed": "#2a2a2a",
                            "on-secondary-container": "#a0a0a0",
                            "surface-container-highest": "#222222",
                            "on-surface": "#ffffff",
                            "on-surface-variant": "#909090",
                            "surface-variant": "#1a1a1a",
                            "on-secondary-fixed-variant": "#707070",
                            "tertiary-container": "#151515",
                            "on-tertiary-container": "#606060",
                            "on-primary-fixed": "#ffffff",
                            "secondary-container": "#1f1f1f",
                            "on-secondary": "#ffffff",
                            "inverse-surface": "#ffffff",
                            "on-secondary-fixed": "#e0e0e0",
                            "surface-container-high": "#141414",
                            "primary-fixed-dim": "#cc181f",
                            "tertiary-dim": "#222222",
                            "surface-container": "#111111",
                            "secondary": "#404040",
                            "error-container": "#441111",
                            "surface-container-low": "#0d0d0d",
                            "tertiary": "#1a1a1a",
                            "on-primary-container": "#ffffff",
                            "on-error-container": "#ffbaba",
                            "inverse-on-surface": "#0a0a0a",
                            "on-tertiary-fixed": "#909090",
                            "surface-dim": "#0a0a0a",
                            "outline-variant": "#333333",
                            "secondary-dim": "#303030",
                            "primary-container": "#ed1c24",
                            "surface-bright": "#1f1f1f",
                            "on-error": "#ffffff",
                            "on-primary-fixed-variant": "#ffffff",
                            "primary-dim": "#ed1c24",
                            "tertiary-fixed": "#2a2a2a",
                            "error-dim": "#ff4d4d",
                            "on-primary": "#ffffff",
                            "background": "#0a0a0a",
                            "tertiary-fixed-dim": "#1f1f1f",
                            "on-background": "#ffffff",
                            "secondary-fixed-dim": "#222222",
                            "surface-container-lowest": "#000000",
                            "primary-fixed": "#ed1c24",
                            "on-tertiary": "#808080",
                            "outline": "#444444"
                        },
                        fontFamily: {
                            "headline": ["Gilroy", "sans-serif"],
                            "body": ["Gilroy", "sans-serif"],
                            "label": ["Gilroy", "sans-serif"]
                        },
                        borderRadius: { "DEFAULT": "0", "lg": "0", "xl": "0", "full": "9999px" },
                    },
                },
            }
        </script>
            
            
            <?php echo $__env->yieldContent('css'); ?>
            <?php echo $__env->yieldContent('customcss'); ?>

    </head>
   <body class="font-body selection:bg-primary selection:text-on-primary">
        
        <?php echo $__env->make('site.layout.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        <?php echo $__env->yieldContent('content'); ?>

        <?php echo $__env->make('site.layout.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        
        
        <script src="<?php echo e(asset('site/assets/js/jquery-3.7.1.min.js')); ?>"></script>
        <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
        <script src="<?php echo e(asset('site/assets/js/main.js')); ?>"></script>
        <script>
            $(document).ready(function() {

                $('#contactForm, #careerForm').on('submit', function(e) {
                    e.preventDefault();

                    let form = this;
                    let submitButton = $(form).find('button[type="submit"]');
                    let formData = new FormData(this);

                    $.ajax({
                        url: $(form).attr('action'),
                        type: $(form).attr('method') || "POST",
                        data: formData,
                        contentType: false,
                        processData: false,

                        beforeSend: function() {
                            Swal.fire({
                                title: "Gönderiliyor...",
                                text: "Lütfen bekleyiniz",
                                allowOutsideClick: false,
                                didOpen: () => Swal.showLoading()
                            });

                            submitButton.prop('disabled', true);
                        },

                        success: function(res) {

                            Swal.fire({
                                icon: 'success',
                                title: 'Başarılı!',
                                text: res.message || $(form).data('success-message') || "Mesajınız gönderildi."
                            });

                            form.reset();

                            if (form.id === 'careerForm') {
                                $('.career-upload__surface span:last-child').text('PDF veya DOC formatında CV ekleyin');

                                let companySelector = $('[data-company-select]');
                                let defaultCompanyOption = companySelector.find('[data-company-option]').first();
                                let defaultCompanyValue = defaultCompanyOption.data('company-value') || defaultCompanyOption.text().trim();
                                let defaultCompanyLogo = defaultCompanyOption.data('company-logo') || '';

                                companySelector.find('[data-company-option]').removeClass('is-selected');
                                defaultCompanyOption.addClass('is-selected');
                                companySelector.find('[data-company-input]').val(defaultCompanyValue);
                                companySelector.find('[data-company-selected-label]').text(defaultCompanyValue);
                                companySelector.find('[data-company-selected-logo]').attr('src', defaultCompanyLogo);
                            }

                            if (typeof grecaptcha !== 'undefined') {
                                grecaptcha.reset();
                            }
                        },

                        error: function(xhr) {

                            if (xhr.status === 422 && xhr.responseJSON && xhr.responseJSON.errors) {
                                let errors = xhr.responseJSON.errors;
                                let html = "";

                                $.each(errors, function(key, value) {
                                    html += value.join ? value.join("<br>") + "<br>" : value + "<br>";
                                });

                                Swal.fire({
                                    icon: 'error',
                                    title: 'Hata!',
                                    html: html
                                });

                                if (typeof grecaptcha !== 'undefined') {
                                    grecaptcha.reset();
                                }
                            } else {
                                Swal.fire({
                                    icon: 'error',
                                    title: 'Hata!',
                                    text: 'Bir hata oluştu.'
                                });

                                if (typeof grecaptcha !== 'undefined') {
                                    grecaptcha.reset();
                                }
                            }
                        },

                        complete: function() {
                            submitButton.prop('disabled', false);
                        }
                    });

                });
            });
        </script>

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

         </div>
 </div>

</body>
</html>
<?php /**PATH /Users/furkanciloglu/Herd/impoholdingpanel/resources/views/site/layout/master.blade.php ENDPATH**/ ?>