Current File : //home/tradevaly/public_html/storage/framework/views/fb1e2a1f27ddcf460df3ee72831c65c8a998389a.php
<?php $__env->startPush('title'); ?> Users List <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
    <!-- DataTables -->
    <link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

    <?php $__env->startComponent('components.breadcrumb'); ?>
        <?php $__env->slot('li_1'); ?> Dashboards <?php $__env->endSlot(); ?>
        <?php $__env->slot('title'); ?> Users List <?php $__env->endSlot(); ?>
    <?php echo $__env->renderComponent(); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    User Filter
                </div>
                <div class="card-body">
                    <form action="https://www.tradevaly.com.bd/b2b/users/index" method="get">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <select class="form-select" name="user_type">
                                        <option value="">Select User Type</option>
                                        <option value="seller">Seller</option>
                                        <option value="buyer">Buyer</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <select class="form-select" name="country_id">
                                        <option value="">Select A Country</option>
                                        <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($country->id); ?>"><?php echo e($country->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <select class="form-select" name="category_id">
                                        <option value="">Select A Category</option>
                                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <button type="submit" class="btn btn-info w-100">Search</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="col-12">
        <div class="card">
        <div class="card-header py-4" style="text-align:right"><a class="btn btn-primary"  href="<?php echo e(route("admin.addUser")); ?>">Add User</a></div>
        <div class="card-body">
          <div class="table-responsive">
            <table class="table dt-table">
              <thead>
                <tr>
                  <th class="text-center">#</th>
                  <th><?php echo e(translate("Name")); ?></th>
                  <th><?php echo e(translate("Company")); ?></th>
                  <th><?php echo e(translate("Phone")); ?></th>
                  <th><?php echo e(translate("Email")); ?></th>
                   <th><?php echo e(translate("Package")); ?></th>
                   <th>Verified</th>
                   <th><?php echo e(translate("start")); ?></th>
                   <th><?php echo e(translate("end")); ?></th>
                  <th><?php echo e(translate("Type")); ?></th>
                  <th><?php echo e(translate("View")); ?></th>
                </tr>
              </thead>
              <tbody>
                  
              </tbody>
            </table>
          </div>
                    
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
      <!-- Required datatable js -->
    <script src="<?php echo e(asset('/assets/libs/datatables/datatables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/assets/libs/jszip/jszip.min.js')); ?>"></script>
    <script src="<?php echo e(asset('/assets/libs/pdfmake/pdfmake.min.js')); ?>"></script>
    <!-- Datatable init js -->
      <script type="text/javascript">
  $(function () {
    $(document).ready(function () {
        let params = "<?php echo e(Request::get('user_type')); ?>"
        console.log(params);
        let url =  "<?php echo e(route('admin.users.index')); ?>";
        if(params != ''){
            url += "?user_type="+params;
        }
  var table = $('.dt-table').DataTable({
    lengthChange: false,
    processing: true,
    dom: 'Bfrtip',
        serverSide: true,
        ajax: url,
        columns: [
            {data: 'DT_RowIndex', name: 'DT_RowIndex'},
            {data: 'name', name: 'name'},
            {data: 'company', name: 'company'},
            {data: 'phone', name: 'phone'},
            {data: 'email', name: 'email'},
            {data: 'pack', name: 'pack'},
            {data: 'verify', name: 'verify'},
            {data: 'start', name: 'start'},
            {data: 'end', name: 'end'},
            {data: 'type', name: 'type'},
            {data: 'action', name: 'action'},
        ],
            buttons: ['copy', 'excel', 'pdf', 'colvis']
          });
          table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
          $(".dataTables_length select").addClass('form-select form-select-sm');
        });
});


</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/users/index.blade.php ENDPATH**/ ?>