Commit f824bb2c authored by Brian Wangora's avatar Brian Wangora

Token remaining column added to table

parent ee8e24d9
...@@ -333,18 +333,17 @@ ...@@ -333,18 +333,17 @@
<table class="table table-sm table-hover" id="slowQueriesTable"> <table class="table table-sm table-hover" id="slowQueriesTable">
<thead> <thead>
<tr> <tr>
<th>Query</th> <th></th>
<th>Avg Time</th> <th></th>
<th>Calls</th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>SELECT * FROM users WHERE...</td> <td></td>
<td>420ms</td> <td></td>
<td>1,842</td> <td></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -440,6 +439,56 @@ ...@@ -440,6 +439,56 @@
</x-adminlte-card> </x-adminlte-card>
</div> </div>
<div class="mt-4">
<x-adminlte-card title="Total API Requests Processed" theme="" icon="" collapsible>
<x-slot name="titleSlot">
<h4 class="card-title">Total API Requests Processed</h4>
</x-slot>
<div class="">
@php
$heads = [
'Organization',
'Industry',
'Total Requests',
'Token Balance',
'Success Rate (%)',
['label' => 'Actions', 'no-export' => true, 'width' => 5],
];
$data = [
['Safaricom', 'Telco', '1,203,421','2,987,987', '98.2'],
['Airtel', 'Telco', '834,775','24,654', '97.5'],
['Equity Bank', 'FBSI', '1,509,342','234', '96.9'],
['NCBA', 'FBSI', '675,312','654,000', '95.3'],
['NHIF', 'Gov', '321,008','241,876,900', '92.6'],
];
$config = [
'order' => [[3, 'desc']],
'columns' => [null, null, null, null, null, ['orderable' => false]],
];
@endphp
<x-adminlte-datatable id="totalApiRequestsProcessed" :heads="$heads" :config="$config" bordered hoverable striped>
@foreach($data as $row)
<tr>
@foreach($row as $cell)
<td>{!! $cell !!}</td>
@endforeach
<td>
<a href="#">
<button class="btn btn-xs btn-default text-teal mx-1 shadow" title="Details">
<i class="fa fa-lg fa-fw fa-eye"></i>
</button>
</a>
</td>
</tr>
@endforeach
</x-adminlte-datatable>
</div>
</x-adminlte-card>
</div>
<div class="mt-4"> <div class="mt-4">
<x-adminlte-card title="Active Integrations by Industry" theme="" icon="" collapsible> <x-adminlte-card title="Active Integrations by Industry" theme="" icon="" collapsible>
<x-slot name="titleSlot"> <x-slot name="titleSlot">
...@@ -901,55 +950,6 @@ ...@@ -901,55 +950,6 @@
</x-adminlte-card> </x-adminlte-card>
</div> </div>
<div class="mt-4">
<x-adminlte-card title="Number of Requests by Organization" theme="" icon="" collapsible>
<x-slot name="titleSlot">
<h4 class="card-title">Number of Requests by Organization</h4>
</x-slot>
<div class="">
@php
$heads = [
'Code',
'Name',
'Records',
'API Calls',
['label' => 'Actions', 'no-export' => true, 'width' => 5],
];
$config = [
'data' => [
['NRB', 'National Registration Bureau', '1,208,333', '651,665'],
['CRD', 'Civil Registration Department', '866,820', '530,046'],
['DOI', 'Department of Immigration', '1,453,787', '1,301,165'],
['RAD', 'Refugee Affairs Department', '315,493', '73,081'],
['RG', 'Registrar General', '143,920', '5,313,510'],
],
'order' => [[1, 'asc']],
'columns' => [null, null, null, null, ['orderable' => false]],
];
@endphp
<x-adminlte-datatable id="populationByCounties" bordered :heads="$heads" hoverable striped>
@foreach($config['data'] as $row)
<tr>
@foreach($row as $cell)
<td>{!! $cell !!}</td>
@endforeach
<td>
<a href="#">
<button class="btn btn-xs btn-default text-teal mx-1 shadow" title="Details">
<i class="fa fa-lg fa-fw fa-eye"></i>
</button>
</a>
</td>
</tr>
@endforeach
</x-adminlte-datatable>
</div>
</x-adminlte-card>
</div>
<!-- Performance Monitoring --> <!-- Performance Monitoring -->
<div class="mt-4"> <div class="mt-4">
<x-adminlte-card title="Network Traffic Analysis" theme="" icon="" collapsible> <x-adminlte-card title="Network Traffic Analysis" theme="" icon="" collapsible>
...@@ -1115,54 +1115,6 @@ ...@@ -1115,54 +1115,6 @@
</div> </div>
</x-adminlte-card> </x-adminlte-card>
<x-adminlte-card title="Total API Requests Processed" theme="" icon="" collapsible>
<x-slot name="titleSlot">
<h4 class="card-title">Total API Requests Processed</h4>
</x-slot>
<div class="">
@php
$heads = [
'Organization',
'Industry',
'Total Requests',
'Success Rate (%)',
['label' => 'Actions', 'no-export' => true, 'width' => 5],
];
$data = [
['Safaricom', 'Telco', '1,203,421', '98.2'],
['Airtel', 'Telco', '834,775', '97.5'],
['Equity Bank', 'FBSI', '1,509,342', '96.9'],
['NCBA', 'FBSI', '675,312', '95.3'],
['NHIF', 'Gov', '321,008', '92.6'],
];
$config = [
'order' => [[3, 'desc']],
'columns' => [null, null, null, null, null, ['orderable' => false]],
];
@endphp
<x-adminlte-datatable id="totalApiRequestsProcessed" :heads="$heads" :config="$config" bordered hoverable striped>
@foreach($data as $row)
<tr>
@foreach($row as $cell)
<td>{!! $cell !!}</td>
@endforeach
<td>
<a href="#">
<button class="btn btn-xs btn-default text-teal mx-1 shadow" title="Details">
<i class="fa fa-lg fa-fw fa-eye"></i>
</button>
</a>
</td>
</tr>
@endforeach
</x-adminlte-datatable>
</div>
</x-adminlte-card>
<x-adminlte-card title="Sync Performance" theme="" icon="" collapsible> <x-adminlte-card title="Sync Performance" theme="" icon="" collapsible>
<x-slot name="titleSlot"> <x-slot name="titleSlot">
......
...@@ -155,16 +155,17 @@ ...@@ -155,16 +155,17 @@
'Organization', 'Organization',
'Industry', 'Industry',
'Total Requests', 'Total Requests',
'Token Balance',
'Success Rate (%)', 'Success Rate (%)',
['label' => 'Actions', 'no-export' => true, 'width' => 5], ['label' => 'Actions', 'no-export' => true, 'width' => 5],
]; ];
$data = [ $data = [
['Safaricom', 'Telco', '1,203,421', '98.2'], ['Safaricom', 'Telco', '1,203,421','2,987,987', '98.2'],
['Airtel', 'Telco', '834,775', '97.5'], ['Airtel', 'Telco', '834,775','24,654', '97.5'],
['Equity Bank', 'FBSI', '1,509,342', '96.9'], ['Equity Bank', 'FBSI', '1,509,342','234', '96.9'],
['NCBA', 'FBSI', '675,312', '95.3'], ['NCBA', 'FBSI', '675,312','654,000', '95.3'],
['NHIF', 'Gov', '321,008', '92.6'], ['NHIF', 'Gov', '321,008','241,876,900', '92.6'],
]; ];
$config = [ $config = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment