<?php $__env->startSection('title', 'Manage ' . $panel); ?>
<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('backend.includes.breadcrumb', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <!-- Main content -->
    <section class="content">

        <!-- Default box -->
        <div class="card">
            <div class="card-header">
                <h3 class="card-title"><?php echo e($panel); ?> <?php echo e($action); ?> <a href="<?php echo e(route($base_route . '.create')); ?>" class="btn btn-info">  <i class="fa fa-plus"></i> Create <?php echo e($panel); ?></a></h3>
            </div>
            <div class="card-body">
                <?php echo $__env->make('backend.includes.flash_messge', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="table table-responsive">
                    <table class="table table-bordered" id="table">
                        <thead>
                        <th>S.N</th>
                        <th>Title</th>
                        <th>Image</th>
                        <th>Status</th>
                        <th>Actions</th>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $data['rows']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($index+1); ?></td>
                            <td><?php echo e($row->title); ?></td>
                            <td><img src="<?php echo e(asset($image_path . '/' . $row->image)); ?>" width="90" alt="<?php echo e($row->title); ?>"> </td>
                            <td>
                                <?php if($row->status == 1): ?>
                                    <p class="text text-success">Active</p>
                                    <?php else: ?>
                                    <p class="text text-danger">De active</p>
                                    <?php endif; ?>
                            </td>
                            <td>
                                <a href="<?php echo e(route($base_route . '.edit', $row->id)); ?>" class="btn btn-info"><i class="fa fa-pen"></i></a>
                                <form action="<?php echo e(route($base_route . '.destroy', $row->id)); ?>" method="post" onclick="return confirm('Are You Sure Do You Want To Delete This Data')" style="display: inline-block;">
                                <?php echo csrf_field(); ?>
                                <?php echo method_field('delete'); ?>
                                    <button class="btn btn-danger"><i class="fa fa-trash"></i></button>
                                </form>
                                <a href="<?php echo e(route($base_route . '.show', $row->id)); ?>" class="btn btn-primary"><i class="fa fa-eye"></i></a>
                            </td>

                        </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /.card-body -->
            <div class="card-footer">

            </div>
            <!-- /.card-footer-->
        </div>
        <!-- /.card -->

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

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