

<?php $__env->startSection('main-content'); ?>
<h1 class="h3 mb-4 text-gray-800">Kelola Jadwal Sholat</h1>
<a href="<?php echo e(route('jadwal_sholat.create')); ?>" class="btn btn-primary mb-3">Tambah Jadwal Sholat</a>
<div class="card shadow mb-4">
	<div class="card-body">
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>Nama Sholat</th>
					<th>Waktu</th>
					<th>Aksi</th>
				</tr>
			</thead>
			<tbody>
				<?php $__currentLoopData = $jadwal; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<tr>
					<td><?php echo e($item->nama_sholat); ?></td>
					<td><?php echo e($item->waktu); ?></td>
					<td>
						<a href="<?php echo e(route('jadwal_sholat.edit', $item)); ?>" class="btn btn-sm btn-warning">Ubah</a>
						<form action="<?php echo e(route('jadwal_sholat.destroy', $item)); ?>" method="POST" style="display:inline;">
							<?php echo csrf_field(); ?>
							<?php echo method_field('DELETE'); ?>
							<button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('Yakin ingin menghapus?')">Hapus</button>
						</form>
					</td>
				</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
		</table>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH E:\PROJECT LARAVEL\DISPLAY-INFORMASI-MASJID\resources\views/jadwal_sholat/index.blade.php ENDPATH**/ ?>