@extends('layouts.portal')
@section('title', __($section['label']))
@section('content')
@include('partials.portal-header')
{{ __('Accounting') }}
{{ __($section['label']) }}
{{ __($section['description'] ?? '') }}
← {{ __('Overview') }}
@php
$cards = collect($section['items'])
->map(fn (array $item): array => [
'label' => $item['label'],
'description' => $item['description'] ?? '',
'url' => $item['route'] === null ? null : route($item['route']),
'count' => $counts[$item['route']] ?? null,
])
->all();
@endphp
@include('accounting._cards', ['cards' => $cards, 'label' => __($section['label'])])
@endsection