@extends('layouts.app') @section('title') Trial Balance Detail @stop @section('css') @stop @section('content')
Customize Report
@if($errors->has('date_range')) {{ $errors->first('date_range') }} @endif

{{env('APP_NAME')}}

{{$account->number}} - {{$account->name}} - Ledger

As of {{date('M d,Y')}}
@if($balance < 0) @else @endif @foreach($transactions as $t) @if($t->account->type->name == 'Other Current Liability' || $t->account->type->name == 'Long Term Liability' || $t->account->type->name == 'Current Liability' || $t->account->type->name == 'Equity') @if($t->amount > 0) @else @endif @else @endif @if($balance < 0) @else @endif @endforeach
Date Voucher # Name Narration Debit Credit Balance
{{number_format($balance)}}{{number_format($balance)}}
{{date('d/m/Y',strtotime($t->date))}} @if($t->voucher_type == \App\GeneralJournalEntry::CRV) CRV-{{$t->voucher_no}} @elseif($t->voucher_type == \App\GeneralJournalEntry::BRV) BRV-{{$t->voucher_no}} @elseif($t->voucher_type == \App\GeneralJournalEntry::CPV) CPV-{{$t->voucher_no}} @elseif($t->voucher_type == \App\GeneralJournalEntry::BPV) BPV-{{$t->voucher_no}} @elseif($t->voucher_type == \App\GeneralJournalEntry::JV) JV-{{$t->voucher_no}} @endif {{$t->controlAccount ? $t->controlAccount->name : ''}} {{$t->memo}} {{$t->amount > 0 ? number_format(abs($t->amount)) : ''}} {{$t->amount < 0 ? number_format(abs($t->amount)) : ''}} {{number_format($balance)}}{{number_format($balance)}}
Total:   {{number_format($debit)}} {{number_format($credit)}} {{number_format($balance)}}
@stop @section('js') @stop