|
31 | 31 | <thead> |
32 | 32 | <tr> |
33 | 33 | <th>Merchant Name</th> |
| 34 | + <th>Reference</th> |
| 35 | + <th>Balance</th> |
| 36 | + <th>Available Balance</th> |
34 | 37 | <th>Settlement Schedule</th> |
35 | | - <th>Contact Name</th> |
36 | | - <th>Address Line 1</th> |
37 | | - <th>Town</th> |
38 | 38 | <th class="text-right">Actions</th> |
39 | 39 | </tr> |
40 | 40 | </thead> |
|
52 | 52 | </div> |
53 | 53 | </div> |
54 | 54 | </td> |
| 55 | + <td class="font-mono text-sm">@merchant.MerchantReference</td> |
| 56 | + <td class="font-semibold text-green-600">@(merchant.Balance?.ToString("C") ?? "N/A")</td> |
| 57 | + <td class="font-semibold">@(merchant.AvailableBalance?.ToString("C") ?? "N/A")</td> |
55 | 58 | <td> |
56 | 59 | <span class="px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium"> |
57 | 60 | @(merchant.SettlementSchedule ?? "Not Set") |
58 | 61 | </span> |
59 | 62 | </td> |
60 | | - <td>@(merchant.Contact?.ContactName ?? "N/A")</td> |
61 | | - <td>@(merchant.Address?.AddressLine1 ?? "N/A")</td> |
62 | | - <td>@(merchant.Address?.Town ?? "N/A")</td> |
63 | 63 | <td class="text-right"> |
64 | 64 | <div class="flex items-center justify-end space-x-2"> |
65 | 65 | <button class="text-blue-600 hover:text-blue-800 p-2" @onclick:stopPropagation="true" @onclick="() => ViewMerchant(merchant.MerchantId)" title="View"> |
|
81 | 81 | </table> |
82 | 82 | </div> |
83 | 83 |
|
84 | | - <!-- Summary Card --> |
85 | | - <div class="bg-white rounded-lg shadow-md p-6"> |
86 | | - <p class="text-sm text-gray-600 mb-1">Total Merchants</p> |
87 | | - <p class="text-3xl font-bold text-gray-900">@merchants.Count</p> |
| 84 | + <!-- Summary Cards --> |
| 85 | + <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> |
| 86 | + <div class="bg-white rounded-lg shadow-md p-6"> |
| 87 | + <p class="text-sm text-gray-600 mb-1">Total Merchants</p> |
| 88 | + <p class="text-3xl font-bold text-gray-900">@merchants.Count</p> |
| 89 | + </div> |
| 90 | + <div class="bg-white rounded-lg shadow-md p-6"> |
| 91 | + <p class="text-sm text-gray-600 mb-1">Total Balance</p> |
| 92 | + <p class="text-3xl font-bold text-green-600">@merchants.Sum(m => m.Balance ?? 0).ToString("C")</p> |
| 93 | + </div> |
| 94 | + <div class="bg-white rounded-lg shadow-md p-6"> |
| 95 | + <p class="text-sm text-gray-600 mb-1">Available Balance</p> |
| 96 | + <p class="text-3xl font-bold text-blue-600">@merchants.Sum(m => m.AvailableBalance ?? 0).ToString("C")</p> |
| 97 | + </div> |
88 | 98 | </div> |
89 | 99 | } |
90 | 100 | else |
|
0 commit comments