added sender ID export, edit payment bug fix, profile page bug fix

This commit is contained in:
Kwesi Banson
2026-10-29 12:23:00 +00:00
parent 8428d94abd
commit 965892ac62
15 changed files with 792 additions and 139 deletions

View File

@@ -43,9 +43,20 @@
<h4 class="fw-bold mb-1">SMS Sender IDs</h4>
<p class="text-secondary mb-0" style="font-size: 0.9rem;">Manage Sender IDs</p>
</div>
<button class="btn text-white fw-bold d-flex align-items-center" style="background-color: #5c4df0; border-radius: 8px;" id="btnOpenSenderModal">
<i class="bi bi-plus-lg me-2"></i> Add Sender ID
</button>
<div class="d-flex gap-2">
<!-- New Export Buttons -->
<a href="{{ route('senderids.export.excel', request()->query()) }}" class="btn btn-outline-success fw-bold d-flex align-items-center">
<i class="bi bi-file-earmark-excel me-1"></i> Excel
</a>
<a href="{{ route('senderids.export.pdf', request()->query()) }}" class="btn btn-outline-danger fw-bold d-flex align-items-center">
<i class="bi bi-file-earmark-pdf me-1"></i> PDF
</a>
<!-- Existing Add Button -->
<button class="btn text-white fw-bold d-flex align-items-center" style="background-color: #5c4df0; border-radius: 8px;" id="btnOpenSenderModal">
<i class="bi bi-plus-lg me-2"></i> Add Sender ID
</button>
</div>
</div>
<!-- KPIs -->

View File

@@ -0,0 +1,50 @@
<!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>