
<?php $__env->startSection('title','Package - Manage'); ?>
<?php $__env->startSection('header_extra'); ?>
<!-- DataTables -->
<link href="<?php echo e(asset('assets/plugins/datatables/dataTables.bootstrap4.min.css')); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo e(asset('assets/plugins/datatables/buttons.bootstrap4.min.css')); ?>" rel="stylesheet" type="text/css" />
<!-- Responsive datatable examples -->
<link href="<?php echo e(asset('assets/plugins/datatables/responsive.bootstrap4.min.css')); ?>" rel="stylesheet" type="text/css" />

<link href="<?php echo e(asset('assets/plugins/sweet-alert2/sweetalert2.min.css')); ?>" rel="stylesheet" type="text/css">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
 <div class="row">
    <div class="col-12">
        <div class="card-box table-responsive">
            <h4 class="m-t-0 mb-1 header-title"><b>Manage</b></h4>
            
            <div class="row">
                <div class="col-12 mb-3">
                    <div class="text-right">
                        <a href="<?php echo e(route('admin.package.add_new')); ?>" class="btn btn-success"><i class="fa fa-plus"></i> Add new</a>
                    </div>
                </div>
            </div>
            
            <?php echo $__env->make('widget/notifications', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <table id="datatable-inline" class="table table-bordered">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Name</th>
                        <th>Days</th>
                        <th>Price</th>
                        <th>Status</th>
                        <th>Action</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
 </div>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('footer_scripts'); ?>
<script src="<?php echo e(asset('assets/plugins/datatables/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/datatables/dataTables.bootstrap4.min.js')); ?>"></script>

<script src="<?php echo e(asset('assets/plugins/datatables/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/datatables/responsive.bootstrap4.min.js')); ?>"></script>


<script src="<?php echo e(asset('assets/plugins/sweet-alert2/sweetalert2.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/sweet-alert2/jquery.sweet-alert2.init.js')); ?>"></script>

<script type="text/javascript">
    $(document).ready(function() {
       
       var table = $('#datatable-inline').DataTable({
            processing: true,
            serverSide: true,
            "pageLength": 25,            
            ajax: {
                url:'<?php echo route('admin.package.showAjaxList'); ?>',
            },
            columns: [                
                { data: 'id', name: 'id' }, 
                { data: 'name', name: 'name' },
                { data: 'days', name: 'days' },
                { data: 'grand', name: 'grand' }, 
                { data: 'status', name: 'status',orderable: false, searchable: false },
                { data: 'actions', name: 'actions', orderable: false, searchable: false }
            ],
            "order": [[ 0, "desc" ]]
        });
        $(function(){
            $(this).active_menu("subscription");
        });
    });
</script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/aerocodex/public_html/crm/project/resources/views/admin/package/list.blade.php ENDPATH**/ ?>