Add Primayan Medicare report frontend and navigation

This commit is contained in:
Iqbal
2026-05-11 09:10:33 +07:00
parent 5dc04d01e2
commit 21a909aacb
6 changed files with 547 additions and 46 deletions

View File

@@ -16,9 +16,10 @@ class NavigationSeeder extends Seeder
public function run()
{
$menuItems = [
// DOCTORS & HOSPITALS
// Dashboard
[
'title' => 'Dashboard',
'urutan' => 1,
'children' => [
[
'title' => 'Dashboard',
@@ -31,6 +32,7 @@ class NavigationSeeder extends Seeder
// DOCTORS & HOSPITALS
[
'title' => 'DOCTORS & HOSPITALS',
'urutan' => 2,
'children' => [
[
'title' => 'Doctors',
@@ -48,6 +50,7 @@ class NavigationSeeder extends Seeder
// PHARMACY & DELIVERY MANAGEMENT
[
'title' => 'PHARMACY & DELIVERY MANAGEMENT',
'urutan' => 3,
'children' => [
[
'title' => 'Drug',
@@ -70,6 +73,7 @@ class NavigationSeeder extends Seeder
// STATION BENEFIT & MEMBERSHIP
[
'title' => 'STATION BENEFIT & MEMBERSHIP',
'urutan' => 4,
'openWhen' => ['/corporates', '/formularium', '/diagnosis', '/hospitals'],
'children' => [
[
@@ -77,7 +81,6 @@ class NavigationSeeder extends Seeder
'path' => '/corporates',
'permission' => 'corporate-list',
],
// ['title' => 'Corporate Create', 'path' => '/corporates/create'],
[
'title' => 'Formularium',
'path' => '/master/formularium-template-v2',
@@ -96,28 +99,33 @@ class NavigationSeeder extends Seeder
],
'permission' => null
],
// CLAIM REQUEST
// MASTER
[
'title' => 'CLAIM REQUEST',
'path' => '/claim-requests',
'title' => 'MASTER',
'urutan' => 5,
'children' => [
[
'title' => 'CLAIM REQUEST',
'path' => '/claim-requests',
'permission' => 'claim-request-list'
'title' => 'Diagnosis',
'path' => '/master/diagnosis',
'permission' => 'diagnosis-list'
],
],
'permission' => null
],
// CLAIM MANAGEMENT
// CUSTOMER SERVICES
[
'title' => 'CLAIM MANAGEMENT',
'path' => '/claims',
'title' => 'CUSTOMER SERVICES',
'urutan' => 6,
'children' => [
[
'title' => 'CLAIM MANAGEMENT',
'path' => '/claims',
'permission' => 'claim-management-list'
'title' => 'Request',
'path' => '/custormer-service/request',
'permission' => 'request-log-list'
],
[
'title' => 'Final LOG',
'path' => '/custormer-service/final-log',
'permission' => 'final-log-list'
],
],
'permission' => null
@@ -125,13 +133,13 @@ class NavigationSeeder extends Seeder
// CASE MANAGEMENT
[
'title' => 'CASE MANAGEMENT',
'urutan' => 7,
'children' => [
[
'title' => 'Daily Monitoring',
'path' => '/case_management/daily_monitoring',
'permission' => 'daily-monitoring-list'
],
// ['title' => 'Laboratorium Result', 'path' => '/case_management/laboratorium_result'],
[
'title' => 'Inpatient Monitoring',
'path' => '/case_management/inpatient_monitoring',
@@ -145,9 +153,56 @@ class NavigationSeeder extends Seeder
],
'permission' => null
],
// Invoice
// CLAIM REQUEST
[
'title' => 'CLAIM REQUEST',
'urutan' => 8,
'path' => '/claim-requests',
'children' => [
[
'title' => 'CLAIM REQUEST',
'path' => '/claim-requests',
'permission' => 'claim-request-list'
],
],
'permission' => null
],
// CLAIM MANAGEMENT
[
'title' => 'CLAIM MANAGEMENT',
'urutan' => 9,
'path' => '/claims',
'children' => [
[
'title' => 'CLAIM MANAGEMENT',
'path' => '/claims',
'permission' => 'claim-management-list'
],
],
'permission' => null
],
// USER MANAGEMENT
[
'title' => 'USER MANAGEMENT',
'urutan' => 10,
'children' => [
[
'title' => 'User Role',
'path' => '/user-role',
'permission' => 'user-role-list'
],
[
'title' => 'User Access',
'path' => '/user-access',
'permission' => 'user-access-list'
],
],
'permission' => null
],
// INVOICE
[
'title' => 'INVOICE',
'urutan' => 11,
'children' => [
[
'title' => 'Invoice',
@@ -157,79 +212,78 @@ class NavigationSeeder extends Seeder
],
'permission' => null
],
// CUSTOMER SERVICES
[
'title' => 'CUSTOMER SERVICES',
'children' => [
[
'title' => 'Request',
'path' => '/custormer-service/request',
'permission' => 'request-log-list'
],
// ['title' => 'Membership', 'path' => '/cs-membership'],
[
'title' => 'Final LOG',
'path' => '/custormer-service/final-log',
'permission' => 'final-log-list'
],
],
'permission' => null
],
// REPORT
[
'title' => 'REPORT',
'urutan' => 12,
'children' => [
[
'title' => 'Files Provider',
'path' => 'report/files-provider',
'permission' => 'report-files-provider-list'
'permission' => 'report-files-provider-list',
'urutan' => 1,
],
[
'title' => 'Letter of Guarantee',
'path' => '/report/logs',
'permission' => 'report-log-list'
'permission' => 'report-log-list',
'urutan' => 2,
],
[
'title' => 'Appointment',
'path' => '/report/appointments',
'permission' => 'report-appointment-list'
'permission' => 'report-appointment-list',
'urutan' => 3,
],
[
'title' => 'Live Chat',
'path' => '/report/live-chat',
'permission' => 'report-livechat-list'
'permission' => 'report-livechat-list',
'urutan' => 4,
],
[
'title' => 'Linksehat Payment',
'path' => '/report/linksehat-payments',
'permission' => 'report-livechat-payment'
'permission' => 'report-livechat-payment',
'urutan' => 5,
],
[
'title' => 'Prescription',
'path' => '/report/prescription',
'permission' => 'report-prescription'
'permission' => 'report-prescription',
'urutan' => 6,
],
[
'title' => 'Doctor Rating',
'path' => '/report/doctor-rating',
'permission' => 'report-doctor-rating'
'permission' => 'report-doctor-rating',
'urutan' => 7,
],
[
'title' => 'Doctor Online',
'path' => '/report/doctor-online',
'permission' => 'report-doctor-online'
'permission' => 'report-doctor-online',
'urutan' => 8,
],
[
'title' => 'Katalog Dokter',
'path' => '/report/katalog-dokter',
'permission' => 'report-katalog-dokter'
]
'permission' => 'report-katalog-dokter',
'urutan' => 9,
],
[
'title' => 'Primayan Medicare',
'path' => '/report/primayan-medicare',
'permission' => 'report-primayan-medicare',
'urutan' => 10,
],
],
'permission' => null
],
// MASTER
[
'title' => 'MASTER',
'urutan' => 11,
'children' => [
[
'title' => 'Diagnosis',
@@ -242,6 +296,7 @@ class NavigationSeeder extends Seeder
// USER MANAGEMENT
[
'title' => 'USER MANAGEMENT',
'urutan' => 9,
'children' => [
[
'title' => 'User Role',
@@ -259,12 +314,14 @@ class NavigationSeeder extends Seeder
// LINKING TOOLS
[
'title' => 'LINKING TOOLS',
'urutan' => 13,
'path' => '/linking',
'permission' => 'linkking-list'
],
// E-PRESCRIPTION
[
'title' => 'E-PRESCRIPTION',
'urutan' => 14,
'path' => '/e-prescription/live-chat',
'permission' => 'prescription-list'
],
@@ -370,7 +427,8 @@ class NavigationSeeder extends Seeder
'title' => $menuItemData['title'],
'path' => $menuItemData['path'] ?? null,
'icon' => $menuItemData['icon'] ?? null,
'permission' => $menuItemData['permission'] ?? null
'permission' => $menuItemData['permission'] ?? null,
'urutan' => $menuItemData['urutan'] ?? null
]);
if (isset($menuItemData['children'])) {
@@ -384,7 +442,8 @@ class NavigationSeeder extends Seeder
'path' => $childData['path'] ?? null,
'icon' => $childData['icon'] ?? null,
'parent_id' => $menuItem->id,
'permission' => $childData['permission'] ?? null
'permission' => $childData['permission'] ?? null,
'urutan' => $childData['urutan'] ?? null
]);
}
}