<!-- Main content -->
<section class="content">
	<!-- Info boxes -->
	<div class="row">
		<div class="col-md-12">
			<a href="<?php echo base_url('admin/jadwal/form_tambah'); ?>" class="btn btn-success"><span class="fa fa-plus"></span> Tambah</a>
			<?php if (count($jadwal)>0) { ?>
			<table class="table table-bordered table-striped" id="dtTable">
				<thead>
					<tr>
						<th>No.</th>
						<th>Nama Dokter</th>
						<th>Hari</th>
						<th>Jam Kerja</th>
						<th width="180">Opsi</th>
					</tr>
				</thead>
				<tbody>
			<?php
				foreach ($jadwal as $k => $v) {
			?>
				<tr>
					<td><?php echo ($k+1); ?></td>
					<td><?php echo $v->nama_dokter; ?></td>
					<td><?php echo getHari($v->hari); ?></td>
					<td><?php echo $v->jam_mulai.'-'.$v->jam_akhir; ?></td>
					<td>
						<a href="<?php echo base_url('admin/jadwal/form_edit/'.$v->id_jadwal); ?>" class="btn btn-info"><span class="fa fa-pencil"></span></a>
						<a href="<?php echo base_url('admin/jadwal/hapus/'.$v->id_jadwal); ?>" class="btn btn-danger"><span class="fa fa-trash-o"></span></a>
					</td>
				</tr>
			<?php
				}
			?>
				</tbody>
			</table>
			<?php
				} else {
					echo "<h4 style='text-align:center;'><i>Data Masih Kosong!</i></h4>";
				}
			?>
		</div>
	</div>
</section>
