Current File : /home/tradevaly/www/storage/framework/views/2d5bfe700aae77ce160776a0e914c2282640d932.php
 

<?php $__env->startPush('title'); ?> Package <?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'); ?> Dashboard <?php $__env->endSlot(); ?>
        <?php $__env->slot('title'); ?> Packages <?php $__env->endSlot(); ?>
    <?php echo $__env->renderComponent(); ?>
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <div class="row mb-2">
                        <div class="col-sm-4"></div>
                        <div class="col-sm-8">
                            <div class="text-sm-end">
                                <a href="<?php echo e(url('b2b/package/add')); ?>"
                                    class="btn btn-success btn-rounded waves-effect waves-light mb-2 me-2"><i
                                        class="mdi mdi-plus me-1"></i> Add New Package</a>
                            </div>
                        </div><!-- end col-->
                    </div>

                    <div class="table-responsive">
                        <table class="table" id="datatable-buttons">
                          <thead>
                            <tr>
                              <th class="text-center">#</th>
                              <th><?php echo e(translate("Image")); ?></th>
                              <th><?php echo e(translate("Name")); ?></th>
                              <th><?php echo e(translate("Price")); ?></th>
                              <th><?php echo e(translate("Features")); ?></th>
                              <th><?php echo e(translate("Details")); ?></th>
                              <th class="text-right"><?php echo e(translate("Actions")); ?></th>
                            </tr>
                          </thead>
                          <tbody>
                            <?php
                               $i = 0;
                            ?>
                            <?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                              <?php $i++; 
                              ?>
                              <td class="text-center"><?php echo e($i); ?></td>
                              <td><img style="height: 50px; width:50px; border-radius:50%;" src="<?php echo e(asset('storage/images/admin/package/'.$package['image'])); ?>" alt=""></td>
                              <td><?php echo e($package['name']); ?></td>
                              <td>৳ <?php echo e($package['price']); ?></td>
                              <td>
                                 <a  class="btn btn-info" title="Featured" style="color: #fff" href="<?php echo e(route('admin.package.featured', $package['id'])); ?>">
                                 Features
                                </a>
                              </td>
                              <td width="300px"><?php echo Str::limit($package['details'],150); ?></td>
                              <td class="td-actions text-right">
                                <?php if($package['status']==0): ?>
                                <a  class="btn btn-info updatePackageStatus" title="Turn off / On" id="package-<?php echo e($package->id); ?>" package_id="<?php echo e($package->id); ?>" style="color: #fff">
                                <i class="fa fa-toggle-off" status="Disable"></i>
                                </a>
                                <?php else: ?>
                                <a  class="btn btn-info updatePackageStatus" title="Turn off / On" id="package-<?php echo e($package->id); ?>" package_id="<?php echo e($package->id); ?>" style="color: #fff">
                                  <i class="fa fa-toggle-on" status="Active"></i>
                                </a>
                                <?php endif; ?>
                                <a href="<?php echo e(url('b2b/package/edit',$package->id)); ?>" name="package" class="btn btn-warning" title="Edit" style="color: #fff" title="Edit">
                                  <i class="fa fa-list-alt" aria-hidden="true"></i>
                                </a>
                                <a href="<?php echo e(url('b2b/package/delete',$package->id)); ?>" name="package" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff" title="Delete">
                                  <i class="fa fa-trash" aria-hidden="true"></i>
                                </a>
                              </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                          </tbody>
                        </table>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
    <!-- end row -->
    
    
<?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 () {
 
  var table = $('#datatable-buttons').DataTable({
    lengthChange: false,
    processing: true,
    dom: 'Bfrtip',
        
    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/package/index.blade.php ENDPATH**/ ?>