@extends('layouts.app') @section('title', __('accounting::lang.trial_balance')) @section('content') @include('accounting::layouts.nav')
{!! Form::label('date_range_filter', __('report.date_range') . ':') !!} {!! Form::text('date_range_filter', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly', 'id' => 'date_range_filter']); !!}

@lang( 'accounting::lang.trial_balance')

{{@format_date($start_date)}} ~ {{@format_date($end_date)}}

@php $total_debit = 0; $total_credit = 0; @endphp @foreach($accounts as $account) @php $total_debit += $account->debit_balance; $total_credit += $account->credit_balance; @endphp @endforeach
@lang( 'accounting::lang.debit') @lang( 'accounting::lang.credit')
{{$account->name}} @if($account->debit_balance != 0) @format_currency($account->debit_balance) @endif @if($account->credit_balance != 0) @format_currency($account->credit_balance) @endif
Total @format_currency($total_debit) @format_currency($total_credit)
@stop @section('javascript') @stop