add export excel and pdf report director
This commit is contained in:
@@ -13,6 +13,19 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card w-100 h-100">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<h5 class="card-title mb-0">Laporan Pimpinan</h5>
|
||||
<div class="d-flex gap-2">
|
||||
<button class="btn btn-sm bg-black text-white d-flex align-items-center content-center gap-2" id="btn-export-excel" data-url="{{ route('api.report-director.excel') }}">
|
||||
<span>.xlsx</span>
|
||||
<iconify-icon icon="mingcute:file-export-line" width="20" height="20" class="d-flex align-items-center"></iconify-icon>
|
||||
</button>
|
||||
<button class="btn btn-sm bg-black text-white d-flex align-items-center content-center gap-2" id="btn-export-pdf" data-url="{{ route('api.report-director.pdf') }}">
|
||||
<span>.pdf</span>
|
||||
<iconify-icon icon="mingcute:file-export-line" width="20" height="20" class="d-flex align-items-center"></iconify-icon>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div id="table-bigdata-resumes"></div>
|
||||
</div>
|
||||
|
||||
69
resources/views/exports/report_director.blade.php
Normal file
69
resources/views/exports/report_director.blade.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Laporan Pimpinan</title>
|
||||
<style>
|
||||
body { font-size: 10px; } /* Reduce font size */
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { padding: 3px; font-size: 9px; border: 1px solid black;} /* Reduce padding */
|
||||
th { background-color: #f2f2f2; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Laporan Pimpinan</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Jumlah Potensi</th>
|
||||
<th>Total Potensi</th>
|
||||
<th>Jumlah Berkas Belum Terverifikasi</th>
|
||||
<th>Total Berkas Belum Terverifikasi</th>
|
||||
<th>Jumlah Berkas Terverifikasi</th>
|
||||
<th>Total Berkas Terverifikasi</th>
|
||||
<th>Jumlah Usaha</th>
|
||||
<th>Total Usaha</th>
|
||||
<th>Jumlah Non Usaha</th>
|
||||
<th>Total Non Usaha</th>
|
||||
<th>Jumlah Tata Ruang</th>
|
||||
<th>Total Tata Ruang</th>
|
||||
<th>Jumlah Menunggu Klik DPMPTSP</th>
|
||||
<th>Total Menunggu Klik DPMPTSP</th>
|
||||
<th>Jumlah Realisasi Terbit PBG</th>
|
||||
<th>Total Realisasi Terbit PBG</th>
|
||||
<th>Jumlah Proses Dinas Teknis</th>
|
||||
<th>Total Proses Dinas Teknis</th>
|
||||
<th>Tahun</th>
|
||||
<th>Created</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($data as $item)
|
||||
<tr>
|
||||
<td>{{ $item->potention_count }}</td>
|
||||
<td>{{ $item->potention_sum }}</td>
|
||||
<td>{{ $item->non_verified_count }}</td>
|
||||
<td>{{ $item->non_verified_sum }}</td>
|
||||
<td>{{ $item->verified_count }}</td>
|
||||
<td>{{ $item->verified_sum }}</td>
|
||||
<td>{{ $item->business_count }}</td>
|
||||
<td>{{ $item->business_sum }}</td>
|
||||
<td>{{ $item->non_business_count }}</td>
|
||||
<td>{{ $item->non_business_sum }}</td>
|
||||
<td>{{ $item->spatial_count }}</td>
|
||||
<td>{{ $item->spatial_sum }}</td>
|
||||
<td>{{ $item->waiting_click_dpmptsp_count }}</td>
|
||||
<td>{{ $item->waiting_click_dpmptsp_sum }}</td>
|
||||
<td>{{ $item->issuance_realization_pbg_count }}</td>
|
||||
<td>{{ $item->issuance_realization_pbg_sum }}</td>
|
||||
<td>{{ $item->process_in_technical_office_count }}</td>
|
||||
<td>{{ $item->process_in_technical_office_sum }}</td>
|
||||
<td>{{ $item->year }}</td>
|
||||
<td>{{ $item->created_at->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user