first
This commit is contained in:
40
src/resources/views/exports/report-print.blade.php
Normal file
40
src/resources/views/exports/report-print.blade.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ms">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Laporan MyAnsuran</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; margin: 28px; color: #17354d; }
|
||||
table { width: 100%; border-collapse: collapse; margin-top: 12px; margin-bottom: 20px; }
|
||||
th, td { border: 1px solid #d1dbe4; padding: 8px; text-align: left; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Laporan Ringkas MyAnsuran</h1>
|
||||
<table>
|
||||
<tr><th>Jumlah Permohonan Baharu</th><td>{{ $summary['new_applications'] }}</td></tr>
|
||||
<tr><th>Jumlah Bayaran Diterima</th><td>RM {{ number_format((float) $summary['payments_received'], 2) }}</td></tr>
|
||||
<tr><th>Jumlah Tunggakan</th><td>RM {{ number_format((float) $summary['outstanding_arrears'], 2) }}</td></tr>
|
||||
</table>
|
||||
|
||||
<h2>Permohonan Bulanan</h2>
|
||||
<table>
|
||||
<thead><tr><th>Bulan</th><th>Jumlah</th></tr></thead>
|
||||
<tbody>
|
||||
@foreach ($monthlyApplications as $item)
|
||||
<tr><td>{{ $item->month }}</td><td>{{ $item->total }}</td></tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2>Bayaran Bulanan</h2>
|
||||
<table>
|
||||
<thead><tr><th>Bulan</th><th>Jumlah</th></tr></thead>
|
||||
<tbody>
|
||||
@foreach ($monthlyPayments as $item)
|
||||
<tr><td>{{ $item->month }}</td><td>RM {{ number_format((float) $item->total, 2) }}</td></tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user