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

Impact Voucher

Voucher Number:   {{$model['model'][0]->voucher_number ? $model['model'][0]->voucher_number : '-'}}

Narration:   {{$model['model'][0]->detail_remarks ? $model['model'][0]->detail_remarks : '-'}}

@php $totalDebit = 0; $totalCredit = 0; @endphp @foreach ($model['model'] as $index => $item) @if (isset($item)) @php $totalDebit += $item->debit ? $item->debit : 0; $totalCredit += $item->credit ? $item->credit : 0; @endphp @endif @endforeach
SR# Date Account Sub Ledger Debit Credit
{{ $index + 1 }} {{ date('d-M-Y',strtotime($item->voucher_date)) }} {{ $item->account_title ?? '-' }} {{ $item->subledger_title ?? '-' }} {{ $item->debit ? number_format($item->debit,2) : '-' }} {{ $item->credit ? number_format($item->credit,2) : '-' }}
Total {{number_format($totalDebit,2)}} {{number_format($totalCredit,2)}}
 

Printed On: {{date('d-m-Y h:i:s A')}} by {{Auth::User()->name}}

@endsection