You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
4.0 KiB
JavaScript

1 year ago
import {
HiChartPie,
HiUser,
HiUsers,
HiUserGroup,
HiInformationCircle,
1 year ago
HiCog,
1 year ago
} from 'react-icons/hi'
1 year ago
import {
HiBanknotes,
1 year ago
HiCheckBadge,
HiCreditCard,
HiCurrencyDollar,
1 year ago
HiMap,
1 year ago
HiOutlineCurrencyDollar,
1 year ago
HiOutlineGlobeAlt,
HiQuestionMarkCircle,
HiTicket,
1 year ago
HiUserCircle,
} from 'react-icons/hi2'
export default [
{
2 years ago
name: 'Dashboard',
show: true,
icon: HiChartPie,
2 years ago
route: route('dashboard'),
active: 'dashboard',
permission: 'view-dashboard',
},
1 year ago
{
name: 'Lokasi',
show: true,
icon: HiMap,
route: route('location.index'),
active: 'location.*',
permission: 'view-location',
},
{
name: 'Voucher',
show: true,
icon: HiTicket,
route: route('voucher.index'),
active: 'voucher.*',
permission: 'view-voucher',
},
1 year ago
{
name: 'Sale', //TODO
show: true,
icon: HiCreditCard,
route: route('deposit.index'),
active: 'deposit.*',
permission: 'view-deposit',
},
{
name: 'Deposit',
show: true,
icon: HiCurrencyDollar,
route: route('deposit.index'),
active: 'deposit.*',
permission: 'view-deposit',
},
{
name: 'Coin Rewards', //TODO
show: true,
icon: HiOutlineCurrencyDollar,
route: route('voucher.index'),
active: 'voucher.*',
permission: 'view-voucher',
},
1 year ago
{
1 year ago
name: 'Front Home',
1 year ago
show: true,
1 year ago
icon: HiOutlineGlobeAlt,
items: [
{
name: 'Banner',
show: true,
icon: HiInformationCircle,
route: route('banner.index'),
active: 'banner.*',
permission: 'view-banner',
},
{
name: 'Info',
show: true,
icon: HiQuestionMarkCircle,
route: route('info.index'),
active: 'info.index',
permission: 'view-info',
},
],
},
{
name: 'Customer',
show: true,
icon: HiUser,
items: [
1 year ago
{
name: 'Verification', //TODO
show: true,
icon: HiCheckBadge,
route: route('customer.index'),
active: 'customer.*',
permission: 'view-customer',
},
{
name: 'Customer',
show: true,
icon: HiUserCircle,
route: route('customer.index'),
active: 'customer.*',
permission: 'view-customer',
},
{
name: 'Level',
show: true,
icon: HiUserCircle,
route: route('customer-level.index'),
active: 'customer-level.*',
permission: 'view-customer-level',
},
],
},
{
2 years ago
name: 'User',
show: true,
icon: HiUser,
items: [
{
2 years ago
name: 'Roles',
show: true,
icon: HiUserGroup,
2 years ago
route: route('roles.index'),
active: 'roles.*',
permission: 'view-role',
},
{
2 years ago
name: 'Users',
show: true,
icon: HiUsers,
2 years ago
route: route('user.index'),
active: 'user.index',
permission: 'view-user',
},
],
},
{
name: 'Bank Akun',
show: true,
icon: HiBanknotes,
route: route('account.index'),
active: 'account.*',
permission: 'view-account',
},
{
name: 'Setting',
show: true,
icon: HiCog,
route: route('setting.index'),
active: 'setting.*',
permission: 'view-setting',
},
2 years ago
]