102 lines
5.6 KiB
PHP
102 lines
5.6 KiB
PHP
<div class="content-wrapper">
|
|
<div class="row grid-margin">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<?php if ($this->session->flashdata('ubah')) : ?>
|
|
<div class="alert alert-success" role="alert">
|
|
<?php echo $this->session->flashdata('ubah'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ($this->session->flashdata('demo')) : ?>
|
|
<div class="alert alert-danger" role="alert">
|
|
<?php echo $this->session->flashdata('demo'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ($this->session->flashdata('hapus')) : ?>
|
|
<div class="alert alert-danger" role="alert">
|
|
<?php echo $this->session->flashdata('hapus'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<h6 class="card-title">Layanan</h6>
|
|
<div>
|
|
<a class="btn btn-info" href="<?= base_url(); ?>services/addservice"><i class="mdi mdi-plus-circle-outline"></i>Tambah Layanan</a>
|
|
</div>
|
|
<br>
|
|
<div class="table-responsive">
|
|
<table id="order-listing" class="table mt-3 border-top">
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Layanan</th>
|
|
<th>Icon</th>
|
|
<th>Harga</th>
|
|
<th>Diskon</th>
|
|
<th>Unit</th>
|
|
<th>Komisi</th>
|
|
<th>Harga Minim</th>
|
|
<th>Driver Radius</th>
|
|
<th>Maximal Jarak</th>
|
|
<th>Saldo Minimal</th>
|
|
<th>Job</th>
|
|
<th>Status</th>
|
|
<th>Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $i = 1;
|
|
foreach ($service as $s) { ?>
|
|
<tr>
|
|
<td><?= $i ?></td>
|
|
<td><?= $s['fitur']; ?></td>
|
|
<td>
|
|
<div class="badge badge-primary">
|
|
<img src="<?= base_url('images/fitur/') . $s['icon']; ?>">
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<?= $duit ?>
|
|
<?= number_format($s['biaya'], 0, ".", ".") ?>
|
|
</td>
|
|
<td><?= $s['nilai']; ?>%</td>
|
|
<td>/<?= $s['keterangan_biaya']; ?></td>
|
|
<td><?= $s['komisi']; ?> %</td>
|
|
<td><?= $duit ?>
|
|
<?= number_format($s['biaya_minimum'], 0, ".", ".") ?></td>
|
|
<td><?= $s['jarak_minimum']; ?>km</td>
|
|
<td><?= $s['maks_distance']; ?>km</td>
|
|
<td><?= $duit ?>
|
|
<?= number_format($s['wallet_minimum'], 0, ".", ".") ?></td>
|
|
<?php foreach ($driverjob as $dj) {
|
|
if ($s['driver_job'] == $dj['id']) { ?>
|
|
<td><?= $dj['driver_job']; ?></td>
|
|
<?php }
|
|
} ?>
|
|
|
|
|
|
<td>
|
|
<?php if ($s['active'] == 1) { ?>
|
|
<label class="badge badge-success">Aktif</label>
|
|
<?php } else { ?>
|
|
<label class="badge badge-danger">Non Aktif</label>
|
|
<?php } ?>
|
|
</td>
|
|
<td>
|
|
<a href="<?= base_url(); ?>services/ubah/<?= $s['id_fitur']; ?>">
|
|
<button class="btn btn-outline-primary">Ubah</button>
|
|
</a>
|
|
<a href="<?= base_url(); ?>services/hapusservice/<?= $s['id_fitur']; ?>" onclick="return confirm ('are you sure?')">
|
|
<button class="btn btn-outline-danger">Hapus</button></a>
|
|
</td>
|
|
<?php $i++;
|
|
} ?>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|