@extends('layouts.portal') @section('title', __($definition['label'])) @section('content')
@include('partials.portal-header')

{{ __(strtoupper($definition['eyebrow'])) }}

{{ __($definition['label']) }}

{{ $module === 'sales' ? __('Quotations, invoices, point of sale and customer collections.') : __('Purchase orders, goods receipts, supplier invoices and payments.') }}

@php $cards = collect($definition['sections']) ->where('key', '!=', 'overview') ->map(fn (array $section): array => [ 'label' => $section['label'], 'description' => $section['description'] ?? '', 'url' => route($definition['section_route'], $section['key']), ]) ->all(); @endphp @include('accounting._cards', ['cards' => $cards, 'label' => __($definition['label'])])
@endsection