@php
$authUser = auth()->user();
$modules = [
['name' => 'Diaries', 'icon' => 'fas fa-calendar-alt', 'route' => 'modules.processing.diary', 'feature_slug' => 'diary', 'description' => 'Plan and track diary entries, tasks, and deadlines', 'color' => 'green'],
['name' => 'Client Billing', 'icon' => 'fas fa-user', 'route' => 'modules.processing.client-billing', 'feature_slug' => 'client-invoices', 'description' => 'Process client billing, invoices, and receipts', 'color' => 'green'],
['name' => 'Supplier Invoice', 'icon' => 'fas fa-file-signature', 'route' => 'modules.processing.supplier-invoice', 'feature_slug' => 'supplier-invoices', 'description' => 'Handle vendor invoices and payment processing', 'color' => 'yellow'],
['name' => 'Cash Book', 'icon' => 'fas fa-book', 'route' => 'modules.processing.cash-book', 'feature_slug' => 'cashbook', 'description' => 'Record and manage cash transactions and receipts', 'color' => 'purple'],
['name' => 'Journal', 'icon' => 'fas fa-book-open', 'route' => 'modules.processing.journal', 'feature_slug' => 'journals', 'description' => 'Maintain accounting journals and financial entries', 'color' => 'pink'],
];
@endphp
@foreach (($modules ?? []) as $module)
@if(!$authUser?->canFeature($module['feature_slug'], 'can_view'))
@continue
@endif
{{ $module['name'] }}
{{ $module['description'] }}
@endforeach