Giant Update
This commit is contained in:
@@ -188,6 +188,28 @@ class MenuListSeeder extends Seeder
|
||||
);
|
||||
}
|
||||
|
||||
$paymentGateway = MenuList::updateOrCreate(
|
||||
['slug' => 'payment-gateway'],
|
||||
[
|
||||
'parent_id' => null, 'name' => 'Payment Gateway', 'url' => null,
|
||||
'icon' => 'cil-credit-card', 'component' => null, 'sort_order' => 80,
|
||||
]
|
||||
);
|
||||
foreach ([
|
||||
['slug' => 'payment-gateway-settings', 'name' => 'Setting', 'url' => '/payment-gateway/settings', 'sort_order' => 1],
|
||||
['slug' => 'payment-gateway-logs', 'name' => 'Log Pembayaran', 'url' => '/payment-gateway/logs', 'sort_order' => 2],
|
||||
] as $item) {
|
||||
MenuList::updateOrCreate(['slug' => $item['slug']], [
|
||||
'parent_id' => $paymentGateway->id, 'name' => $item['name'], 'url' => $item['url'],
|
||||
'icon' => 'cil-credit-card', 'component' => null, 'sort_order' => $item['sort_order'],
|
||||
]);
|
||||
}
|
||||
|
||||
MenuList::updateOrCreate(['slug' => 'wallet'], [
|
||||
'parent_id' => null, 'name' => 'Dompet', 'url' => '/wallet',
|
||||
'icon' => 'cil-wallet', 'component' => null, 'sort_order' => 81,
|
||||
]);
|
||||
|
||||
$nas = MenuList::updateOrCreate(
|
||||
['slug' => 'nas'],
|
||||
[
|
||||
@@ -220,5 +242,141 @@ class MenuListSeeder extends Seeder
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$customers = MenuList::updateOrCreate(
|
||||
['slug' => 'customers'],
|
||||
[
|
||||
'parent_id' => null,
|
||||
'name' => 'Customer',
|
||||
'url' => null,
|
||||
'icon' => 'cil-people',
|
||||
'component' => null,
|
||||
'sort_order' => 6,
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
|
||||
foreach ([
|
||||
['slug' => 'customers-orders', 'name' => 'List Order', 'url' => '/customers/orders', 'sort_order' => 1],
|
||||
['slug' => 'customers-active', 'name' => 'Aktif', 'url' => '/customers/active', 'sort_order' => 2],
|
||||
['slug' => 'customers-inactive', 'name' => 'Tidak Aktif', 'url' => '/customers/inactive', 'sort_order' => 3],
|
||||
['slug' => 'customers-unmanaged', 'name' => 'Unmanage', 'url' => '/customers/unmanaged', 'sort_order' => 4],
|
||||
['slug' => 'customers-trash', 'name' => 'Sampah', 'url' => '/customers/trash', 'sort_order' => 5],
|
||||
] as $item) {
|
||||
MenuList::updateOrCreate(
|
||||
['slug' => $item['slug']],
|
||||
[
|
||||
'parent_id' => $customers->id,
|
||||
'name' => $item['name'],
|
||||
'url' => $item['url'],
|
||||
'icon' => 'cil-user',
|
||||
'component' => null,
|
||||
'sort_order' => $item['sort_order'],
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$billing = MenuList::updateOrCreate(
|
||||
['slug' => 'billing'],
|
||||
[
|
||||
'parent_id' => null,
|
||||
'name' => 'Tagihan',
|
||||
'url' => null,
|
||||
'icon' => 'cil-description',
|
||||
'component' => null,
|
||||
'sort_order' => 7,
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
|
||||
foreach ([
|
||||
['slug' => 'billing-profiles', 'name' => 'Profile Tagihan', 'url' => '/billing/profiles', 'sort_order' => 1],
|
||||
['slug' => 'billing-running', 'name' => 'Tagihan Berjalan', 'url' => '/billing/running', 'sort_order' => 2],
|
||||
['slug' => 'billing-overdue', 'name' => 'Tunggakan', 'url' => '/billing/overdue', 'sort_order' => 3],
|
||||
['slug' => 'billing-paid', 'name' => 'Lunas', 'url' => '/billing/paid', 'sort_order' => 4],
|
||||
] as $item) {
|
||||
MenuList::updateOrCreate(
|
||||
['slug' => $item['slug']],
|
||||
[
|
||||
'parent_id' => $billing->id,
|
||||
'name' => $item['name'],
|
||||
'url' => $item['url'],
|
||||
'icon' => 'cil-dollar',
|
||||
'component' => null,
|
||||
'sort_order' => $item['sort_order'],
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$topology = MenuList::updateOrCreate(
|
||||
['slug' => 'topology'],
|
||||
[
|
||||
'parent_id' => null,
|
||||
'name' => 'Topologi',
|
||||
'url' => null,
|
||||
'icon' => 'cil-layers',
|
||||
'component' => null,
|
||||
'sort_order' => 8,
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
|
||||
foreach ([
|
||||
['slug' => 'topology-map', 'name' => 'Peta Jaringan', 'url' => '/topology/map', 'icon' => 'cil-location-pin', 'sort_order' => 1],
|
||||
['slug' => 'topology-devices', 'name' => 'Perangkat', 'url' => '/topology/devices', 'icon' => 'cil-settings', 'sort_order' => 2],
|
||||
['slug' => 'topology-links', 'name' => 'Jalur Kabel', 'url' => '/topology/links', 'icon' => 'cil-layers', 'sort_order' => 3],
|
||||
['slug' => 'topology-network', 'name' => 'Topologi Jaringan', 'url' => '/topology/network', 'icon' => 'cil-grid', 'sort_order' => 4],
|
||||
['slug' => 'topology-device-types', 'name' => 'Kategori Perangkat', 'url' => '/topology/device-types', 'icon' => 'cil-list', 'sort_order' => 5],
|
||||
] as $item) {
|
||||
MenuList::updateOrCreate(
|
||||
['slug' => $item['slug']],
|
||||
[
|
||||
'parent_id' => $topology->id,
|
||||
'name' => $item['name'],
|
||||
'url' => $item['url'],
|
||||
'icon' => $item['icon'],
|
||||
'component' => null,
|
||||
'sort_order' => $item['sort_order'],
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
$notifications = MenuList::updateOrCreate(
|
||||
['slug' => 'notifications-service'],
|
||||
[
|
||||
'parent_id' => null,
|
||||
'name' => 'Notifikasi',
|
||||
'url' => null,
|
||||
'icon' => 'cil-bell',
|
||||
'component' => null,
|
||||
'sort_order' => 9,
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
|
||||
foreach ([
|
||||
['slug' => 'notifications-broadcasts', 'name' => 'Pesan Siaran', 'url' => '/notifications-service/broadcasts', 'icon' => 'cil-speech', 'sort_order' => 1],
|
||||
['slug' => 'notifications-system', 'name' => 'Notifikasi Aplikasi', 'url' => '/notifications-service/system', 'icon' => 'cil-bell', 'sort_order' => 2],
|
||||
['slug' => 'notifications-wa-official', 'name' => 'WhatsApp Official', 'url' => '/notifications-service/whatsapp-official', 'icon' => 'cil-comment-square', 'sort_order' => 3],
|
||||
['slug' => 'notifications-wa-unofficial', 'name' => 'WhatsApp Unofficial', 'url' => '/notifications-service/whatsapp-unofficial', 'icon' => 'cil-comment-square', 'sort_order' => 4],
|
||||
['slug' => 'notifications-email', 'name' => 'Email', 'url' => '/notifications-service/email', 'icon' => 'cil-envelope-open', 'sort_order' => 5],
|
||||
['slug' => 'notifications-telegram', 'name' => 'Telegram', 'url' => '/notifications-service/telegram', 'icon' => 'cil-arrow-right', 'sort_order' => 6],
|
||||
] as $item) {
|
||||
MenuList::updateOrCreate(
|
||||
['slug' => $item['slug']],
|
||||
[
|
||||
'parent_id' => $notifications->id,
|
||||
'name' => $item['name'],
|
||||
'url' => $item['url'],
|
||||
'icon' => $item['icon'],
|
||||
'component' => null,
|
||||
'sort_order' => $item['sort_order'],
|
||||
'is_active' => true,
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user