@extends('layouts.app') @section('title') Trial Balance Detail @stop @section('css') @stop @section('content')
Date | Voucher # | Name | Narration | Debit | Credit | Balance | |
---|---|---|---|---|---|---|---|
@if($balance < 0) | {{number_format($balance)}} | @else{{number_format($balance)}} | @endif|||||
{{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)) : ''}} | @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){{number_format($balance)}} | @else{{number_format($balance)}} | @endif
Total: | {{number_format($debit)}} | {{number_format($credit)}} | {{number_format($balance)}} |