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

    <div class="content-page">
        <div class="content">

            <!-- Start Content-->
            <div class="container-fluid">

                <!-- start page title -->
                <div class="row">
                    <div class="col-12">
                        <div class="page-title-box">
                            <div class="page-title-right">
                                <ol class="breadcrumb m-0">
                                    <a href="<?php echo e(route('service.create')); ?>" class="btn btn-sm btn-dark waves-effect">
                                        <i class="dripicons-plus me-1"></i> Add Service
                                    </a>
                                </ol>
                            </div>
                            <h4 class="page-title">All Service</h4>
                        </div>
                    </div>
                </div>

                <!-- end page title -->
                <div class="row">
                   <div class="col-md-12">
                    <div class="card">
                        <div class="card-body">
                            <table class="table table-striped table-centered mb-0">
                                <thead>
                                    <tr>
                                        <th>Image</th>
                                        <th>Category</th>
                                        <th>Name</th>
                                        <th>Fees</th>
                                        <th>Description</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>

                                    <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <tr>
                                            <td class="table-user">
                                                <img id="blah" src="<?php echo e(URL::asset('backend/images/courses/' . $course->course_img)); ?>"
                                                alt="your image" onerror="this.onerror=null; this.src='<?php echo e(asset('backend/images/no_image.svg')); ?>'"/>
                                            </td>
                                            <td><?php echo e($course->category->course_name); ?></td>

                                            <td><?php echo e($course->course_name); ?></td>
                                            <td><?php echo e($course->course_fees); ?></td>
                                            <td><?php echo $course->course_description; ?></td>

                                            <td class="table-action d-flex">

                                                <a href="<?php echo e(route('service.edit',$course->id)); ?>" class="action-icon">
                                                     <i class="mdi mdi-pencil"></i></a>

                                                <form action="<?php echo e(route('service.destroy', $course->id)); ?>" method="POST">
                                                    <?php echo method_field('DELETE'); ?>
                                                    <?php echo csrf_field(); ?>
                                                    <button class="btn text-danger btn-sm"
                                                        onclick="return areyousure();  " title="Delete"  class="action-icon">
                                                         <i class="mdi mdi-delete"
                                                            aria-hidden="true"></i> </button>
                                                </form>
                                            </td>
                                        </tr>


                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </tbody>
                            </table>
                        </div>
                    </div>
                 </div>
              </div>
            </div>
        </div>

    </div>
    <!-- container -->
    </div>
    <!-- content -->

    </div>

    </div>
    <!-- END wrapper -->

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

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\econsultancy\resources\views/backend/courses/index.blade.php ENDPATH**/ ?>