@extends('layouts.master') @section('title', 'Trial Balance Entry | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.trial balance')) @section('css') @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.trial balance') }}
{{ __('basic.new entry') }} {{ __('basic.print') }} {{ __('basic.search filter') }}
{{ __('basic.trial balance') }}
{{ $company_name }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}
{{ __('basic.currency') }} {{ $system_currency->name }}
{{ __('basic.account') }} {{ __('basic.debit') }} {{ __('basic.credit') }}
@php $total_balance_debit = 0; $total_balance_credit = 0; @endphp @foreach ($accounts as $item)
{{$item->main_acc_name }}
@php $total_debit = 0; $total_credit = 0; @endphp @foreach ($item->sub_accounts as $item_acc)
{{ $item_acc->name }} @php $total_debit += $item_acc->entry_items->sum('debit_local'); @endphp {{ $item_acc->entry_items->sum('debit_local') }} @php $total_credit += $item_acc->entry_items->sum('credit_local'); @endphp {{ $item_acc->entry_items->sum('credit_local') }}
@endforeach
{{ __('basic.total') }} @php $total_balance_debit += $total_debit; $total_balance_credit += $total_credit; @endphp {{ $total_debit }} {{ $total_credit }}
@endforeach
{{ __('basic.total') }} {{ $total_balance_debit }} {{ $total_balance_credit }}
@endsection @section('js') {{-- data table --}} @endsection