KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/leadai/leadai.co.in/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/leadai/leadai.co.in/storage/framework/views/c633bbcc4503988be73438237fbf69deaba1f806.php
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<style>
   .input_upload{
   width:100px;
   height:35px;
   position:absolute;
   bottom:-34px;
   right:350px;
   }
   .import-content p{
   padding:0;
   margin:0;
   margin-bottom:8px;
   font-size:13px;
   }
   .filter-form-box{
   background-color:#FBFAFA;
   padding:10px 24px;
   position:absolute;
   width:450px;
   border:1px solid #ddd;
   border-radius:5px;
   top:71px;
   z-index:20;
   }
   .filter-form-box input{
   height:40px !important;
   }
   .diamond {
   width: 20px;
   height: 20px;
   background-color: #FBFAFA;
   transform: rotate(45deg);
   position: relative;
   top:-21px;
   left:0px;
   border-top:1px solid #ddd;
   border-left:1px solid #ddd;
   }
   .seach-input:focus{
   outline:none !important;
   border-top:1px solid #ddd !important;
   border-bottom:1px solid #ddd !important;
   }
   .seach-input{
   height:40px !important;
   border-top:1px solid #ddd !important;
   border-bottom:1px solid #ddd !important;
   border-left:1px solid #ddd !important;
   }
</style>
<main class="main-content">
   <div class="container">
      <div class="toast d-none float-right" >
         <div class="toast-body bg-success text-white">
            <i class="fa fa-check fa-lg"></i>&nbsp Status Update Successfully
         </div>
      </div>

      <section class='main-section1'>
          <!-- begin::page header -->
        <div class="page-header d-flex justify-content-between align-items-center">
            <div>
                <h3>Manage Leads - Sales</h3>
                <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
                    <li class="breadcrumb-item active" aria-current="page">Lead</li>
                    <li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>">Lead</a></li>
                </ol>
                </nav>
            </div>
            <ul class='nav-item dropdown d-flex'>
                <div class="dropdown show" style='margin-right:20px;'>
                  <select class="form-control change_pipeline">
                     <?php if(!empty($pipelines)): ?>
                     <?php $__currentLoopData = $pipelines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pipeline): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                     <option value="<?php echo e($pipeline->id); ?>" <?php echo e(($leads->pipeline_id == $pipeline->id)?"selected":""); ?>><?php echo e($pipeline->name); ?></option>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     <?php endif; ?>
                  </select>

                <div class="dropdown-menu " aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 26px, 0px); top: 0px; left: 0px; will-change: transform;">
                    <a class="dropdown-item" href="#">Sales</a>
                </div>
                </div>

                <!-- Modal Create user-->


              
                <!-- Modal Import Lead CV-->
                <div class="modal fade" id="exampleModal2" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h5 class="" >Import Lead CSV file</h5>
                                <button type="button" class="btn-close bg-blue text-white" data-bs-dismiss="modal" aria-label="Close"style='border:none;margin-right:10px;' >
                                <i class="fa fa-times" aria-hidden="true"></i>
                                </button>
                            </div>
                            <div class="modal-body">
                                <div class="d-flex">
                                <p>Download sample Lead CSV file</p>
                                <button class="btn btn-primary waves-effect waves-button waves-light" type="submit" style='margin-left:20px;'>Submit form</button>
                                </div>
                                <div class="form-group">
                                <label for="exampleFormControlFile1">Example file input</label>
                                <input type="file" class="form-control-file" id="exampleFormControlFile1">
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
                                <button type="button" class="btn btn-primary">Create</button>
                            </div>
                        </div>
                    </div>
                </div>
                <li>
                <a href="javascript:;"  data-toggle="modal" data-target="#convertToDealModal"  data-toggle="tooltip" data-original-title="Convert To Deal">
                <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                <i class="fa fa-exchange" aria-hidden="true"></i>
                </span>
                </a>
                </li>
                

                

                
                <li data-bs-toggle="modal" data-bs-target="#edit_lead_modal" class='cursor-pointer'>
                <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10 cursor-pointer" style='cursor:pointer;'>
                <i class="fa fa-edit" aria-hidden="true"></i>
                </span>
                </li>


            </ul>
        </div>
        <!-- end::page header -->
        <?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
        <?php if($errors->any()): ?>
    <div class="alert alert-danger">
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>


<div class="row">
    <div class="col-md-3">
       <div class="card">
          <div class="card-body">
             <div class="row">
                <div class="col-md-12">
                   <div class="nav flex-column nav-pills me-3" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                      <a class="nav-link active" id="v-pills-home-tab" data-bs-toggle="pill" data-bs-target="#v-pills-home" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true">General</a>
                      <a class="nav-link " id="v-pills-home-tab" data-bs-toggle="pill" data-bs-target="#v-pills-home" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true">Task</a>
                      <a class="nav-link" id="v-pills-profile-tab" data-bs-toggle="pill" data-bs-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false">Product</a>
                      
                      <a class="nav-link" id="v-pills-settings-tab" data-bs-toggle="pill" data-bs-target="#v-pills-settings" type="button" role="tab" aria-controls="v-pills-settings" aria-selected="false">Discussion Notes</a>
                      
                      <a class="nav-link" id="v-pills-calls-tab" data-bs-toggle="pill" data-bs-target="#v-pills-calls" type="button" role="tab" aria-controls="v-pills-calls" aria-selected="false">Calls</a>
                      <a class="nav-link" id="v-pills-activity-tab" data-bs-toggle="pill" data-bs-target="#v-pills-activity" type="button" role="tab" aria-controls="v-pills-activity" aria-selected="false">Activity</a>
                   </div>
                </div>
             </div>
          </div>
       </div>
    </div>
    <div class="col-md-9">
       <div class="tab-content" id="v-pills-tabContent">
          <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
             <div class="card">
                <div class="row">
                   <div class="col-md-4">
                      <div class="p-4 d-flex justify-content-between align-items-center flex-lg-row">
                         <div class='d-flex align-items-center'>
                            <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                            <i class="fa fa-download font-size-16"></i>
                            </span>
                            <span style='display:flex;jusity-content:center;flex-flow:column;position:relative;top:10px;left:10px;'>
                               <p style='margin:0'>Email</p>
                               <p style='font-size:17px;' class='text-blue'><b><?php echo e($leads->email??''); ?></b></p>
                            </span>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="p-4 d-flex justify-content-between align-items-center flex-lg-row">
                         <div class='d-flex align-items-center'>
                            <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                            <i class="fa fa-download font-size-16"></i>
                            </span>
                            <span style='display:flex;jusity-content:center;flex-flow:column;position:relative;top:10px;left:10px;'>
                               <p style='margin:0'>Phone</p>
                               <p style='font-size:17px;' class='text-blue'><b><?php echo e($leads->phone); ?></b></p>
                            </span>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="p-4 d-flex justify-content-between align-items-center flex-lg-row">
                         <div class='d-flex align-items-center'>
                            <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                            <i class="fa fa-download font-size-16"></i>
                            </span>
                            <span style='display:flex;jusity-content:center;flex-flow:column;position:relative;top:10px;left:10px;'>
                               <p style='margin:0'>            Pipeline</p>
                               <p style='font-size:17px;' class='text-blue'><b><?php echo e($leads->pipeline_name); ?></b></p>
                            </span>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="p-4 d-flex justify-content-between align-items-center flex-lg-row">
                         <div class='d-flex align-items-center'>
                            <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                            <i class="fa fa-download font-size-16"></i>
                            </span>
                            <span style='display:flex;jusity-content:center;flex-flow:column;position:relative;top:10px;left:10px;'>
                               <p style='margin:0'>Stage</p>
                               <p style='font-size:17px;' class='text-blue'><b><?php echo e($leads->stage_name); ?></b></p>
                            </span>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="p-4 d-flex justify-content-between align-items-center flex-lg-row">
                         <div class='d-flex align-items-center'>
                            <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                            <i class="fa fa-download font-size-16"></i>
                            </span>
                            <span style='display:flex;jusity-content:center;flex-flow:column;position:relative;top:10px;left:10px;'>
                               <p style='margin:0'>Created</p>
                               <p style='font-size:17px;' class='text-blue'><b><?php echo e(date("d/m/Y",strtotime($leads->created_at))); ?></b></p>
                            </span>
                         </div>
                      </div>
                   </div>
                   
                </div>
             </div>

             <div class="row">
                <div class="col-md-12">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Users </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10" data-toggle="modal" data-target="#myModal">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               <th scope="col">Action</th>
                            </tr>
                         </thead>
                         <?php if(!$users->isEmpty()): ?>
                         <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <tr>
                           <td>
                              <figure class="avatar avatar-sm m-r-15">
                                 <span class="avatar-title bg-blue text-white rounded-circle"><?php echo e(substr($user->name,0,1)); ?></span>
                                 <h6 class="m-b-0"><?php echo e($user->name); ?></h6>
                              </figure>
                           </td>
                           <td>
                              <a href="<?php echo e(route('leads.user_delete',$user->id)); ?>"><i class="fa fa-trash text-danger"></i></a>
                           </td>
                         </tr>
                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                         <?php endif; ?>
                      </table>

                   </div>
                </div>

                <div class="col-md-12">
                  <div class="card">
                     <div class="card-header d-flex justify-content-between">
                        <h4>Task </h4>
                        <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10" data-toggle="modal" data-target="#taskModal" >
                        <i class="fa fa-plus" aria-hidden="true"></i>
                        </span>
                     </div>
                     <table class="table table-striped">
                        <thead>
                           <tr>
                              <th scope="col">Name</th>
                              <th scope="col">date & Time</th>
                              <th scope="col">Priority</th>
                              <th scope="col">Status</th>
                              <th scope="col">Action</th>
                           </tr>
                        </thead>
                        <?php if(!empty($task_lists)): ?>
                        <?php $__currentLoopData = $task_lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $task_list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                           <td><?php echo e($task_list->name); ?></td>
                           <td><?php echo e(date("d-m-Y",strtotime($task_list->date))); ?>-<?php echo e($task_list->timem); ?></td>
                           <td><?php echo e($task_list->priority); ?></td>
                           <td><?php echo e($task_list->status); ?></td>
                           
                           <td><a href="<?php echo e(asset('leads/task-delete/'.Request::segment(3)."/".$task_list->id)); ?>"><i class="fa fa-trash text-danger"></i></a></td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                     </table>
                  </div>
               </div>

                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Products </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10" data-toggle="modal" data-target="#productModal" >
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               
                               <th scope="col">Action</th>
                            </tr>
                         </thead>
                         <?php if(!empty($products)): ?>
                         <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <tr>
                            <td><?php echo e($product->name); ?></td>
                            
                            <td><a href="<?php echo e(asset('leads/product-delete/'.Request::segment(3)."/".$product->id)); ?>"><i class="fa fa-trash text-danger"></i></a></td>
                         </tr>
                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                         <?php endif; ?>
                      </table>
                   </div>
                </div>
                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Sources </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10" data-toggle="modal" data-target="#sourcesModal">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>

                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               <th scope="col">Action</th>
                            </tr>
                         </thead>

                         <?php if(!empty($source_list)): ?>
                         <?php $__currentLoopData = $source_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $source): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <tr>
                           <td><?php echo e($source->name); ?></td>
                           <td><a href="<?php echo e(asset('leads/source-delete/'.Request::segment(3)."/".$source->id)); ?>"><i class="fa fa-trash text-danger"></i></a></td>
                        </tr>
                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                         <?php endif; ?>
                      </table>
                   </div>
                </div>
                

                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Discussion </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10" data-toggle="modal" data-target="#discussionModal" >
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               <th scope="col">Action</th>
                            </tr>
                         </thead>
                         <?php if(!empty($lead_discussions)): ?>
                         <?php $__currentLoopData = $lead_discussions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead_discussion): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <tr>
                           <td scope="col"><?php echo e($lead_discussion->comment); ?></td>
                           <td><a href="<?php echo e(asset('leads/discussion_delete/'.Request::segment(3)."/".$lead_discussion->id)); ?>"><i class="fa fa-trash text-danger"></i></a></td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                      </table>
                   </div>
                </div>

               <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Notes </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <div class="form-group">
                        
                        <textarea class="form-control" id="notes" data-leadid="<?php echo e($leads->id); ?>" rows="3"><?php echo e($leads->notes); ?></textarea>
                    </div>
                   </div>
                </div>
             </div>

             <div class="row">
               <div class="card card-body">


                   <div class="d-flex justify-content-between mt-3">
                       <h5 class="font-size-18 ">Calls</h5>
                       <a href="#" class="btn btn-sm bg-blue hover-blue btn-uppercase waves-effect waves-button waves-light text-white" data-toggle="modal" data-target="#callModal"><i class="fa fa-plus" aria-hidden="true"></i></a>
                   </div>

                   <table id="example1" class="mt-3 table table-striped table-bordered dataTable dtr-inline" role="grid" aria-describedby="example1_info" style="width: 100%;">
                           <thead>
                               <tr role="row">
                                   <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 175px;" aria-sort="ascending" aria-label="Name: activate to sort column descending">Subject</th>
                                   <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 256px;" aria-label="Position: activate to sort column ascending">Call Type</th>
                                   <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 133px;" aria-label="Office: activate to sort column ascending">Duration</th>
                                   <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 133px;" aria-label="Office: activate to sort column ascending">user</th>
                                   <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" style="width: 133px;" aria-label="Office: activate to sort column ascending">Actions</th>
                               </tr>
                           </thead>

                           <?php if(!$lead_calls->isEmpty()): ?>
                           <?php $__currentLoopData = $lead_calls; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead_call): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                           <tr>
                              <td><?php echo e($lead_call->subject); ?></td>
                              <td><?php echo e($lead_call->call_type); ?></td>
                              <td><?php echo e($lead_call->duration); ?>></td>
                              <td><?php echo e($lead_call->name); ?></td>
                              <td><a href="<?php echo e(asset('leads/call_delete/'.Request::segment(3)."/".$lead_call->id)); ?>"><i class="fa fa-trash text-danger"></i></a></td>
                           </tr>
                           <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                           <?php endif; ?>
                       <tbody>
                   </table>
               </div>
             </div>

             <div class="row">
               <div class="card card-body">
                   <div class="d-flex justify-content-between mt-3">
                       <h5 class="font-size-18 ">Activity</h5>
                       <!-- <a href="#" class="btn btn-sm bg-blue hover-blue btn-uppercase waves-effect waves-button waves-light text-white"><i class="fa fa-plus" aria-hidden="true"></i></a> -->
                   </div>

                   <?php if(!$lead_activity_log->isEmpty()): ?>
                   <?php $__currentLoopData = $lead_activity_log; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lead_activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                   <div class="card card-body mt-5">
                       <div class="d-flex ">
                            <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10 mt-2" style='padding:25px;position:relative;'>
                            <i class="fa fa-download font-size-20"></i>
                            </span>
                            <span style="display:flex;jusity-content:center;flex-flow:column;position:relative;left:10px;">
                               <p style="margin:0"><?php echo e($lead_activity->log_type); ?></p>
                               <p style="font-size:17px;margin:0" class="text-blue"><b>

                                 <?php

                                    $remark = json_decode($lead_activity->remark);
                                    // dd($remark->title);
                                 ?>
                                 <?php echo e($remark->title); ?>

                              </b></p>
                              <?php
                                 $time = App\Helpers\Frontend::to_time_ago($lead_activity->created_at)
                              ?>
                               <p style="margin:0"><?php echo e($time); ?></p>
                            </span>
                       </div>
                   </div>
                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                   <?php endif; ?>


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



          

          <div class="tab-pane fade show" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab">
             <div class="row">
                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Users </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               <th scope="col">Action</th>
                            </tr>
                         </thead>
                      </table>
                      <div class="card-body">
                         <ul class="list-group list-group-flush">
                            <li class="list-group-item d-flex align-items-center p-l-r-0">
                               <figure class="avatar avatar-sm m-r-15">
                                  <span class="avatar-title bg-blue text-white rounded-circle">E</span>
                               </figure>
                               <div>
                                  <h6 class="m-b-0">Emma Maton</h6>
                               </div>
                               <span class="badge badge-danger ml-auto">Delete</span>
                            </li>
                            <li class="list-group-item d-flex align-items-center p-l-r-0">
                               <figure class="avatar avatar-sm m-r-15">
                                  <span class="avatar-title bg-blue text-white rounded-circle">E</span>
                               </figure>
                               <div>
                                  <h6 class="m-b-0">Emma Maton</h6>
                               </div>
                               <span class="badge badge-danger ml-auto">Delete</span>
                            </li>
                            <li class="list-group-item d-flex align-items-center p-l-r-0">
                               <figure class="avatar avatar-sm m-r-15">
                                  <span class="avatar-title bg-blue text-white rounded-circle">E</span>
                               </figure>
                               <div>
                                  <h6 class="m-b-0">Emma Maton</h6>
                               </div>
                               <span class="badge badge-danger ml-auto">Delete</span>
                            </li>
                         </ul>
                      </div>
                   </div>
                </div>
                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Users </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               <th scope="col">Price</th>
                               <th scope="col">Action</th>
                            </tr>
                         </thead>
                      </table>
                   </div>
                </div>
                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Source </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <th scope="col">Name</th>
                               <th scope="col">Action</th>
                            </tr>
                         </thead>
                      </table>
                   </div>
                </div>
                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Email </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <!-- <th scope="col">Name</th>
                               <th scope="col">Action</th> -->
                            </tr>

                            <tr>
                               <td class='m-auto'>No Data</td>
                            </tr>
                         </thead>
                      </table>
                   </div>
                </div>

                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Discussion </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <!-- <th scope="col">Name</th>
                               <th scope="col">Action</th> -->
                            </tr>

                            <tr>
                               <td class='m-auto'>No Data</td>
                            </tr>
                         </thead>
                      </table>
                   </div>
                </div>

                <div class="col-md-6">
                   <div class="card">
                      <div class="card-header d-flex justify-content-between">
                         <h4>Notes </h4>
                         <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                         <i class="fa fa-plus" aria-hidden="true"></i>
                         </span>
                      </div>
                      <table class="table table-striped">
                         <thead>
                            <tr>
                               <!-- <th scope="col">Name</th>
                               <th scope="col">Action</th> -->
                            </tr>

                            <tr>
                               <td class='m-auto'>No Data</td>
                            </tr>
                         </thead>
                      </table>
                   </div>
                </div>
             </div>
          </div>




       </div>
    </div>
 </div>
</main>



<?php echo $__env->make('leads.modal.lead_user_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('leads.modal.lead_sources_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('leads.modal.lead_product_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php echo $__env->make('leads.modal.lead_discussion_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('leads.modal.lead_call_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('leads.modal.lead_task_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('leads.modal.convert_to_deal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('leads.modal.edit_lead_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<!-- end::dataTable -->



<script>
   $(document).ready(function() {

      $('#notes').keyup(function(){
         var leadid = $(this).attr('data-leadid');
         var notes = $('textarea#notes').val();
         // console.log(message);
         // return false;
         $.ajaxSetup({
                       headers: {
                           'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                       }
                   });

                   $.ajax({
                       type: "post",
                       data: {
                           "leadid": leadid,
                           "notes": notes,
                       },
                       url: "<?php echo e(asset('leads/update-notes')); ?>",
                       dataType: "html",
                       success: function(result) {
                         console.log(result);
                       },

                   });


      });

      $('select').select2({});



       $("#checkAll").click(function() {
           $('.userids:checkbox').not(this).prop('checked', this.checked);
           var length = $('.userids[type="checkbox"]:checked').length;
           if($(".multiple-delete-btn").hasClass('d-none'))
           {
               $(".multiple-delete-btn").removeClass("d-none");
               $(".multiple-delete-btn").html('<span class="pt-1">Delete ('+length+")</span>");
           }
           else
           {
               $(".multiple-delete-btn").addClass("d-none");
           }

       });

       //employee delte button code
       $(".emp-delete-btn").click(function(){
           var emp_id = $(this).attr("emp_id");


           swal({
               title: 'Are you sure?',
               text: 'Once deleted, you will not be recover!',
               icon: 'warning',
               dangerMode: true,
               buttons: ["Cancel", "Yes!"],
           }).then(function(value) {
               if (value) {
                   $.ajaxSetup({
                       headers: {
                           'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                       }
                   });

                   $.ajax({
                       type: "post",
                       data: {
                           "emp_id": emp_id
                       },
                       url: "<?php echo e(asset('delete-distributor')); ?>",
                       dataType: "html",
                       success: function(result) {
                           //console.log(result);
                           swal("success!", "Successfully deleted!", "success");
                           window.location.reload();
                       },
                       error:function(error)
                       {
                           swal("Failed !", "Failed !", "error");
                           window.location.reload();
                       }
                   });

               }
           });
       });



       $(".input_file_upload").on("change",function(){
           $(".import-company-form").submit();
       });



       // Delete Multiple
       $(".multiple-delete-btn").click(function() {
           var URL = "<?php echo e(asset('distributor-delete-multiple')); ?>";
           var user_ids = [];
           $('.userids:checkbox:checked').each(function() {
               user_ids.push($(this).val());
           });



           swal({
               title: 'Are you sure?',
               text: 'Once deleted, you will not be recover!',
               icon: 'warning',
               dangerMode: true,
               buttons: ["Cancel", "Yes!"],
           }).then(function(value) {
               if (value) {
                   $.ajaxSetup({
                       headers: {
                           'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                       }
                   });

                   $.ajax({
                       type: "post",
                       data: {
                           "ids": user_ids
                       },
                       url: URL,
                       dataType: "html",
                       success: function(result) {
                           console.log(result);
                           swal("success!", "Successfully deleted!", "success");
                           window.location.reload();
                       },
                       error:function(xhr,status,error)
                       {
                           swal("failed!", "Failed !", "error");
                          window.location.reload();
                       }
                   });

               }
           });

       });


   });

   $(".apply-button").click(function(){
       $(".filter-form-box").addClass("d-none");
   });


   //filter company code
   $(".filter-company-btn").click(function(){

       if($(".filter-form-box").hasClass("d-none"))
       {
           $(".filter-form-box").removeClass("d-none");
       }
       else
       {
           $(".filter-form-box").addClass("d-none");
       }
   });


   $(".change_pipeline").on("change",function(){

      var change_pipeline = $('.change_pipeline').val();

      alert(change_pipeline);;
   });


    //change status code
   $(".status-change").on("change",function(){

       var check_val = 0;
       if( $(this).is(":checked"))
       {
           check_val = 1;
       }

       var id = $(this).val();

       $.ajax({
           type: "post",
           headers: {
               'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
           },
           url: "<?php echo e(asset('change-user-status')); ?>",
           data:{
               user_id:id,
               status:check_val
           },
           dataType: "html",
           success: function(result)
           {   console.log(result);
               var allData = JSON.parse(result);

               if(allData.message=="success")
               {
                   $('.toast').removeClass('d-none');
                   $('.toast').toast('show');
               }
               else
               {
                   var div = `
                   <div class="toast-body bg-danger text-white">
                           <i class="fa fa-times-circle-o fa-lg"></i>&nbsp Status Update Failed

                   </div>
               `;

               $('.toast').removeClass('d-none');
                   $('.toast').toast('show');
                   $('.toast').html(div);
               }
           },
           error:function(xhr,status,error)
           {
               console.log(error);
               var div = `
                   <div class="toast-body bg-danger text-white">
                           <i class="fa fa-times-circle-o fa-lg"></i>&nbsp Status Update Failed

                   </div>
               `;

               $('.toast').removeClass('d-none');
                   $('.toast').toast('show');
                   $('.toast').html(div);

           }
       });

   });
   $(".main-section").hide();

   $(".ghm-hotel").click(function(){
  $(".main-section").show();
  $(".main-section1").hide();
});

</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/leadai/admin.leadai.co.in/resources/views/leads/lead-details.blade.php ENDPATH**/ ?>

Anon7 - 2021