Penambahan filter stiker

This commit is contained in:
pand03
2026-02-11 09:09:32 +07:00
parent b55a689245
commit 762ce3b379
2 changed files with 6 additions and 2 deletions

View File

@@ -33,7 +33,8 @@ public function dataStiker(Request $request)
$query = DB::table('mergetransaksistikerdetail as a')
->leftJoin('stasiunkerja as b', 'a.unit_kerja', '=', 'b.kode')
->select('a.*', 'b.nama as jenis_langganan')
->leftJoin('jenis_langganan as c', 'a.jenis_langganan', '=', 'c.id')
->select('a.*', 'c.nama as jenis_langganan','b.nama as stasiunkerja')
->whereBetween('a.tgl_edited', [
$validated['tanggalAwal'] . ' 00:00:00',
$validated['tanggalAkhir'] . ' 23:59:59'

View File

@@ -104,12 +104,13 @@
<th>Nama</th>
<th>No. Telp</th>
<th>Alamat / Email</th>
<th>Jenis<br>Langganan</th>
<th>Jenis<br>Stiker</th>
<th width="15%">Periode</th>
<th>No. Polisi<br>Terdaftar</th>
<th>Jenis Trans</th>
<th>Harga</th>
<th>Tanggal</th>
{{-- <th>No. Polisi</th> --}}
<th>Petugas</th>
</tr>
</thead>
@@ -239,6 +240,8 @@
<td class="text-left">${row.nama ?? '-'}</td>
<td class="text-center">${row.telp ?? '-'}</td>
<td class="text-center">${row.alamat ?? '-'}</td>
<td class="text-center">${row.jenis_langganan ?? '-'}</td>
<td class="text-center">${row.stasiunkerja ?? '-'}</td>
<td>
${row.awal.split(' ')[0] ?? ''}
<small class="text-muted">s/d ${row.akhir.split(' ')[0] ?? ''}</small>