<?php $__env->startSection('title', $title); ?>

<?php $__env->startSection('vendor-style'); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Add rows table -->

<?php
$statuses = Config::get('params.statuses');
?>
<section id="add-row">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header"><h4 class="card-title"></h4>
                    <a href="<?php echo e(url("admin/$action/create")); ?>" class="btn btn-primary mb-2 float-right"><i class="feather icon-plus "></i></a>

                </div> 
                <div class="card-content">
                    <div class="card-body">
                        <?php echo $__env->make("messages", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <div class="table data-list-view dataTable no-footer dt-checkboxes-select">

                            <?php if(count($model)): ?>
                            <table id="listing" class="table data-list-view dataTable no-footer dt-checkboxes-select">
                                <thead>
                                    <tr>
                                        <th >ID</th>
                                        <th>Name</th>
                                        <th>Status</th>
                                        <th></th>
                                    </tr>

                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $model; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr class="odd">
                                        <td class="product-name"><?php echo e($row->id); ?></td>
                                        <td class=""><?php echo e($row->title); ?></td>
                                        <td><?php echo e($statuses[$row->status]); ?></td>
                                        <td>
                                            <div class="btn-group dropdown actions-dropodown">
                                                <button type="button" class="btn btn-white px-1 py-1 dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

                                                </button>                                               
                                                <div class="dropdown-menu dropdown-menu-right">
                                                    <!--
                                                    -->                                                    <a class="dropdown-item" href="<?php echo e(url('admin/'.$action.'/'.$row->id)); ?>"><i class="feather icon-eye"></i> View</a> 
                                                    <a class="dropdown-item" href="<?php echo e(url('admin/'.$action.'/edit/'.$row->id)); ?>"><i class="feather icon-mail"></i> Edit</a>
                                                    <div class="dropdown-divider"></div>
                                                    <a class="dropdown-item confirm-delete" href="javascript:void(0);" data-href="<?php echo e(url('admin/'.$action.'/delete/'.$row->id)); ?>" data-id="<?php echo e($row->id); ?>" ><i class="fa fa-trash-o"></i> Delete</a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>

                            </table>
                            <?php else: ?>

                            <div class="alert alert-primary" role="alert">
                                <i class="feather icon-info mr-1 align-middle"></i>
                                <span>No record found</span>
                            </div>

                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/ Add rows table -->
<!--/ Scroll - horizontal and vertical table -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('vendor_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('myscript'); ?>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin/layouts/contentLayoutMaster', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/seolocaj/public_html/homefloltd/resources/views/admin/packages/index.blade.php ENDPATH**/ ?>