Add Debiture column to Registrasi Final table
- Menambahkan kolom "Debiture" pada tabel di halaman Registrasi Final. - Memperluas data query untuk memuat data "permohonan.debiture" pada controller. - Mengimplementasikan render data "Debiture" untuk ditampilkan.
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
|
||||
// Get the data for the current page
|
||||
//$data = $query->with(['user', 'debiture', 'branch', 'tujuanPenilaian'])->get();
|
||||
$data = $query->with(['permohonan'])->get();
|
||||
$data = $query->with(['permohonan.debiture'])->get();
|
||||
// dd($data);
|
||||
$i = 0;
|
||||
foreach ($data as $obj) {
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
<span class="sort"> <span class="sort-label"> Nomor Registrasi </span>
|
||||
<span class="sort-icon"> </span> </span>
|
||||
</th>
|
||||
<th class="min-w-[150px]" data-datatable-column="debiture">
|
||||
<span class="sort"> <span class="sort-label"> Debiture </span>
|
||||
<span class="sort-icon"> </span> </span>
|
||||
</th>
|
||||
<th class="min-w-[150px]" data-datatable-column="code">
|
||||
<span class="sort"> <span class="sort-label"> Kode Penawaran </span>
|
||||
<span class="sort-icon"> </span> </span>
|
||||
@@ -106,6 +110,12 @@
|
||||
'nomor_registrasi': {
|
||||
title: 'Nomor Registrasi',
|
||||
},
|
||||
'debiture': {
|
||||
title: 'Debiture',
|
||||
render: (item, data) => {
|
||||
return `${data.permohonan.debiture.name}`;
|
||||
}
|
||||
},
|
||||
code: {
|
||||
title: 'Kode Penawaran',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user