Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
I
IPRSv2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Ngei
IPRSv2
Commits
f824bb2c
Commit
f824bb2c
authored
Apr 17, 2025
by
Brian Wangora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Token remaining column added to table
parent
ee8e24d9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
109 deletions
+62
-109
dashboard.blade.php
resources/views/home/dashboard.blade.php
+56
-104
home2.blade.php
resources/views/home/home2.blade.php
+6
-5
No files found.
resources/views/home/dashboard.blade.php
View file @
f824bb2c
...
@@ -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"
>
...
...
resources/views/home/home2.blade.php
View file @
f824bb2c
...
@@ -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 = [
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment