@extends('garage.layouts.app') @section('title', 'Reports') @push('styles') @endpush @section('content')

Reports

All reports are listed here. More reports will be added as modules grow.

@php $groups = $groupedReports ?? collect()->groupBy('module'); $icons = [ 'Sales' => 'bi-cart', 'Inventory' => 'bi-boxes', 'Suppliers' => 'bi-truck', 'Customers' => 'bi-people', 'Services' => 'bi-wrench-adjustable', 'Service' => 'bi-wrench-adjustable', 'Accounting' => 'bi-calculator', 'Other' => 'bi-graph-up-arrow', ]; $order = ['Sales', 'Inventory', 'Suppliers', 'Customers', 'Services', 'Service', 'Accounting', 'Other']; $groupKeys = collect($order)->filter(fn($k) => isset($groups[$k]))->values(); if ($groupKeys->isEmpty()) { $groupKeys = collect($groups->keys())->values(); } $activeKey = $groupKeys->first() ?: 'Other'; @endphp
Tip: Use tabs to switch category.
@foreach($groupKeys as $module) @php $rows = $groups[$module] ?? collect(); @endphp
{{ $module }} reports
{{ count($rows) }} reports
@foreach(($rows ?? []) as $rep) @endforeach
@endforeach
@endsection @push('scripts') @endpush