@extends('layouts.app') @section('title', __('Chart of Accounts')) @section('content')
@include('reports.partials.header', ['title' => __('Chart of Accounts'), 'period' => __('As of').' '.\App\Support\DualDate::format(now(), 'Y-m-d')])
@foreach($accounts as $account) @endforeach
{{ __('Group') }}{{ __('Account Name') }}{{ __('Type') }}{{ __('Debit') }}{{ __('Credit') }}
{{ $account['group'] }}{{ $account['name'] }}{{ $account['type'] }}{{ $account['debit'] ? number_format($account['debit'], 2).' '.$moneyCode : '-' }}{{ $account['credit'] ? number_format($account['credit'], 2).' '.$moneyCode : '-' }}
{{ __('Total') }}{{ number_format($accounts->sum('debit'), 2) }} {{ $moneyCode }}{{ number_format($accounts->sum('credit'), 2) }} {{ $moneyCode }}
@if(!empty($appSettings['report_footer']))

{{ $appSettings['report_footer'] }}

@endif @endsection