50 lines
1.9 KiB
PHP
50 lines
1.9 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Sender IDs Export</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; font-size: 11px; color: #333; }
|
|
.header { text-align: center; margin-bottom: 20px; }
|
|
.header h2 { margin: 0; padding: 0; color: #5c4df0; }
|
|
.header p { margin: 5px 0; color: #666; font-size: 10px; }
|
|
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
|
|
th, td { border: 1px solid #dddddd; padding: 8px; text-align: left; }
|
|
th { background-color: #f8f9fc; font-weight: bold; text-transform: uppercase; font-size: 10px; }
|
|
.badge-yes { color: #5c4df0; font-weight: bold; }
|
|
.badge-no { color: #6c757d; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="header">
|
|
<h2>SMS Sender IDs Directory</h2>
|
|
<p>Exported on: {{ now()->format('F j, Y, g:i a') }}</p>
|
|
</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Sender ID</th>
|
|
<th>Direct MNO</th>
|
|
<th>MNO / Supplier Name</th>
|
|
<th>Type</th>
|
|
<th>Status</th>
|
|
<th>Created Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($senderIds as $sender)
|
|
<tr>
|
|
<td style="font-weight: bold;">{{ $sender->senderid }}</td>
|
|
<td class="{{ $sender->direct_mno == 'YES' ? 'badge-yes' : 'badge-no' }}">{{ $sender->direct_mno }}</td>
|
|
<td>{{ $sender->direct_mno == 'YES' ? ($sender->mno_name ?? 'N/A') : ($sender->supplier_name ?? 'N/A') }}</td>
|
|
<td>{{ $sender->type }}</td>
|
|
<td>{{ strtoupper($sender->status) }}</td>
|
|
<td>{{ $sender->created_at ? $sender->created_at->format('M d, Y') : 'N/A' }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
</body>
|
|
</html> |