This commit is contained in:
wayanrivan
2026-06-17 11:34:08 +07:00
2 changed files with 11 additions and 6 deletions

View File

@ -46,7 +46,7 @@
<th class="">Vehicle</th>
<th class="">Name</th>
<th class="">Manufacture Year</th>
<th class="">Type</th>
<th class="">Category/<br>Type</th>
<th class="">Service Start</th>
@if ($user_role != \App\Models\Users::ROLE_VENDOR)
<th class="">Device</th>
@ -823,9 +823,9 @@
searchable: true,
render: function (data, type, row, meta) {
return `
<img src="${State.storage_lara}${row.fvhc_img}" class="img-fluid thumb-img-table" /><br>
${row.nopol1} ${row.nopol2} ${row.nopol3}
`;
<img src="${State.storage_lara}${row.fvhc_img}" class="img-fluid thumb-img-table" /><br>
${row.nopol1} ${row.nopol2} ${row.nopol3}
`;
},
createdCell: function (td, cellData, rowData, row, col) {
$(td).attr('data-vid', rowData.vid);
@ -854,7 +854,11 @@
searchable: true,
render: function (data, type, row, meta) {
// return (`${row.brand_name}<br>-<br>${data}`);
return data;
const a = `
${row.cat_name}<br>
${row.cat_name != row.type_name ? row.type_name : ''}
`;
return a;
},
},
{