@extends('layout.main') @section('content')

Trial Balance

Filter by Date Range

@if($trialBalanceData)

Trial Balance

For the period from {{ Carbon\Carbon::parse($startDate)->format('F d, Y') }} to {{ Carbon\Carbon::parse($endDate)->format('F d, Y') }}

@foreach($trialBalanceData['accounts'] as $item) @endforeach
Account Debit ({{ getCurrencyCode() }}) Credit ({{ getCurrencyCode() }})

{{ $item['account']->account_name }}

{{ $item['account']->account_code }}

@if($item['debits'] > 0) {{ formatAmount($item['debits']) }} @else - @endif @if($item['credits'] > 0) {{ formatAmount($item['credits']) }} @else - @endif
TOTAL {{ formatAmount($trialBalanceData['total_debits']) }} {{ formatAmount($trialBalanceData['total_credits']) }}
@if($trialBalanceData['total_debits'] == $trialBalanceData['total_credits']) Trial Balance is balanced! Debits equal Credits. @else Trial Balance is not balanced! Difference: {{ formatAmount(abs($trialBalanceData['total_debits'] - $trialBalanceData['total_credits'])) }} @endif
@else

No data to display

Please select a date range to generate the Trial Balance report.

@endif
@endsection