@extends('layouts.master') @section('title', $title) @section('page_js') @endsection {{-- @section('action-btn')
{{ Form::open(['route' => ['trial.balance.print']]) }} {{ Form::close() }}
{{ Form::open(['route' => ['trial.balance.export']]) }} {{ Form::close() }}
@endsection --}} @section('content')
@php $user = auth()->user(); @endphp
{{--
--}} @php $totalCredit = 0; $totalDebit = 0; @endphp @foreach ($totalAccounts as $type => $accounts) @php $local_total_credit = 0; $local_total_debit = 0; @endphp {{-- @foreach ($accounts as $key => $record) @php $totalDebit += $record['totalDebit']; $totalCredit += $record['totalCredit']; $local_total_credit += $record['totalCredit']; $local_total_debit += $record['totalDebit']; @endphp @endforeach {{-- --}} @endforeach @if ($totalAccounts != []) @endif
{{ __('Account') }}
{{ __('Debit') }}
{{ __('Credit') }}

{{ $type }}

Total {{ number_format($totalDebit, 2) }} {{ number_format($totalCredit, 2) }}
@endsection @push('script-page') @endpush