@extends('dashboard.layouts.app') @section('title', __('dashboard.Accounts')) @section('page_heading', __('dashboard.Accounts')) @section('breadcrumb') @endsection @section('content')

{{ __('dashboard.Accounts') }}

{{ __('dashboard.Create New Account') }}
{{ __('dashboard.Reset') }}
@if($accounts->isEmpty())
{{ __('dashboard.No Data') }}
@else
@foreach ($accounts as $account) @endforeach
{{ __('dashboard.Code') }} {{ __('dashboard.Name') }} {{ __('dashboard.Type') }} {{ __('dashboard.Parent Account') }} {{ __('dashboard.Currency') }} {{ __('dashboard.Initial Balance') }} {{ __('dashboard.Current Balance') }} {{ __('dashboard.Actions') }}
{{ $account->code }} {{ $account->name }} {{ $account->is_main ? __('dashboard.Main Account') : __('dashboard.Sub Account') }} {{ $account->parent ? $account->parent->name : '-' }} {{ $account->currency->code }} {{ number_format($account->initial_balance, $account->currency->precision ?? 2) }} {{ $account->currency->symbol }} {{ number_format($account->balance, $account->currency->precision ?? 2) }} {{ $account->currency->symbol }}
{{ $accounts->withQueryString()->links() }} @endif

@if ($mainAccounts->isNotEmpty())
@foreach ($mainAccounts as $mainAccount) @endforeach
{{ __('dashboard.Code') }} {{ __('dashboard.Name') }} {{ __('dashboard.Currency') }}
{{ $mainAccount->code }} {{ $mainAccount->name }} {{ $mainAccount->currency->code }}
@else
{{ __('dashboard.No Data') }}
@endif
@endsection @section('scripts') @endsection