@extends('layouts.table') @section('header') No Waktu
Pengaduan Pihak Teradu (Perusahaan) Kronologi status Nama/Brand Pimpinan @endsection @section('button') @endsection @section('column') { data: 'DT_RowIndex', name: 'DT_RowIndex', orderable: false, searchable: false, className: 'text-center w-12' }, { data: 'action', name: 'action', orderable: false, searchable: false, render: function(data, type, row) { const listMenu = [ { type: 'function', label: 'Periksa', icon: 'bi bi-file-text', functionName: 'periksa' }, { type: 'link', label: 'Cetak', icon: 'bi bi-printer', url: `${row.url_pratinjau}`, target: '_blank' }, { type: 'delete', label: 'Hapus', icon: 'bi bi-trash', url: `${row.url_hapus}` } ]; return actionMenu(row.id, listMenu); } }, { data: null, render: function(data, type, row) { return ` ${row.tanggal}
${row.waktu}`; } }, { data: null, render: function(data, type, row) { return ` ${row.p_nama}
${row.p_brand} `; } }, { data: 'pimpinan' }, { data: 'kronologi', name: 'kronologi', render: function(data, type, row) { if (!data) return '-'; const words = data.split(/\s+/); if (words.length <= 10) { return data; } const shortText = words.slice(0, 10).join(' ') + ' ...'; return `
${shortText}
`; } }, { data: 'status', name: 'status', className: 'text-center w-28', render: function(data, type, row) { if (!data) return '-'; const statusText = data.toUpperCase(); if (statusText === 'DRAFT') { return ` DRAFT `; } else { return ` ${data} `; } } }, @endsection @section('addonTable')

Periksa Pengaduan

Pihak Pengadu
Nama -
Jenis Kelamin -
NIK -
Klik NIK di atas untuk melihat/menyembunyikan
Email -
Whatsapp -
Pihak Teradu (Perusahaan) Nama Perusahaan - Brand - Pimpinan -

Pengungkapan

-

Kronologi Kejadian / Isi Pengaduan

-

@endsection @section('tableScripts') @endsection