<?php
    $announcements = apply_filters('announcement_display_html', null);
    $canRenderAnnouncements = is_plugin_active('announcement') && $announcements && \ArchiElite\Announcement\Models\Announcement::query()->exists();
?>

<div class="top-header">
    <div class="top-header-left">
        <?php if($canRenderAnnouncements): ?>
            <?php echo $announcements; ?>

        <?php else: ?>
            <?php if($hotline = theme_option('hotline')): ?>
                <div class="top-header-item">
                    <?php if (isset($component)) { $__componentOriginal73995948b3bd877b76251b40caf28170 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal73995948b3bd877b76251b40caf28170 = $attributes; } ?>
<?php $component = Botble\Icon\View\Components\Icon::resolve(['name' => 'ti ti-phone'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('core::icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Botble\Icon\View\Components\Icon::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => 'width: 1.25rem; height: 1.25rem']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal73995948b3bd877b76251b40caf28170)): ?>
<?php $attributes = $__attributesOriginal73995948b3bd877b76251b40caf28170; ?>
<?php unset($__attributesOriginal73995948b3bd877b76251b40caf28170); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal73995948b3bd877b76251b40caf28170)): ?>
<?php $component = $__componentOriginal73995948b3bd877b76251b40caf28170; ?>
<?php unset($__componentOriginal73995948b3bd877b76251b40caf28170); ?>
<?php endif; ?>
                    <a href="tel:<?php echo e($hotline); ?>"><?php echo e($hotline); ?></a>
                </div>
            <?php endif; ?>
            <?php if($email = theme_option('email')): ?>
                <div class="top-header-item">
                    <?php if (isset($component)) { $__componentOriginal73995948b3bd877b76251b40caf28170 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal73995948b3bd877b76251b40caf28170 = $attributes; } ?>
<?php $component = Botble\Icon\View\Components\Icon::resolve(['name' => 'ti ti-mail'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('core::icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Botble\Icon\View\Components\Icon::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['style' => 'width: 1.25rem; height: 1.25rem']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal73995948b3bd877b76251b40caf28170)): ?>
<?php $attributes = $__attributesOriginal73995948b3bd877b76251b40caf28170; ?>
<?php unset($__attributesOriginal73995948b3bd877b76251b40caf28170); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal73995948b3bd877b76251b40caf28170)): ?>
<?php $component = $__componentOriginal73995948b3bd877b76251b40caf28170; ?>
<?php unset($__componentOriginal73995948b3bd877b76251b40caf28170); ?>
<?php endif; ?>
                    <a href="mailto:<?php echo e($email); ?>"><?php echo e($email); ?></a>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    </div>

    <div class="top-header-right">
        <?php if(is_plugin_active('real-estate')): ?>
            <?php if(RealEstateHelper::isEnabledWishlist()): ?>
                <a href="<?php echo e(route('public.wishlist')); ?>" class="my-wishlist-link">
                    <?php echo e(__('My Wishlist')); ?>

                    (<span data-bb-toggle="wishlist-count" class="fw-medium">0</span>)
                </a>
            <?php endif; ?>

            <?php echo Theme::partial('currency-switcher'); ?>

        <?php endif; ?>

        <?php echo Theme::partial('language-switcher'); ?>


        <?php if(is_plugin_active('real-estate') && RealEstateHelper::isLoginEnabled()): ?>
            <?php if(auth()->guard('account')->check()): ?>
                <a href="<?php echo e(route('public.account.dashboard')); ?>" class="d-flex gap-2 align-items-center me-3">
                    <?php echo e(RvMedia::image(auth('account')->user()->avatar_url, auth('account')->user()->name, attributes: ['class' => 'rounded-circle', 'style' => 'width: 22px'])); ?>

                    <span class="text-body-2 fw-semibold"><?php echo e(auth('account')->user()->name); ?></span>
                </a>
            <?php else: ?>
                <div class="register">
                    <ul class="d-flex">
                        <li>
                            <a
                                <?php if(theme_option('use_modal_for_authentication', true)): ?>
                                    href="#modalLogin"
                                    data-bs-toggle="modal"
                                <?php else: ?>
                                    href="<?php echo e(route('public.account.login')); ?>"
                                <?php endif; ?>
                            >
                                <?php echo e(__('Login')); ?>

                            </a>
                        </li>
                        <?php if(RealEstateHelper::isRegisterEnabled()): ?>
                            <li>/</li>
                            <li>
                                <a
                                    <?php if(theme_option('use_modal_for_authentication', true)): ?>
                                        href="#modalRegister"
                                    data-bs-toggle="modal"
                                    <?php else: ?>
                                        href="<?php echo e(route('public.account.register')); ?>"
                                    <?php endif; ?>
                                >
                                    <?php echo e(__('Register')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/partials/top-header.blade.php ENDPATH**/ ?>