@extends( 'layouts.app' ) @section('title') Chart of Account Detail @stop @section('breadcrumb') @stop @section('css') @endsection @section('content')
Customize Report
@if($errors->has('date_range')) {{ $errors->first('date_range') }} @endif

{{env('APP_NAME')}}

General Ledger

{{date('M d,Y',strtotime($from))}} - {{date('M d,Y',strtotime($to))}}

{{$account->number}} - {{$account->name}} ({{$account->type ? $account->type->name : '' }})


@if($account->type->name == 'Bank' || $account->type->name == 'Fixed Asset' || $account->type->name == 'Other CurrentAsset' || $account->type->name == 'Other Asset' || $account->type->name == 'Non-Current Asset' || $account->type->name == 'Expense' || $account->type->name == 'Direct Cost' || $account->type->name == 'Income') @foreach($entries as $entry) @if($balance < 0) @else @endif @endforeach @if($balance < 0) @else @endif
Date Voucher No Cheque No Party Narration Debit Credit Balance
  Opening Balance {{$balance != 0? number_format($balance) : '-'}}
   {{date('d/m/Y',strtotime($entry->date))}} @if($entry->voucher_type == \App\GeneralJournalEntry::CRV) CRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BRV) BRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::CPV) CPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BPV) BPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::JV) JV-{{$entry->voucher_no}} @else @endif {{$entry->cheaque_no }}    {{$entry->controlAccount ? $entry->controlAccount->name : ''}}  {{$entry->memo}} {{$entry->amount > 0 ? number_format(abs($entry->amount)) : ''}} {{$entry->amount < 0 ? number_format(abs($entry->amount)) : ''}} ({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
Grand Total {{$debit !=0 ? number_format($debit) : '-'}} {{$credit !=0 ? number_format($credit) : '-'}}({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
@elseif($account->type->name == 'Accounts Receivable') @foreach($entries as $entry) @if($balance < 0) @else @endif @endforeach @if($balance < 0) @else @endif
DATE Voucher # Cheque No CUSTOMER Narration Debit Credit Balance
  Opening Balance {{$balance != 0 ? number_format($balance) : '-'}}
{{date('d/m/Y',strtotime($entry->date))}} @if($entry->voucher_type == \App\GeneralJournalEntry::CRV) CRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BRV) BRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::CPV) CPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BPV) BPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::JV) JV-{{$entry->voucher_no}} @else @endif {{$entry->cheaque_no }} {{$entry->controlAccount ? $entry->controlAccount->name : ''}} {{$entry->memo}} {{$entry->amount > 0 ? number_format(abs($entry->amount)) : ''}} {{$entry->amount < 0 ? number_format(abs($entry->amount)) : ''}} ({{number_format(abs($balance))}}){{$balance > 0 ? number_format($balance) : '-'}}
Grand Total {{$debit !=0 ? number_format($debit) : '-'}} {{$credit !=0 ? number_format($credit) : '-'}}({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
@elseif($account->type->name == 'Accounts Payable') @foreach($entries as $entry) @if($balance < 0) @else @endif @endforeach @if($balance < 0) @else @endif
DATE VOUCHER # Cheque No VENDOR Narration Debit Credit Balance
  Opening Balance {{$balance != 0? number_format($balance) : '-'}}
{{date('d/m/Y',strtotime($entry->date))}} @if($entry->voucher_type == \App\GeneralJournalEntry::CRV) CRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BRV) BRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::CPV) CPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BPV) BPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::JV) JV-{{$entry->voucher_no}} @else @endif {{$entry->cheaque_no }} {{$entry->controlAccount ? $entry->controlAccount->name : ''}} {{$entry->memo}} {{$entry->amount > 0 ? number_format(abs($entry->amount)) : ''}} {{$entry->amount < 0 ? number_format(abs($entry->amount)) : ''}} ({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
Grand Total {{$debit !=0 ? number_format($debit) : '-'}} {{$credit !=0 ? number_format($credit) : '-'}}({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
@elseif($account->type->name == 'Other Current Liability' || $account->type->name == 'Long Term Liability' || $account->type->name == 'Current Liability' || $account->type->name == 'Equity') @foreach($entries as $entry) @if($balance < 0) @else @endif @endforeach @if($balance < 0) @else @endif
Date Voucher # Cheque No Payee Narration Debit Credit Balance
  Opening Balance {{$balance != 0? number_format($balance) : '-'}}
{{date('d/m/Y',strtotime($entry->date))}} @if($entry->voucher_type == \App\GeneralJournalEntry::CRV) CRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BRV) BRV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::CPV) CPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::BPV) BPV-{{$entry->voucher_no}} @elseif($entry->voucher_type == \App\GeneralJournalEntry::JV) JV-{{$entry->voucher_no}} @else @endif {{$entry->cheaque_no }} {{$entry->controlAccount ? $entry->controlAccount->name : ''}} {{$entry->memo}} {{$entry->amount > 0 ? number_format(abs($entry->amount)) : ''}} {{$entry->amount < 0 ? number_format(abs($entry->amount)) : ''}} ({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
Grand Total {{$debit !=0 ? number_format($debit) : '-'}} {{$credit !=0 ? number_format($credit) : '-'}}({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
@else 7
@endif
@permission('print-voucher')
@endpermission
@stop @section('js') @stop