<?php
    if ($account->phone&& ! setting('real_estate_hide_agency_phone', 0)) {
        Theme::set('hotlineNumber', $account->phone);
    }
?>
<section class="main-homes">
    <div
        class="bgheadproject hidden-xs"
        style="background: url('<?php echo e(theme_option('breadcrumb_background') ? RvMedia::url(theme_option('breadcrumb_background')) : Theme::asset()->url('images/banner-du-an.jpg')); ?>')"
    >
        <div class="description">
            <div class="container-fluid w90">
                <h1 class="text-center"><?php echo e($account->name); ?></h1>
                <?php echo Theme::partial('breadcrumb'); ?>

            </div>
        </div>
    </div>
    <div class="container-fluid w90 padtop30">
        <div class="rowm10">
            <h5 class="headifhouse"><?php echo e(__('Agent info')); ?></h5>
            <div class="agent-details">
                <div>
                    <?php if($account->url): ?>
                        <a href="<?php echo e($account->url); ?>">
                            <?php if($account->avatar->url): ?>
                                <img
                                    class="img-thumbnail"
                                    src="<?php echo e(RvMedia::getImageUrl($account->avatar->url, 'thumb')); ?>"
                                    alt="<?php echo e($account->name); ?>"
                                >
                            <?php else: ?>
                                <img
                                    class="img-thumbnail"
                                    src="<?php echo e($account->avatar_url); ?>"
                                    alt="<?php echo e($account->name); ?>"
                                >
                            <?php endif; ?>
                        </a>
                    <?php else: ?>
                        <?php if($account->avatar->url): ?>
                            <img
                                class="img-thumbnail"
                                src="<?php echo e(RvMedia::getImageUrl($account->avatar->url, 'thumb')); ?>"
                                alt="<?php echo e($account->name); ?>"
                            >
                        <?php else: ?>
                            <img
                                class="img-thumbnail"
                                src="<?php echo e($account->avatar_url); ?>"
                                alt="<?php echo e($account->name); ?>"
                            >
                        <?php endif; ?>
                    <?php endif; ?>
                </div>
                <div>
                    <h4><?php echo e($account->name); ?></h4>
                    <?php if($account->email && !setting('real_estate_hide_agency_email', 0)): ?>
                        <p class="mobile mb-2"><strong class="d-inline-block"><?php echo e(__('Email')); ?></strong>: <span dir="ltr"><a
                                    href="mailto:<?php echo e($account->email); ?>"
                                ><?php echo e($account->email); ?></a></span></p>
                    <?php endif; ?>
                    <?php if($account->phone && !setting('real_estate_hide_agency_phone', 0)): ?>
                        <p class="mobile mb-2"><strong class="d-inline-block"><?php echo e(__('Phone')); ?></strong>: <span
                                dir="ltr"
                            ><a href="tel:<?php echo e($account->phone); ?>"><?php echo e($account->phone); ?></a></span></p>
                    <?php endif; ?>
                    <?php if($account->company): ?>
                        <p class="mobile mb-2"><strong class="d-inline-block"><?php echo e(__('Company')); ?></strong>: <span
                            ><?php echo e($account->company); ?></span></p>
                    <?php endif; ?>
                    <p><strong class="d-inline-block"><?php echo e(__('Joined on')); ?></strong>: <span
                            class="d-inline-block"><?php echo e($account->created_at->toDateString()); ?></span></p>
                </div>
                <div style="clear: both"></div>
            </div>

            <div style="clear: both"></div>

            <div
                class="ck-content"
                style="margin-top: 20px"
            ><?php echo BaseHelper::clean($account->description); ?></div>

            <br>

            <?php if($properties->isNotEmpty()): ?>
                <h5 class="headifhouse"><?php echo e(__('Properties by this agent')); ?></h5>
                <div class="projecthome px-2">
                    <div class="row rowm10">
                        <?php $__currentLoopData = $properties; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $property): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-sm-6 col-lg-4 col-xl-3 colm10">
                                <?php echo Theme::partial('real-estate.properties.item', ['property' => $property]); ?>

                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            <?php endif; ?>

            <?php echo apply_filters('real_estate_agent_details', null, $account); ?>

        </div>
    </div>
</section>
<br>
<div class="col-sm-12">
    <nav
        class="d-flex justify-content-center pt-3"
        aria-label="Page navigation example"
    >
        <?php echo $properties->withQueryString()->links(); ?>

    </nav>
</div>
<br>
<br>
<?php /**PATH /home/gyannewsoftware/public_html/realestate13_FlexHome/platform/themes/flex-home/views/real-estate/agent.blade.php ENDPATH**/ ?>