feat: add 'Belanja' navigation item with shopping bag icon and permission check

This commit is contained in:
Yoga Pangestu 2026-06-30 17:20:02 +07:00
parent c2dbbf57ba
commit 9a0e7f552b

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { Link, usePage } from '@inertiajs/vue3';
import { CalendarDays, Clock, ShoppingCart } from '@lucide/vue';
import { CalendarDays, Clock, ShoppingBag, ShoppingCart } from '@lucide/vue';
import { useCan } from '@/composables/useCan';
import admin from '@/routes/admin';
@ -16,6 +16,12 @@ interface NavItem {
}
const navItems: NavItem[] = [
{
title: 'Belanja',
href: admin.manage.purchases.index.url(),
icon: ShoppingBag,
permission: 'purchases.view',
},
{
title: 'Pesanan',
href: admin.manage.orders.index.url(),