diff --git a/resources/views/components/table-component.blade.php b/resources/views/components/table-component.blade.php index a9f87bd..bae0c45 100644 --- a/resources/views/components/table-component.blade.php +++ b/resources/views/components/table-component.blade.php @@ -1,5 +1,5 @@ @props([ - 'pageTitle' => 'Table', + 'pageTitle' => '', 'data' => [], 'columns' => [], 'actions' => [], @@ -43,7 +43,7 @@
@@ -367,6 +367,7 @@
width: 100px;
}
}
+
diff --git a/resources/views/pages/reports/mobile-usage-report.blade.php b/resources/views/pages/reports/mobile-usage-report.blade.php
index 3935903..2570ca3 100644
--- a/resources/views/pages/reports/mobile-usage-report.blade.php
+++ b/resources/views/pages/reports/mobile-usage-report.blade.php
@@ -1,14 +1,154 @@
@extends('layouts.app')
-@section('page_title', 'Reports')
+@section('page_title', 'Mobile Usage Report')
@section('content')
-
-
- Mobile Usage Report
+ @php
+ $mobileUsageData = [
+ ['id' => 1, 'date' => '2025-04-16', 'activeUsers' => 100, 'inactiveUsers' => 20, 'lockedUsers' => 5],
+ ['id' => 2, 'date' => '2025-04-15', 'activeUsers' => 95, 'inactiveUsers' => 22, 'lockedUsers' => 4],
+ ['id' => 3, 'date' => '2025-04-14', 'activeUsers' => 98, 'inactiveUsers' => 18, 'lockedUsers' => 6],
+ ['id' => 4, 'date' => '2025-04-13', 'activeUsers' => 102, 'inactiveUsers' => 19, 'lockedUsers' => 3],
+ ['id' => 5, 'date' => '2025-04-12', 'activeUsers' => 99, 'inactiveUsers' => 21, 'lockedUsers' => 4],
+ ['id' => 6, 'date' => '2025-04-11', 'activeUsers' => 101, 'inactiveUsers' => 20, 'lockedUsers' => 5],
+ ['id' => 7, 'date' => '2025-04-10', 'activeUsers' => 100, 'inactiveUsers' => 19, 'lockedUsers' => 4],
+ ];
+ @endphp
+
+
+
- Mobile Usage Report
-
-@endsection
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/pages/reports/registration-report.blade.php b/resources/views/pages/reports/registration-report.blade.php
index 9b54acd..dae3a52 100644
--- a/resources/views/pages/reports/registration-report.blade.php
+++ b/resources/views/pages/reports/registration-report.blade.php
@@ -1,14 +1,209 @@
@extends('layouts.app')
-@section('page_title', 'Reports')
+@section('page_title', 'Registration Report')
@section('content')
-This is the Mobile Usage Report page content. +
+
-
+
+
+
+
+
+ @include('components.table-component', [
+ 'data' => $mobileUsageData,
+ 'columns' => [
+ ['name' => 'Date', 'key' => 'date', 'sortable' => true, 'format' => 'date'],
+ ['name' => 'Active Registered Users', 'key' => 'activeUsers', 'sortable' => true],
+ ['name' => 'Inactive Registered Users', 'key' => 'inactiveUsers', 'sortable' => true],
+ ['name' => 'Locked Registered Users', 'key' => 'lockedUsers', 'sortable' => true]
+ ],
+ 'allFields' => [],
+ 'actions' => [],
+ 'showAddButton' => false,
+ 'showCheckboxes' => false,
+ 'showBatchDelete' => false,
+ 'showEditModal' => false,
+ 'showViewModal' => false,
+ 'showSearch' => false
+ ])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- Registration Report
-
-
-
+ @php
+ $registrationData = [
+ [
+ 'id' => 1,
+ 'date' => '2025-04-16',
+ 'activatedCards' => 2,
+ 'registeredMembers' => 2
+ ],
+ [
+ 'id' => 2,
+ 'date' => '2025-04-14',
+ 'activatedCards' => 1,
+ 'registeredMembers' => 1
+ ],
+ [
+ 'id' => 3,
+ 'date' => '2025-03-20',
+ 'activatedCards' => 1,
+ 'registeredMembers' => 1
+ ],
+ [
+ 'id' => 4,
+ 'date' => '2025-03-10',
+ 'activatedCards' => 1,
+ 'registeredMembers' => 1
+ ],
+ [
+ 'id' => 5,
+ 'date' => '2025-03-01',
+ 'activatedCards' => 1,
+ 'registeredMembers' => 1
+],[
+ 'id' => 6,
+ 'date' => '2025-03-01',
+ 'activatedCards' => 1,
+ 'registeredMembers' => 1
+],[
+ 'id' => 7,
+ 'date' => '2025-03-01',
+ 'activatedCards' => 1,
+ 'registeredMembers' => 1
+],
+ ];
+ @endphp
+ This is the Registration Report page content. -
+
-@endsection
+ Registration Report
+
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/pages/reports/station-rating-report.blade.php b/resources/views/pages/reports/station-rating-report.blade.php
index 33e448d..44198cb 100644
--- a/resources/views/pages/reports/station-rating-report.blade.php
+++ b/resources/views/pages/reports/station-rating-report.blade.php
@@ -1,14 +1,155 @@
@extends('layouts.app')
-@section('page_title', 'Reports')
+@section('page_title', 'Station Rating Report')
@section('content')
-
+
+
+
+
+
+
+
+ @include('components.table-component', [
+
+ 'data' => $registrationData,
+ 'columns' => [
+
+ ['name' => 'Date', 'key' => 'date', 'sortable' => true, 'format' => 'date'],
+ ['name' => 'No. of Activated Cards', 'key' => 'activatedCards', 'sortable' => true],
+ ['name' => 'No. of Registered Members', 'key' => 'registeredMembers', 'sortable' => true]
+ ],
+ 'allFields' => [],
+ 'actions' => [],
+ 'showAddButton' => false,
+ 'showCheckboxes' => false,
+ 'showBatchDelete' => false,
+ 'showEditModal' => false,
+ 'showViewModal' => false,
+ 'showSearch' => false
+ ])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- Station Rating Report
+ @php
+ $stationRatingData = [
+ ['id' => 1, 'transactionDateTime' => '2025-04-16 10:30:00', 'cardNumber' => '4111111111111111', 'salesInvoice' => 'INV001', 'station' => 'Station A', 'ratings' => 4.5],
+ ['id' => 2, 'transactionDateTime' => '2025-04-15 14:45:00', 'cardNumber' => '4012888888881881', 'salesInvoice' => 'INV002', 'station' => 'Station B', 'ratings' => 3.8],
+ ['id' => 3, 'transactionDateTime' => '2025-04-14 09:15:00', 'cardNumber' => '5555555555554444', 'salesInvoice' => 'INV003', 'station' => 'Station C', 'ratings' => 4.2],
+ ['id' => 4, 'transactionDateTime' => '2025-04-13 16:20:00', 'cardNumber' => '378282246310005', 'salesInvoice' => 'INV004', 'station' => 'Station D', 'ratings' => 4.0],
+ ['id' => 5, 'transactionDateTime' => '2025-04-12 11:00:00', 'cardNumber' => '6011111111111117', 'salesInvoice' => 'INV005', 'station' => 'Station E', 'ratings' => 3.9],
+ ['id' => 6, 'transactionDateTime' => '2025-04-11 08:50:00', 'cardNumber' => '3530111333300000', 'salesInvoice' => 'INV006', 'station' => 'Station F', 'ratings' => 4.3],
+ ['id' => 7, 'transactionDateTime' => '2025-04-10 12:10:00', 'cardNumber' => '4917610000000000', 'salesInvoice' => 'INV007', 'station' => 'Station G', 'ratings' => 4.1],
+ ];
+ @endphp
+
+
+
- Station Rating Report
-
-@endsection
+
+
+
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/pages/reports/top-up-usage-report.blade.php b/resources/views/pages/reports/top-up-usage-report.blade.php
index abe2ce2..1d71eb2 100644
--- a/resources/views/pages/reports/top-up-usage-report.blade.php
+++ b/resources/views/pages/reports/top-up-usage-report.blade.php
@@ -1,14 +1,187 @@
@extends('layouts.app')
-@section('page_title', 'Reports')
+@section('page_title', 'Top-Up Usage Report')
@section('content')
-This is the Station Rating Report page content. +
+
-
+
+
+
+
+
+ @include('components.table-component', [
+ 'data' => $stationRatingData,
+ 'columns' => [
+ ['name' => 'Transaction Date and Time', 'key' => 'transactionDateTime', 'sortable' => true],
+ ['name' => 'Card Number', 'key' => 'cardNumber', 'sortable' => true],
+ ['name' => 'Sales Invoice', 'key' => 'salesInvoice', 'sortable' => true],
+ ['name' => 'Station', 'key' => 'station', 'sortable' => true],
+ ['name' => 'Ratings', 'key' => 'ratings', 'sortable' => true]
+ ],
+ 'allFields' => [],
+ 'actions' => [],
+ 'showAddButton' => false,
+ 'showCheckboxes' => false,
+ 'showBatchDelete' => false,
+ 'showEditModal' => false,
+ 'showViewModal' => false,
+ 'showSearch' => false
+ ])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- Top-Up Usage Report
+ @php
+ $topUpData = [
+ [
+ 'id' => 1,
+ 'transactionDateTime' => '2025-04-16 10:30:00',
+ 'cardNumber' => '4111111111111111',
+ 'topUpAmount' => '50.00'
+ ],
+ [
+ 'id' => 2,
+ 'transactionDateTime' => '2025-04-15 14:45:00',
+ 'cardNumber' => '4012888888881881',
+ 'topUpAmount' => '20.00'
+ ],
+ [
+ 'id' => 3,
+ 'transactionDateTime' => '2025-04-14 09:15:00',
+ 'cardNumber' => '5555555555554444',
+ 'topUpAmount' => '30.00'
+ ],
+ [
+ 'id' => 4,
+ 'transactionDateTime' => '2025-04-13 16:20:00',
+ 'cardNumber' => '378282246310005',
+ 'topUpAmount' => '10.00'
+ ],
+ [
+ 'id' => 5,
+ 'transactionDateTime' => '2025-04-12 11:00:00',
+ 'cardNumber' => '6011111111111117',
+ 'topUpAmount' => '40.00'
+ ],
+ [
+ 'id' => 6,
+ 'transactionDateTime' => '2025-04-11 08:50:00',
+ 'cardNumber' => '3530111333300000',
+ 'topUpAmount' => '25.00'
+ ],
+ [
+ 'id' => 7,
+ 'transactionDateTime' => '2025-04-10 12:10:00',
+ 'cardNumber' => '4917610000000000',
+ 'topUpAmount' => '15.00'
+ ]
+ ];
+ @endphp
+
+
+
- Top-Up Usage Report
-
-@endsection
+
+
+
+
+@endsection
\ No newline at end of file
This is the Top-Up Usage Report page content. +
+
-
+
+
+
+
+
+ @include('components.table-component', [
+ 'data' => $topUpData,
+ 'columns' => [
+ ['name' => 'Transaction Date and Time', 'key' => 'transactionDateTime', 'sortable' => true],
+ ['name' => 'Card Number', 'key' => 'cardNumber', 'sortable' => true],
+ ['name' => 'Top-Up Amount', 'key' => 'topUpAmount', 'sortable' => true]
+ ],
+ 'allFields' => [],
+ 'actions' => [],
+ 'showAddButton' => false,
+ 'showCheckboxes' => false,
+ 'showBatchDelete' => false,
+ 'showEditModal' => false,
+ 'showViewModal' => false,
+ 'showSearch' => false
+ ])
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
---|