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/ec2fc90e540495dde8eaf76f9db634bac5eeb6b7.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>
            <!-- begin::page header -->
            <div class="page-header">
                <h3>Order</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"><?php echo e(__('message.list')); ?></li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->
            <div class="card">
                <?php 
                    use Carbon\Carbon;
                ?>
                <div class="card-header">
                    
                        <div class="row">
                            <div class="col-md-4 py-3">
                                <form action="<?php echo e(asset('order-list')); ?>" method="get">
                                    
                                    <div class="company-field-box">
                                        <div>
                                            <div class="input-group">
                                            <div class="input-group-prepend">
                                                <button type="button" class="btn border input-group-text filter-company-btn">
                                                    <i class="fa fa-filter fa-lg px-2"></i>
                                                </button>
                                            </div>
                                                
                                                <input type="search" value="<?php echo e(isset($_GET['search']) ? $_GET['search'] : null); ?>" name="search" class="form-control border-right-0 seach-input" placeholder="Order Id">
                                                <button class="btn border border-left-0" type="submit" style="margin-left:-5px;">
                                                    <i class="fa fa-search fa-lg"></i>
                                                </button>
                                                
                                            </div>
                                            
                                            
                                            <div class="filter-form-box d-none">
                                                <div class="diamond"></div>
                                                <form method="get" action="<?php echo e(asset('order-list')); ?>">
                                                    <div class="form-group">
                                                        <label><?php echo e(__('message.name')); ?> </label>
                                                        <input value="<?php echo e(isset($_GET['name']) ? $_GET['name'] : null); ?>" type="text" name="name" class="form-control" id="name">
                                                    </div>
                                                   
                                                    <div class="form-group">
                                                        <label> <?php echo e(__('message.email')); ?></label>
                                                        <input type="text" name="email" value="<?php echo e(isset($_GET['email']) ? $_GET['email'] : null); ?>" class="form-control" id="email">
                                                    </div>
                                                    
                                                    <div class="row">
                                                        <div class="form-group col-12">
                                                            <label><?php echo e(__('message.phone')); ?></label>
                                                            <input type="text" value="<?php echo e(isset($_GET['mobile']) ? $_GET['mobile'] : null); ?>" name="mobile" class="form-control" id="mobile">
                                                        </div>
                                                        
                                                       
                                                        
                                                    </div>
                                                    <div class="row">
                                                        <div class="form-group col-6">
                                                            <label><?php echo e(__('message.start')); ?> <?php echo e(__('message.date')); ?></label>
                                                            <input type="date" name="start_date" value="<?php echo e(isset($_GET['start_date']) ? $_GET['start_date'] : null); ?>"  class="form-control" id="start_date">
                                                        </div>
                                                        
                                                        <div class="form-group col-6">
                                                            <label><?php echo e(__('message.end')); ?> <?php echo e(__('message.date')); ?></label>
                                                            <input type="date" name="end_date" value="<?php echo e(isset($_GET['end_date']) ? $_GET['end_date'] : null); ?>" class="form-control" id="end_date">
                                                        </div>
                                                        
                                                    </div>
                                                    <div class="row">
                                                        <div class="form-group col-12">
                                                           <button type="submit" class="btn btn-success-lux mr-5 px-4 apply-button"><?php echo e(__('message.apply')); ?></button>
                                                        
                                                            <a href="<?php echo e(asset('order-list')); ?>" class="btn btn-primary-lux px-5 clear-button text-white"><?php echo e(__('message.clear')); ?></a>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
                                    </div>
                                   
                                </form>
                                        
                            </div>
                            
                            <div class="col-md-8 d-flex justify-content-end py-3">
                                <div>
                                    
                                   
                                    
                                </div>
                            </div>
                            
                            
                        </div>
                       

                    
                </div>

                <div class="card-body">

                    <?php if(isset($orders)): ?>

                        <div class="table-responsive">
                            <table class="table table-bordered" >
                                <thead style="background-color:#E9EEF1">
                                    <tr>
                                        
                                        <th><?php echo e(__('message.sno')); ?></th>
                                        <th>Order Id</th>
                                        <th>QR/UTR</th>
                                        <th>Start Date</th>
                                        <th>End Date</th>
                                        <th>Plan</th>
                                        <th>Amount</th>
                                        <th><?php echo e(__('message.name')); ?></th>
                                        
                                        <th><?php echo e(__('message.email')); ?></th>
                                        <th><?php echo e(__('message.phone')); ?></th>
                                        <th>Invoice</th>
                                        <th>Get Invoice</th>
                                        <th><?php echo e(__('message.created')); ?></th>
                                        <th><?php echo e(__('message.status')); ?></th>
                                        <?php if(Auth::user()->can('edit-order') || Auth::user()->type=="superadmin" ): ?>
                                        <th><?php echo e(__('message.action')); ?></th>
                                        <?php endif; ?>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php if(!empty($orders)): ?>
                                        <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                          
                                        
                                           <td><?php echo e(++$key); ?></td>
                                           <td><?php echo e($value->slug); ?></td>
                                           <td>
                                                <span>UTR-<?php echo e($value->utr_number); ?></span> 
                                                <img src="<?php echo e($value->image); ?>" width="100" height="60">
                                            </td>
                                           <td>
                                                <?php 
                                                    
                                                    $days = isset($value->plan_details) ? $value->plan_details->days : 0;
                                                    $date = Carbon::parse($value->plan_date);
                                                    $endDate = $date->addDays($days);
                                                ?>
                                                <span class="btn btn-sm btn-success"><?php echo e(date('d-m-Y', strtotime($value->plan_date))); ?></span>
                                                
                                            </td>
                                            <td>
                                                <span class="btn btn-sm btn-danger"><?php echo e(date('d-m-Y', strtotime($endDate))); ?></span>
                                            </td>
                                           <td><?php echo e(isset($value->plan_details) ? $value->plan_details->plan_name : ''); ?></td>
                                           <td><?php echo e($value->amount); ?></td>
                                           <td class="text-capitalize"><?php echo e(isset($value->user_details) ? $value->user_details->name : ''); ?></td>
                                           <td><?php echo e(isset($value->user_details) ? $value->user_details->email : ''); ?></td>
                                           <td><?php echo e(isset($value->user_details) ? $value->user_details->mobile : ''); ?></td>
                                           
                                            <td>
                                                    <div class="d-flex justify-content-center">                                                
                                                        <label class="switch">
                                                            <input type="checkbox" name="theme_mode" value="<?php echo e($value->id); ?>" class="custom-control-input status-change"  <?php echo e($value->invoice_status == '1' ? 'checked' : ''); ?>>
                                                                
                                                            <span class="slider round"></span>
                                                        </label>
                                                        
                                                    </div>
                                            </td>  
                                            <td>
                                                <?php if($value->invoice_status): ?>
                                                <a href="<?php echo e(asset('get-invoice/'.$value->id)); ?>" class="btn btn-sm btn-outline-success">Get Invoice</a>
                                                <?php else: ?>
                                                    <button type="button" class="btn btn-outline-danger btn-sm">Not Allowed</button>
                                                <?php endif; ?>
                                            </td>                                   
                                           
                                           <td>
                                                <span class="btn btn-success btn-sm">
                                                    <?php echo e(date('d-m-Y', strtotime($value->created_at))); ?>

                                                </span>
                                            </td>
                                           
                                           <td>
                                                    <?php echo e($value->status); ?>

                                            </td>
                                           <td>
                                                <div class="btn-group">   

                                                    <?php if(Auth::user()->can('edit-order') || Auth::user()->type=="superadmin" ): ?>
                                                       
                                                        <buttton class="btn btn-sm btn-danger text-white order-delete-btn"
                                                            data-toggle="tooltip" data-original-title="Delete Order"
                                                            emp_id="<?php echo e($value->id); ?>">
                                                            <i class="fa fa-trash fa-lg"></i>
                                                        </button>                                                            

                                                    <?php endif; ?>
                                                </div>
                                            </td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php else: ?>
                                        <h1>No Record Found!!</h1>
                                    <?php endif; ?>
                                </tbody>
                            </table>
                        </div>

                        <div class="blade-pagination py-3 d-flex justify-content-center">
                            <?php echo e($orders->links()); ?>

                        </div>
                        
                    <?php endif; ?>
                </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;
                
                
            });

            //employee delte button code
            $(".order-delete-btn").click(function(){
                var 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: {
                                "id": id
                            },
                            url: "<?php echo e(asset('delete-order')); ?>",
                            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();
                            }
                        });
                       
                    }
                });
            });

            



            // Delete Multiple
            $(".multiple-delete-btn").click(function() {
                var URL = "<?php echo e(asset('delete-multiple-order')); ?>";
                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 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-invoice-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);

                }
            });
            
        });
    </script>
<?php $__env->stopPush(); ?>

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

Anon7 - 2021