feat: Add all module frontend views
Views added: - ShiftsView (Schichtplanung) - PatrolsView (Wächterkontrolle) - IncidentsView (Vorfallberichte) - VehiclesView (Fahrzeuge) - DocumentsView (Dokumente) - CustomersView (Kunden/CRM) - BillingView (Abrechnung) - ObjectsView (enhanced with contacts, instructions) Updated: - Router with all new routes - Sidebar with complete navigation
This commit is contained in:
@@ -21,18 +21,34 @@ const navigation = computed(() => {
|
||||
]
|
||||
|
||||
if (authStore.canManageUsers) {
|
||||
items.push({ name: 'Mitarbeiter', href: '/users', icon: '👥' })
|
||||
items.push(
|
||||
{ name: 'Mitarbeiter', href: '/users', icon: '👥' },
|
||||
{ name: 'Schichtplanung', href: '/shifts', icon: '📅' }
|
||||
)
|
||||
}
|
||||
|
||||
items.push(
|
||||
{ name: 'Verfügbarkeit', href: '/availability', icon: '📅' },
|
||||
{ name: 'Verfügbarkeit', href: '/availability', icon: '🗓️' },
|
||||
{ name: 'Stundenzettel', href: '/timesheets', icon: '⏱️' },
|
||||
{ name: 'Qualifikationen', href: '/qualifications', icon: '🎓' },
|
||||
{ name: 'Objekte', href: '/objects', icon: '🏢' },
|
||||
{ name: 'Rundgänge', href: '/patrols', icon: '📍' },
|
||||
{ name: 'Vorfälle', href: '/incidents', icon: '🚨' },
|
||||
{ name: 'Dokumente', href: '/documents', icon: '📁' },
|
||||
)
|
||||
|
||||
if (authStore.canManageUsers) {
|
||||
items.push(
|
||||
{ name: 'Fahrzeuge', href: '/vehicles', icon: '🚗' },
|
||||
{ name: 'Kunden', href: '/customers', icon: '🤝' }
|
||||
)
|
||||
}
|
||||
|
||||
if (authStore.isChef) {
|
||||
items.push({ name: 'Module', href: '/modules', icon: '⚙️' })
|
||||
items.push(
|
||||
{ name: 'Abrechnung', href: '/billing', icon: '💰' },
|
||||
{ name: 'Module', href: '/modules', icon: '⚙️' }
|
||||
)
|
||||
}
|
||||
|
||||
items.push(
|
||||
|
||||
Reference in New Issue
Block a user