%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/sljcon/storage/framework/views/
Upload File :
Create Path :
Current File : /var/www/html/sljcon/storage/framework/views/0b0e5ee772bf7688472f85115e22cc4415bfc852.php

<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row">
            <div class="col-md-12 m_top_30">
                <div class="pull-right">
                    <?php if(count($sections) < 4): ?>
                        <a href="<?php echo e(route('admin.project.section.newOrEdit','new'.'?project_id='.$project_id)); ?>"
                           class="btn btn-success">
                            <i class="fa fa-plus"></i> New
                        </a>
                    <?php endif; ?>
                    <a href="<?php echo e(route('admin.projects')); ?>" class="btn btn-warning">
                        <i class="fa fa-arrow-left"></i> Projects
                    </a>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="table-responsive">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th scope="col">#</th>
                            <th scope="col">Section Title</th>
                            <th scope="col">Action</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td scope="row"><?php echo e(++$key); ?></td>
                                <td><?php echo e($section->title); ?></td>
                                <td>
                                    <div class="btn-group" role="group" aria-label="Basic example">
                                        <a href="<?php echo e(route('admin.project.section.newOrEdit',$section->id)); ?>"
                                           type="button" class="btn btn-warning"><i class="fa fa-edit"></i>
                                        </a>
                                        <a type="button" class="btn btn-success"
                                           href="<?php echo e(route('project.details',$project->slug)); ?>" target="_blank">
                                            <i class="fa fa-search"></i>
                                        </a>
                                        <a href="#" type="button" class="btn btn-danger"
                                           onclick="if (confirm('Are you sure you want to delete this section?')) $('#deleteSection_<?php echo e($section->id); ?>').submit(); return false;">
                                            <i class="fa fa-trash"></i>
                                        </a>
                                        <form action="<?php echo e(route('admin.project.section.delete')); ?>" method="post"
                                              id="deleteSection_<?php echo e($section->id); ?>">
                                            <?php echo e(csrf_field()); ?>

                                            <?php echo e(method_field('DELETE')); ?>

                                            <input type="hidden" name="id" value="<?php echo e($section->id); ?>">
                                        </form>
                                    </div>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<script>
    function submitDeleteForm(id) {
        $('deleteSection_' + id).submit();
    }
</script>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Zerion Mini Shell 1.0