<?php $__env->startSection('content'); ?>
<div class="container mt-4">
    <div class="d-flex justify-content-between align-items-center mb-3">
        <h2>Jadwal Bel</h2>
        <a href="<?php echo e(route('jadwal-bel.create')); ?>" class="btn btn-primary">+ Tambah Jadwal</a>
    </div>

    <?php if(session('success')): ?>
    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
    <?php endif; ?>

    <div class="card shadow mt-4">
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-striped table-hover table-bordered align-middle text-center">
                    <thead class="table-dark">
                        <tr>
                            <th>No</th>
                            <th>Hari</th>
                            <th>Jam</th>
                            <th>Keterangan</th>
                            <th>Jenis</th>
                            <th>File Suara</th>
                            <th>Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $jadwals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $jadwal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($loop->iteration); ?></td>
                            <td><?php echo e($jadwal->hari); ?></td>
                            <td><?php echo e($jadwal->jam); ?></td>
                            <td><?php echo e($jadwal->keterangan); ?></td>
                            <td><?php echo e($jadwal->jenis); ?></td>
                            <td><?php echo e($jadwal->file_suara); ?></td>
                            <td>
                                <a href="<?php echo e(route('jadwal-bel.edit', $jadwal->id)); ?>"
                                    class="btn btn-warning btn-sm">Edit</a>
                                <form action="<?php echo e(route('jadwal-bel.destroy', $jadwal->id)); ?>" method="POST"
                                    style="display:inline-block;" onsubmit="return confirm('Yakin ingin menghapus?')">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('DELETE'); ?>
                                    <button class="btn btn-danger btn-sm">Hapus</button>
                                </form>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/bel-sekolah/resources/views/jadwal_bel/index.blade.php ENDPATH**/ ?>