@extends( 'layouts.app' ) @section('title') Control 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')}}

Subsidiary Ledger

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

{{$account->name}} {{$account->rep_name}}

User ID:  {{Auth::user()->name}}
@if($account->file) @endif
@if($balance < 0) @else @endif @if($accountEntries) @foreach($accountEntries->entry as $entry) @if($entry->voucher_type == \App\GeneralJournalEntry::CRV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::BRV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::CPV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::BPV) @elseif($entry->voucher_type == \App\GeneralJournalEntry::JV) @else @endif @if($balance < 0) @else @endif @endforeach @endif @if($balance < 0) @else @endif
Date Voucher No. Narration Debit Credit Balance
Opening Balance ({{number_format(abs($balance))}}){{$balance > 0? number_format($balance) : '-'}}
{{date('d/m/Y',strtotime($entry->date))}}CRV-{{$entry->voucher_no}}BRV-{{$entry->voucher_no}}CPV-{{$entry->voucher_no}}BPV-{{$entry->voucher_no}}JV-{{$entry->voucher_no}} {{$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) : '-'}}
@permission('print-voucher')
@endpermission
@stop @section('js') @stop