125 lines
3.6 KiB
PHP
125 lines
3.6 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Clients Report</title>
|
|
<style>
|
|
body {
|
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
color: #333;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
padding: 20px;
|
|
}
|
|
.header {
|
|
margin-bottom: 30px;
|
|
border-bottom: 2px solid #5c4df0;
|
|
padding-bottom: 10px;
|
|
}
|
|
.header h2 {
|
|
margin: 0;
|
|
color: #5c4df0;
|
|
font-size: 22px;
|
|
}
|
|
.header p {
|
|
margin: 5px 0 0;
|
|
color: #666;
|
|
font-size: 11px;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 10px;
|
|
}
|
|
th, td {
|
|
padding: 8px 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
th {
|
|
background-color: #f8f9fa;
|
|
color: #333;
|
|
font-weight: bold;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
}
|
|
tbody tr:nth-child(even) {
|
|
background-color: #fdfdfd;
|
|
}
|
|
.badge {
|
|
padding: 3px 6px;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
border-radius: 4px;
|
|
text-transform: uppercase;
|
|
}
|
|
.badge-active { background-color: #d1e7dd; color: #0f5132; }
|
|
.badge-other { background-color: #fff3cd; color: #664d03; }
|
|
.footer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
text-align: center;
|
|
font-size: 10px;
|
|
color: #aaa;
|
|
border-top: 1px solid #eee;
|
|
padding-top: 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Report Header -->
|
|
<div class="header">
|
|
<h2>Click ERP - Client Master Report</h2>
|
|
<p>Generated on: {{ date('d M Y, h:i A') }} • Total Records: {{ count($clients) }}</p>
|
|
</div>
|
|
|
|
<!-- Data Table -->
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Client Name</th>
|
|
<th>Contact Person</th>
|
|
<th>Email</th>
|
|
<th>Pay Mode</th>
|
|
<th>Country</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($clients as $index => $client)
|
|
<tr>
|
|
<td>{{ $index + 1 }}</td>
|
|
<td><strong>{{ $client->name }}</strong></td>
|
|
<td>{{ $client->contact_person ?? 'N/A' }}</td>
|
|
<td>{{ $client->email ?? 'N/A' }}</td>
|
|
<td><span style="text-transform: uppercase;">{{ $client->pay_mode ?? 'N/A' }}</span></td>
|
|
<td>{{ $client->country ?? 'N/A' }}</td>
|
|
<td>
|
|
@php
|
|
$isActive = $client->status === 'Live' || $client->status === 'active';
|
|
@endphp
|
|
<span class="badge {{ $isActive ? 'badge-active' : 'badge-other' }}">
|
|
{{ $client->status ?? 'N/A' }}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="7" style="text-align: center; color: #777; padding: 20px;">No client records found matching the criteria.</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
|
|
<!-- Footer -->
|
|
<div class="footer">
|
|
Click ERP • Confidential Business Report
|
|
</div>
|
|
|
|
</body>
|
|
</html> |