






<?php $__env->startSection('content'); ?>
    <?php if(session('success')): ?>
        <div id="successAlert" class="alert alert-success fixed-bottom text-white bg-success shadow-lg rounded p-3"
            style="width: 300px; bottom: 10px; right: 10px; position: fixed; z-index: 1050;">
            <?php echo e(session('success'), false); ?>

        </div>
    <?php endif; ?>

    <?php if(session('error')): ?>
        <div id="errorAlert" class="alert alert-danger fixed-bottom text-white bg-danger shadow-lg rounded p-3"
            style="width: 300px; bottom: 10px; right: 10px; position: fixed; z-index: 1050;">
            <?php echo e(session('error'), false); ?>

        </div>
    <?php endif; ?>


    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between align-items-center bg-blue">
                        <h1 class="card-title" style="color:rgb(30, 255, 0);font-size:30px;">Our Services</h1>
                        <a href="<?php echo e(route('school.create'), false); ?>" class="btn btn-success  ml-auto">
                            <i class="fas fa-plus"></i> Add New
                        </a>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th>Sl</th>
                                        <th>Image</th>
                                        <th>Text</th>
                                        <th>Paragraph</th>
                                        <th>short_title</th>
                                        <th>Actions</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $rurals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $rural): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($index + 1, false); ?></td>
                                            <td><?php echo e($rural->text, false); ?></td>
                                            <td><?php echo e($rural->para, false); ?></td>
                                            <td><?php echo e($rural->short_title, false); ?></td>
                                            <td><img src="<?php echo e(asset('img/' . $rural->image), false); ?>" width="100"></td>


                                            <td>
                                                <a href="<?php echo e(route('school.edit', $rural->id), false); ?>"
                                                    class="btn btn-warning">Edit</a>
                                                <form action="<?php echo e(route('school.destroy', $rural->id), false); ?>" method="POST"
                                                    class="d-inline">
                                                    <?php echo csrf_field(); ?>
                                                    <?php echo method_field('DELETE'); ?>
                                                    <button type="submit" class="btn btn-danger">Delete</button>
                                                </form>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\laragon\laragon\www\BrandedAdmin\mhmahedi\resources\views/admin/school/index.blade.php ENDPATH**/ ?>