added subscriber profile

This commit is contained in:
Kwesi Banson
2026-09-22 22:01:37 +00:00
parent c7f93a7dc1
commit 3ece39efe3
9 changed files with 846 additions and 5 deletions

View File

@@ -0,0 +1,53 @@
@extends('layouts.app')
@section('content')
<div class="container mt-4">
<div class="d-flex justify-content-between align-items-center mb-4">
<div>
<h2>Subscriber Profile</h2>
<p class="text-muted mb-0">Service: <strong>{{ $service->name }}</strong> | MSISDN: <span class="text-primary fw-bold">{{ $msisdn }}</span></p>
</div>
<a href="{{ url()->previous() }}" class="btn btn-outline-secondary">Back</a>
</div>
<div class="card shadow-sm">
<div class="card-header bg-light">
<h5 class="mb-0">Content Delivery Frequency</h5>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover mb-0 align-middle">
<thead class="table-light">
<tr>
<th>Content Name</th>
<th>Frequency (Times Received)</th>
<th>Total Cost Incurred</th>
<th>Last Received Date</th>
</tr>
</thead>
<tbody>
@forelse($contentFrequency as $row)
<tr>
<td class="fw-bold">{{ $row->content }}</td>
<td>
<span class="badge bg-primary rounded-pill px-3 py-2">{{ $row->frequency }} deliveries</span>
</td>
<td>{{ number_format($row->total_spent, 2) }}</td>
<td class="text-muted small">{{ $row->last_received }}</td>
</tr>
@empty
<tr>
<td colspan="4" class="text-center py-4 text-muted">No content transaction history found for this subscriber.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
<div class="mt-4">
{{ $contentFrequency->links() }}
</div>
</div>
@endsection