<section class="content-header">
	<div class="container-fluid">
		<div id="flash" data-flash="<?= $this->session->flashdata('success'); ?>"></div>
		<div class="row ">
			<div class="col-sm-6">
				<h1>DATA PELANGAN</h1>

			</div>
		</div>
	</div>
</section>
<section class="content">

	<div class="card card-outline card-secondary mt-3">
		<div class="card-header ">
			<h3 class="card-title">Daftar Harga Sparepart
			</h3>

			<div class="card-tools">
				<button type="button" class="btn btn-tool" data-card-widget="collapse" data-toggle="tooltip" title="Collapse">
					<i class="fas fa-minus"></i></button>
				<button type="button" class="btn btn-tool" data-card-widget="remove" data-toggle="tooltip" title="Remove">
					<i class="fas fa-times"></i></button>
			</div>
		</div>
		<div class="card-body">
			<table id="example1" class="table  table-hover table-sm ">
				<thead>
					<tr class="text-center">
						<th class="text-left">Nama Pelangan</th>
						<th class="text-left">No hp</th>
						<th>Merek</th>
						<th>Tipe</th>
						<th>Plat Mobil</th>
						<th>warna</th>
						<th>service</th>




					</tr>
				</thead>
				<tbody>
					<?php
					if ($pel->num_rows() > 0) {
						foreach ($pel->result() as $am => $data) {
					?>
							<tr class="text-center">
								<td class="text-left text-uppercase"><?= $data->pel_nama ?></td>
								<td class="text-left text-uppercase"><?= $data->pel_hp ?></td>
								<td class="text-left text-uppercase"><?= $data->car_merek ?></td>
								<td class="text-left text-uppercase"><?= $data->car_model ?></td>
								<td class="text-left text-uppercase"><?= $data->car_plat ?></td>
								<td class="text-left text-uppercase"><?= $data->car_color ?></td>
								<td class="text-left text-uppercase"><?= $data->kunjung ?></td>



							</tr>
					<?php
						}
					} else {
						echo '<tr>
                                <td colspan="8" class="text-center"> Tidak Ada Data Sparepart Yang Tersedia </td>
                                </tr>';
					}
					?>
				</tbody>
			</table>
		</div>
	</div>
</section>