?
Current File : /home/sanghavirealty/public_html/storageazwer/framework/views/38facfd590465d7469f15668eea31857.php
    
    
    <?php $__env->startSection('content'); ?>
    
    <div class="section-userdata">
      <div class="container py-2">
        
                <div class="card shadow mt-4">


                    <div class="card-header card-title bg-transparent border-bottom d-flex justify-content-between">
                        <h4 class="mb-2 mb-sm-0">
                          
                          <?php if($getType == 'Contact'): ?>

                          Contact Manager

                          <?php elseif($getType == 'Feature'): ?> 

                          Feature Manager

                          <?php endif; ?>


                        
                        
                        </h4>
                      
                      </div>


                  <div class="table-responsive border-0">
                    <table class="table table-dark-gray align-middle p-4 mb-0 table-hover">
                      <!-- Table head -->
                      <thead>
                        <tr>
                       
                          <th scope="col" class="" width="5%">Id</th>
                          <th scope="col" width="20%" class="">Name</th>
                          <th scope="col" class="" width="25%">Email/Phone</th>
                          <th scope="col" class="" width="30%">
                            
                      
                            

                            <?php if($getType == 'Feature'): ?> 

                            Your Feature Idea / Suggestion

                            <?php else: ?>

                            Message
  
                            <?php endif; ?>

                            
                            
                          </th>
                          <th scope="col" class="rounded-end" width="20%">Action</th>
                        </tr>
                      </thead>
        
                     
                      <tbody>

<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>


<tr>

  
                                             
    <td><?php echo e($loop->iteration); ?></td>
  
    <td class=" text-sm-start">

        <div class="d-flex align-items-center position-relative">
            <div class="mb-0 ms-0">
              <h6 class="mb-0"><a href="#" class="name-link"><?php echo e($lead['name']); ?></a></h6>
            </div>
          </div>

          <?php if(!empty($lead->getListTitle->listingtitle)): ?>
          <span class="text-body small"><?php echo e($lead->getListTitle->listingtitle ?? ''); ?></span>  <br>
          <?php endif; ?>

       
        
         
          <span class="text-body small"><?php echo e($lead->subject ?? ''); ?></span> <br>



          <span class="text-body small">
            
            <?php switch($lead->type):

            case (1): ?>
            Spam
            <?php break; ?>
            <?php case (2): ?>
            Misrepresented<
            <?php break; ?>
            <?php case (3): ?>
            Copyright Issue
            <?php break; ?>
            <?php case (4): ?>
            Illegal
            <?php break; ?>

            <?php default: ?>
      
            <?php endswitch; ?>
</span>


<?php if(!empty($lead->brandid)): ?>
<span class="text-body small"><a target='_blank' href='<?php echo e(url('')); ?>/profile-view<?php echo e($lead->getBrandTitle->slug); ?>'><?php echo e($lead->getBrandTitle->companyname ?? ''); ?></a></span>  <br>
<?php endif; ?>

<?php if(!empty($lead->reviewid)): ?>
<span class="text-body small">Review: <?php echo e($lead->getReviewTitle->feedback ?? ''); ?></a></span>  <br>


<?php endif; ?>




    </td>
   
    <td> 
        <span class="text-body small"><?php echo e($lead['email']); ?> </span><br>
        <span class="text-body small"><?php echo e($phone = $lead->GetAmericanStyleNumber($lead['phone'])); ?></span> <br>
        <span class="text-body small"><?php echo e($lead->refURL ?? ''); ?></span>
        
    </td>
   
    <td>

      



      
      <span class="text-body small"><?php echo e($lead['message']); ?> </span>
    
    
    
    </td>

    <td>

      <a href="<?php echo e(url('admin-lead-updatestatus/').'/'.$lead['id']); ?>" class="btn btn-light btn-round me-1 mb-1 mb-md-0" data-bs-toggle="tooltip" data-bs-placement="top" title="Delete" data-bs-original-title="Message">
        <i class="bi bi-trash"></i>
      </a>

        
    


       
<span data-bs-toggle="tooltip" title="View">
       <a href="#" class="btn btn-light btn-round me-1 mb-1 mb-md-0"data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight<?php echo e($lead->id); ?>" 
       aria-controls="offcanvasRight">
       <i class="bi bi-eye"></i>
      </a></span>



       <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight<?php echo e($lead->id); ?>" aria-labelledby="offcanvasRightLabel">
         <div class="offcanvas-header">
           <h5 id="offcanvasRightLabel">Lead Details</h5>
    
           <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
         </div>
         <div class="offcanvas-body">
          <ul class="list-group" >

        

<li class="list-group-item"><div class="fw-bold">
  
  <?php if(!empty($lead->reviewid)): ?>
  Review: <?php echo e($lead->getReviewTitle->feedback ?? ''); ?>

  <?php endif; ?>


</div></li>
            <li class="list-group-item"><div class="fw-bold"><?php echo e($lead->name ?? ''); ?></div></li>
            <li class="list-group-item"><div class="fw-bold"><?php echo e($lead->email ?? ''); ?></div></li>
            <li class="list-group-item"><div class="fw-bold"><?php echo e($lead->phone?? ''); ?></div></li>
              <li class="list-group-item" ><?php echo e($lead->subject ?? ''); ?></li>
                <li class="list-group-item"><?php echo e($lead->message ?? ''); ?></li>
                <li class="list-group-item" > 

                  <?php echo e(Carbon\Carbon::create($lead->createdate)->format('d/m/Y')); ?>

                </li>
                <li class="list-group-item" ><?php echo e($lead->id ?? ''); ?></li>
                <li class="list-group-item" ><?php echo e($lead->type ?? ''); ?></li>
                <li class="list-group-item" ><?php echo e($lead->refURL?? ''); ?></li>
             
                

         </ul>
         </div>
       </div>




       
    </td>
  </tr>

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



</tbody>

</table>
</div>
</div>
</div>

</div>



<div class='container'>
    <div class="d-flex justify-content-center">
  <?php echo e($data->links()); ?>

  </div>
  </div>
    
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('layoutsdashboard.dashboard-design',[
    'webtitle'=> 'Manage Leads'
    
    ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sanghavirealty/public_html/resources/views/ticketlead/leadmanager.blade.php ENDPATH**/ ?>