
<?php $__env->startSection('title'); ?>
<title><?php echo e($seo_text->seo_title); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
<meta name="description" content="<?php echo e($seo_text->seo_description); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('user-content'); ?>

  <!--===BREADCRUMB PART START====-->
  <section class="wsus__breadcrumb" style="background: url(<?php echo e($banner_image ? url($banner_image) : ''); ?>);">
    <div class="wsus_bread_overlay">
        <div class="container">
            <div class="row">
                <div class="col-12 text-center">
                    <h4></h4>
                    <nav style="--bs-breadcrumb-divider: '-';" aria-label="breadcrumb">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo e(route('home')); ?>"><?php echo e(__('user.Home')); ?></a></li>
                            <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('user.Our Agent')); ?></li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</section>
<!--===BREADCRUMB PART END====-->


<!--=========AGENT START============-->
<section class="wsus__agents mt_45 mb_20">
  <div class="container">
    <div class="row">
        <div class="col-12">
            <form class="agent_top" action="<?php echo e(route('agents')); ?>">
                <select name="location" id="" class="form-control select_2">
                    <option value=""><?php echo e(__('user.Select Location')); ?></option>
                    <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $search_city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(request()->has('location')): ?>
                    <option <?php echo e(request()->get('location') == $search_city->slug ? 'selected' : ''); ?> value="<?php echo e($search_city->slug); ?>"><?php echo e($search_city->translated_name); ?></option>
                    <?php else: ?>
                    <option value="<?php echo e($search_city->slug); ?>"><?php echo e($search_city->translated_name); ?></option>
                    <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <button class="common_btn2"><?php echo e(__('user.Search')); ?></button>
            </form>
        </div>
    </div>

    <div class="row">

        <?php if($agents->count() > 0): ?>
            <?php $__currentLoopData = $agents; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $agent): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $isOrder=$orders->where('user_id',$agent->id)->count();
                ?>
                <?php if($isOrder >0): ?>
                <div class="col-xl-3 col-sm-6 col-lg-4">
                    <div class="wsus__single_team">
                    <a href="<?php echo e(route('agent.show',['user_type' => '2','user_name'=>$agent->slug])); ?>" class="wsus__single_team_img">
                        <img src="<?php echo e($agent->image ? url($agent->image) : url($default_profile_image)); ?>" alt="team images" class="imf-fluid w-100">
                    </a>
                    <a href="<?php echo e(route('agent.show',['user_type' => '2','user_name'=>$agent->slug])); ?>" class="title"><?php echo e($agent->translated_name); ?></a>
                    <p><i class="fal fa-location-circle"></i> <?php echo e($agent->translated_address); ?></p>
                    <ul class="agent_link">
                        <?php if($agent->icon_one && $agent->link_one): ?>
                        <li><a href="<?php echo e($agent->link_one); ?>"><i class="<?php echo e($agent->icon_one); ?>"></i></a></li>
                        <?php endif; ?>

                        <?php if($agent->icon_two && $agent->link_two): ?>
                        <li><a href="<?php echo e($agent->link_two); ?>"><i class="<?php echo e($agent->icon_two); ?>"></i></a></li>
                        <?php endif; ?>

                        <?php if($agent->icon_three && $agent->link_three): ?>
                        <li><a href="<?php echo e($agent->link_three); ?>"><i class="<?php echo e($agent->icon_three); ?>"></i></a></li>
                        <?php endif; ?>

                        <?php if($agent->icon_four && $agent->link_four): ?>
                        <li><a href="<?php echo e($agent->link_four); ?>"><i class="<?php echo e($agent->icon_four); ?>"></i></a></li>
                        <?php endif; ?>
                    </ul>
                    </div>
                </div>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <div class="col-12 mt_25">
                <?php echo e($agents->links('custom_paginator')); ?>

            </div>
        <?php else: ?>
            <div class="col-12 text-center text-danger mt-5">
                <h4><?php echo e(__('user.Agent Not Found!')); ?></h4>
            </div>
        <?php endif; ?>
    </div>
  </div>
</section>
<!--=========AGENT END==========-->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/fwvrhhfw/topriserealtors.com/resources/views/agent.blade.php ENDPATH**/ ?>