<?php
    /** @var array $homeHero */
    $h = is_array($homeHero ?? null) ? $homeHero : [];

    $badge = filled(trim((string) data_get($h, 'badge_text')))
        ? data_get($h, 'badge_text')
        : 'دعم كامل • إنجاز سريع • خطوات واضحة';

    $line1 = filled(trim((string) data_get($h, 'title_line_1')))
        ? data_get($h, 'title_line_1')
        : 'استقدام عاملة منزلية';
    $connector = filled(trim((string) data_get($h, 'title_connector')))
        ? data_get($h, 'title_connector')
        : 'أو';
    $line2 = filled(trim((string) data_get($h, 'title_line_2')))
        ? data_get($h, 'title_line_2')
        : 'استخراج تأشيرة خادمة';

    $note = filled(trim((string) data_get($h, 'description')))
        ? data_get($h, 'description')
        : 'نوفر لك تجربة واضحة ومنظمة لتوظيف العاملات المنزليات والمربيات، مع دعم في اختيار المرشحة المناسبة، تجهيز المستندات، ومتابعة جميع خطوات التأشيرة أو التوظيف حتى الاكتمال.';

    $btnUrl = function (?string $raw, string $fallback): string {
        $raw = $raw ? trim($raw) : '';
        if ($raw === '') {
            return $fallback;
        }
        if (\Illuminate\Support\Str::startsWith($raw, ['http://', 'https://'])) {
            return $raw;
        }
        return url($raw);
    };

    $secondaryHref = $btnUrl(data_get($h, 'secondary_button_url'), route('maid.visa'));
    $tertiaryHref = $btnUrl(data_get($h, 'tertiary_button_url'), route('contact.us'));

    $primaryText = filled(trim((string) data_get($h, 'primary_button_text')))
        ? data_get($h, 'primary_button_text')
        : '';
    $secondaryText = filled(trim((string) data_get($h, 'secondary_button_text')))
        ? data_get($h, 'secondary_button_text')
        : '';
    $tertiaryText = filled(trim((string) data_get($h, 'tertiary_button_text')))
        ? data_get($h, 'tertiary_button_text')
        : '';

    $mobileLabel = filled(trim((string) data_get($h, 'primary_mobile_label')))
        ? data_get($h, 'primary_mobile_label')
        : 'اتصلي بنا';
    $mobileHref = filled(trim((string) data_get($h, 'primary_mobile_href')))
        ? data_get($h, 'primary_mobile_href')
        : 'tel:+97180032332';
?>

<?php $__env->startPush('styles'); ?>
<style>
    .hero-section .hero-shell::after {
        animation: none !important;
        transform: translateX(0) rotate(0) !important;
    }
    .hero-section .hero-orb,
    .hero-section .hero-orb-1,
    .hero-section .hero-orb-2,
    .hero-section .hero-orb-3 {
        animation: none !important;
    }
    .hero-section .hero-entry {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-section .hero-title-line,
    .hero-section .hero-title-or {
        animation: none !important;
    }
    .hero-section .hero-title-or.show{
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-section .hero-actions.active .hero-action-item{
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .hero-section .hero-title-line::after {
        animation: none !important;
        transform: scaleX(1) !important;
        opacity: 1 !important;
    }
    .hero-section .hero-btn-whatsapp {
        background: #25D366 !important;
        border-color: #25D366 !important;
        color: #fff !important;
    }
    .hero-section .hero-btn-whatsapp:hover {
        background: #1EBE57 !important;
        border-color: #1EBE57 !important;
        color: #fff !important;
    }
</style>
<?php $__env->stopPush(); ?>

<div class="hero-content">
    <span class="mini-badge">
        <i class="fa-solid fa-sparkles"></i>
        <?php echo e($badge); ?>

    </span>

    <div class="hero-title-wrap">
        <h1 class="hero-title-main" aria-label="<?php echo e($line1); ?> <?php echo e($connector); ?> <?php echo e($line2); ?>">
            <span class="hero-title-line show"><?php echo e($line1); ?></span>
            <span class="hero-title-or show"><?php echo e($connector); ?></span>
            <span class="hero-title-line show"><?php echo e($line2); ?></span>
        </h1>
    </div>

    <p class="hero-note">
        <?php echo e($note); ?>

    </p>

    <div class="hero-actions active" id="heroActions">
        <?php if(filled($primaryText)): ?>
            <div class="hero-action-item">
                <a href="#" class="btn-main hero-btn interactive desktop-only" data-bs-toggle="modal" data-bs-target="#callbackModal">
                    <i class="fa-solid fa-phone-volume"></i>
                    <span><?php echo e($primaryText); ?></span>
                </a>

                <a href="<?php echo e($mobileHref); ?>" class="btn-main hero-btn interactive mobile-only" aria-label="اتصلي بنا">
                    <i class="fa-solid fa-phone-volume"></i>
                    <span><?php echo e($mobileLabel); ?></span>
                </a>
            </div>
        <?php endif; ?>

        <?php if(filled($secondaryText)): ?>
            <div class="hero-action-item">
                <a href="<?php echo e($secondaryHref); ?>" class="btn-main hero-btn hero-btn-light interactive">
                    <i class="fa-solid fa-paper-plane"></i>
                    <span><?php echo e($secondaryText); ?></span>
                </a>
            </div>
        <?php endif; ?>

        <?php if(filled($tertiaryText)): ?>
            <div class="hero-action-item">
                <a href="<?php echo e($tertiaryHref); ?>" class="btn-main hero-btn hero-btn-whatsapp interactive" target="_blank" rel="noopener">
                    <i class="fa-brands fa-whatsapp" style="font-size: x-large;"></i>
                    <span><?php echo e($tertiaryText); ?></span>
                </a>
            </div>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH /home/onesourceerp/public_html/project/resources/views/partials/home/hero-ar.blade.php ENDPATH**/ ?>