@extends('docs.master', ['title' => 'Trial Balance']) @section('content')

Trial Balance

As On {{date('d-m-Y',strtotime($model[0]->trial_date))}}

{{$i=1}} {{--{{var_dump($model[0]->zeroed)}}--}} {{--{{dd()}}--}} @foreach($model as $item)00 @if ($item->debit-$item->credit<>0 || $model[0]->zeroed=='true') @endif @endforeach
# Account Code Account Title Account Type Debit Credit
{{$i++}} {{$item->accountcode}} {{$item->accounttitle}} {{$item->accounttypename}} @if ($item->debit >0) {{(number_format($item->debit,2))}} @else - @endif @if ($item->credit <0) {{(number_format(abs($item->credit),2))}} @else - @endif
@endsection