feat: add data completeness indicator badge to province table
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
@section('content')
|
||||
<div class="container-xxl flex-grow-1 container-p-y">
|
||||
<div class="mb-6">
|
||||
<x-wilayah-dashboard />
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body border-bottom">
|
||||
<form method="GET" action="{{ route('provinsi.index') }}" class="d-flex justify-content-between align-items-center row gap-3 gap-md-0">
|
||||
@@ -35,6 +38,7 @@
|
||||
<th>No</th>
|
||||
<th>Kode Provinsi</th>
|
||||
<th>Nama Provinsi</th>
|
||||
<th class="text-center">Status Kelengkapan</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -62,6 +66,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
@if($prov->kabupaten_kota_count > 0)
|
||||
<span class="badge bg-label-success d-inline-flex align-items-center" style="border-radius: 20px; padding: 6px 10px;">
|
||||
<i class="ti tabler-check me-1" style="font-size: 16px;"></i> Aktif (Ada Kabupaten)
|
||||
</span>
|
||||
@else
|
||||
<span class="badge bg-label-warning d-inline-flex align-items-center" style="border-radius: 20px; padding: 6px 10px;">
|
||||
<i class="ti tabler-alert-circle me-1" style="font-size: 16px;"></i> Belum Ada Wilayah
|
||||
</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="d-flex align-items-center">
|
||||
<a href="javascript:;" class="btn btn-icon btn-text-secondary rounded-pill edit-record" data-id="{{ $prov->id }}"><i class="ti tabler-edit ti-md"></i></a>
|
||||
@@ -72,7 +89,7 @@
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="4" class="text-center py-4">Tidak ada data ditemukan.</td>
|
||||
<td colspan="5" class="text-center py-4">Tidak ada data ditemukan.</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user