simedkom/resources/views/dashboard/statistics/exports/pdf/user.blade.php
2025-07-16 10:48:32 +07:00

172 lines
4.1 KiB
PHP

<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>{{ $title }}</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 14px;
margin: 0;
padding: 0;
background-color: #f9f9f9;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('assets/defaults/simedkom-logo-circle.png');
background-size: 300px auto;
background-repeat: no-repeat;
background-position: center center;
opacity: 0.05;
z-index: -1;
}
header .icon {
text-align: center;
padding: 20px 0;
}
header .icon img {
width: 20%;
max-width: 200px;
height: auto;
}
.container {
width: 80%;
margin: 20px auto;
padding: 20px;
background-color: #ffffff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.header {
text-align: center;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 2px solid #e0e0e0;
}
.header .title {
font-size: 24px;
color: #3A59D1;
margin: 0;
}
.header h4 {
font-size: 18px;
color: #666;
margin-top: 8px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
table thead {
background-color: #3A59D1;
color: white;
}
table th, table td {
padding: 10px;
text-align: left;
border: 1px solid #ccc;
}
table tbody tr:nth-child(even) {
background-color: #f5f5f5;
}
.footer {
text-align: right;
font-size: 12px;
color: #888;
margin-top: 30px;
}
</style>
</head>
<body>
<header>
<div class="icon">
<img src="{{ public_path('assets/defaults/simedkom-logo-full.png') }}" alt="Logo Simedkom">
</div>
</header>
<div class="container">
<div class="header">
<h2 class="title">Statistik Pengguna</h2>
<h4>Data: {{$data_time}}</h4>
</div>
{{-- <table>
<div style="margin-bottom: 1px !important; margin-top: 2px !important;">
<h4>Status Penyelesaian Kerjasama</h4>
</div>
<thead>
<tr>
<th>Status</th>
<th>Jumlah</th>
</tr>
</thead>
<tbody>
<tr>
<td>Menunggu</td>
<td>{{$cooperationCompletionWaiting}}</td>
</tr>
<tr>
<td>Diterima</td>
<td>{{$cooperationCompletionAccepted}}</td>
</tr>
<tr>
<td>Ditolak</td>
<td>{{$cooperationCompletionRejected}}</td>
</tr>
</tbody>
</table> --}}
@php
$month = [
"Januari", "Februari", "Maret", "April", "Mei", "Juni",
"Juli", "Agustus", "September", "Oktober", "November", "Desember"
];
@endphp
<div style="margin-bottom: 1px !important; margin-top: 2px !important;">
<h4>Traffic Pendaftaran Akun</h4>
</div>
<table>
<thead>
<tr>
<th>Bulan</th>
<th>Jumlah</th>
</tr>
</thead>
<tbody>
@for ($i = 0; $i < count($month); $i++)
<tr>
<td>{{ $month[$i] }}</td>
<td>
{{$registerUserMonth[$i]}}
</td>
</tr>
@endfor
</tbody>
</table>
<div class="footer">
Dicetak pada {{ now()->format('d-m-Y H:i') }} - {{ $app->app_title }}
</div>
</div>
</body>
</html>