Date : {!! date('d/m/Y') !!}

Driver Loss Statements - {{$driver->driver}}

{{----}} {{--*/ $dr_amount = 0 /*--}} {{--*/ $cr_amount = 0 /*--}} {{--*/ $dr_total = 0 /*--}} {{--*/ $cr_total = 0 /*--}} {{--*/ $total_amount = 0 /*--}} @foreach($transactions as $transaction) @if($transaction->transaction_type == 'DR') {{--*/ $dr_amount = $transaction->amount /*--}} {{--*/ $dr_total += $transaction->amount /*--}} {{--*/ $cr_amount = 0 /*--}} @elseif($transaction->transaction_type == 'CR') {{--*/ $cr_amount = $transaction->amount /*--}} {{--*/ $cr_total += $transaction->amount /*--}} {{--*/ $dr_amount = 0 /*--}} @endif {{--*/ $total_amount += $cr_amount - $dr_amount /*--}} {{----}} @if($total_amount >= 1) @else @endif @endforeach
 Date Ref# Party Narration Dr Cr Total
 {{\Carbon\Carbon::parse($transaction->date)->day}}/{{\Carbon\Carbon::parse($transaction->date)->month}}/{{\Carbon\Carbon::parse($transaction->date)->year}} {{$transaction->journal_voucher_id}} {{$transaction->party}} {{$transaction->remarks}} {{number_format($dr_amount)}} {{number_format($cr_amount)}}{{number_format($total_amount)}}({{number_format(-1*$total_amount)}})