<?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="#" class="btn btn-sm btn-dark waves-effect">
                                        <i class="mdi mdi-plus me-1"></i> All Course Enquerys
                                    </a>
                                </ol>
                            </div>
                            <h4 class="page-title">All Course Enquerys</h4>
                        </div>
                    </div>
                </div>

                <!-- end page title -->

                <div class="row">
                    <div class="card">
                        <div class="card-body">
                            <table class="table table-striped table-centered mb-0">
                                <thead>
                                    <tr>
                                        <th>Course Name</th>
                                        <th>Name</th>
                                        <th>Number</th>
                                        <th>Email</th>
                                        <th>Subject</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>

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

                                        <tr>

                                            <td><?php echo e($course_enquery->course_name); ?></td>
                                            <td><?php echo e($course_enquery->name); ?></td>
                                            <td><?php echo e($course_enquery->phone); ?></td>
                                            <td><?php echo e($course_enquery->email); ?></td>
                                            <td><?php echo e($course_enquery->subject); ?></td>

                                            <td class="table-action">

                                                <form action="<?php echo e(route('course_enquiry.destroy', $course_enquery->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>
            <!-- container -->

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

    </div>

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

    <script>
        $(function() {
            $('.toggle-classs').click(function() {
                var status = $(this).prop('checked') == true ? 1 : 0;
                var id = $(this).attr('value');
                $.ajax({
                    type: "GET",
                    dataType: "json",
                    url: "<?php echo e(route('blogstatus')); ?>",
                    data: {'status': status, 'id': id},
                    success: function(data){
                        {

                            $.NotificationApp.send("Success" ,data.success,"top-right", "rgba(0,0,0,0.2)", "success")
                        }
                    }
                });
            })
        })
      </script>

<?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\corbital_laravel\resources\views/backend/course_enquiry/index.blade.php ENDPATH**/ ?>