@extends('layouts.dashboard') @section('title', __('Trial Balance')) @section('page_title', __('Trial Balance')) @section('content') @include('accounting::partials.nav', ['active' => 'report-tb'])
{{ __('Trial Balance') }} {{ \Carbon\Carbon::parse($from)->format('d M Y') }} – {{ \Carbon\Carbon::parse($to)->format('d M Y') }}
{{ __('Export CSV') }}
@include('accounting::partials.range')
@php($cls = null) @forelse($rows as $r) @if($cls !== $r->account->class) @php($cls = $r->account->class) @endif @empty @endforelse
{{ __('Code') }}{{ __('Account') }}{{ __('Opening') }}{{ __('Debit') }}{{ __('Credit') }}{{ __('Closing') }}
{{ $cls }}
{{ $r->account->code }} {{ __($r->account->name) }} {{ money_signed($r->opening) }} {{ money_blank($r->debit) }} {{ money_blank($r->credit) }} {{ money_signed($r->closing) }}
{{ __('No activity in this range.') }}
{{ __('Period totals') }} {{ money($totals['debit']) }} {{ money($totals['credit']) }} @if(abs($totals['debit'] - $totals['credit']) < 0.005){{ __('In balance') }} @else{{ __('Out by') }} {{ money(abs($totals['debit'] - $totals['credit'])) }}@endif
@endsection