66 lines
2.6 KiB
PHP
66 lines
2.6 KiB
PHP
<!-- partial -->
|
|
<div class="content-wrapper">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div>
|
|
<a class="btn btn-info" href="<?= base_url(); ?>partnerregion/addpartnerregion"><i class="mdi mdi-plus-circle-outline"></i>Tambah Region</a>
|
|
</div>
|
|
<br>
|
|
<?php if ($this->session->flashdata('demo') or $this->session->flashdata('hapus')) : ?>
|
|
<div class="alert alert-danger" role="alert">
|
|
<?php echo $this->session->flashdata('demo'); ?>
|
|
<?php echo $this->session->flashdata('hapus'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ($this->session->flashdata('ubah') or $this->session->flashdata('tambah')) : ?>
|
|
<div class="alert alert-success" role="alert">
|
|
<?php echo $this->session->flashdata('ubah'); ?>
|
|
<?php echo $this->session->flashdata('tambah'); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<h4 class="card-title">Partner Region</h4>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="table-responsive">
|
|
<table id="order-listing" class="table">
|
|
<thead>
|
|
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Nama Cabang</th>
|
|
<th>Region/Wilayah</th>
|
|
<th>Status</th>
|
|
<th>Tindakan</th>
|
|
</tr>
|
|
|
|
</thead>
|
|
<tbody>
|
|
<?php $i = 1;
|
|
foreach ($partnerregion as $prg) { ?>
|
|
<tr>
|
|
<td><?= $i ?></td>
|
|
<td><?= $prg['nama_cabang']; ?></td>
|
|
<td><?= $prg['partner_region']; ?></td>
|
|
<td>
|
|
<?php if ($prg['status_region'] == 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(); ?>partnerregion/editpartnerregion/<?= $prg['id']; ?>">
|
|
<button class="btn btn-outline-primary">Ubah</button></a>
|
|
<a href="<?= base_url(); ?>partnerregion/deletepartnerregion/<?= $prg['id']; ?>" onclick="return confirm ('Are you sure?')">
|
|
<button class="btn btn-outline-danger">Hapus</button></a></td>
|
|
</tr>
|
|
<?php $i++;
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- content-wrapper ends -->
|