@extends('admin.accounting._layout')

@php $reportTitle = 'Accounting'; @endphp

@section('accounting_content')
<div class="hub-page">
    <div class="hub-page__header">
        <h1 class="hub-page__title">Books of Accounts</h1>
        <p class="hub-page__subtitle">Cash books, ledgers, profit &amp; loss, inventory and outstanding balances</p>
    </div>
    <div class="hub-page__body">
        <h3 class="hub-help__title mb-3">
            <i class="ri-information-line"></i>
            About accounting features
        </h3>
        <div class="hub-feature-grid mb-4">
            @php
                $featureIcons = [
                    'Cash Book / Petty Cash Report' => 'ri-wallet-3-line',
                    'Item Stock Ledger Report' => 'ri-stack-line',
                    'Item Amount Ledger Report' => 'ri-money-rupee-circle-line',
                    'Profit & Loss Statement Report' => 'ri-line-chart-line',
                    'Inventory Book' => 'ri-book-2-line',
                ];
            @endphp
            @foreach(config('accounting.about_features', []) as $feature)
                <div class="hub-feature-card">
                    <div class="hub-feature-card__icon">
                        <i class="{{ $featureIcons[$feature['title']] ?? 'ri-file-list-3-line' }}"></i>
                    </div>
                    <h6>{{ $feature['title'] }}</h6>
                    <p>{{ $feature['text'] }}</p>
                </div>
            @endforeach
        </div>
        @include('partials.admin.module-hub.help', [
            'title' => 'Getting started',
            'items' => [
                'Pick a report from the menu on the left.',
                'Set your date range (or select an item for ledgers).',
                'Click Apply to preview data, then Export Excel for your records.',
            ],
        ])
    </div>
</div>
@endsection
