<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />


<?php

use App\Http\Controllers\PermissionMethodController;
use App\Http\Controllers\GeneralController;
use App\Http\Controllers\MainAcontroller;
?>
<?php $__env->startSection('content'); ?>

<div class="card">
    <div class="card-body" id="photo">

        <?php if($message = Session::get('success')): ?>
        <div class="alert border-0 bg-light-success alert-dismissible fade show py-2">
            <div class="d-flex align-items-center">
                <div class="fs-3 text-success"><i class="bi bi-check-circle-fill"></i>
                </div>
                <div class="ms-3">
                    <div class="text-success"><?php echo e($message); ?></div>
                </div>
            </div>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        </div>
        <?php endif; ?>

        <?php if($message = Session::get('fail')): ?>
        <div class="alert border-0 bg-light-danger alert-dismissible fade show py-2">
            <div class="d-flex align-items-center">
                <div class="fs-3 text-danger"><i class="bi bi-x-circle-fill"></i>
                </div>
                <div class="ms-3">
                    <div class="text-danger">
                        <?php echo e($message); ?>

                    </div>
                </div>
            </div>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        </div>
        <?php endif; ?>

        <h6 class="mb-0 text-uppercase text-center">
            <label id="saleOneClient" class="text-danger"> </label>
        </h6>

        <p class="text-center" id="saleOneAreaLoc"> </p>

        <div id="saleSearchForm" class="border p-4 rounded">

            <h5>User Report</h5>
            <div class="table-responsive mt-5">
                <!-- data-page-length='10' id="" class="table table-striped table-bordered" -->
                <table id="example" class="display" style="width:100%">
                    <thead class="table-secondary">
                        <tr>
                            <!-- <th>#</th> -->
                            <th>Sl No</th>
                            <th>User</th>
                            <th>Client</th>
                            <th>Package</th>
                            <th>From Date</th>
                            <th>To Date</th>
                            <th>Billing Type</th>

                            <!-- <th>Action</th> -->
                        </tr>
                    </thead>

                    <tbody>
                        <?php $num = 1; ?>

                        <?php $__currentLoopData = $report; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $per): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <!-- <td> <input type="checkbox" name="permissions[]" id="permissionCheck"> </td> -->
                            <td> <?php echo e($num); ?> </td>
                            <td>
                                <?php echo e($per->Name); ?>

                                <br>

                                <?php if($per->IsLive == 1): ?>
                                <span class="badge bg-success">Live Pack</span>
                                <?php elseif($per->IsLive == 0): ?>
                                <span class="badge bg-danger">Trial Pack</span>
                                <?php endif; ?>

                                <?php if($per->is_demo == 1): ?>
                                <span class="badge bg-danger">Demo Account</span>
                                <?php elseif($per->is_demo == 0): ?>
                                <span class="badge bg-success">Main Account</span>
                                <?php endif; ?>


                                <?php if($per->is_MultiUser == 'S'): ?>
                                <span class="badge bg-danger"> Single User </span>
                                <?php elseif($per->is_MultiUser == 'M'): ?>
                                <span class="badge bg-info"> Multi User </span>
                                <?php elseif($per->is_MultiUser == 'SM'): ?>
                                <span class="badge bg-success"> Single and Multi User </span>
                                <?php endif; ?>

                            </td>
                            <td> <?php echo e($per->ClientName); ?> | <?php echo e($per->Area); ?> | <?php echo e($per->Location); ?> </td>
                            <td> <?php echo e($per->Pack_Name); ?> </td>
                            <td> <?php echo MainAcontroller::convertDate($per->per_from) ?> </td>
                            <td> <?php echo MainAcontroller::convertDate($per->per_to) ?> </td>
                            <td> <?php if($per->billing_type == 'M'): ?> Monthly <?php else: ?> Yearly <?php endif; ?> </td>

                        </tr>
                        <?php $num++; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


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



        </div>


    </div>
</div>




<?php $__env->stopSection(); ?>
<?php echo $__env->make('Admin.Layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/digitronicsindia/public_html/aswas/resources/views/Admin/userReport.blade.php ENDPATH**/ ?>