{{-- @extends('layouts.master') @section('content')
Print {{ $voucherNumber->voucher_type }}

Print {{ $voucherNumber->voucher_type }}

Voucher Number #: {{ $voucherNumber->voucher_number }}
Voucher Date: {{ date('d-m-Y', strtotime($voucherNumber->created_at)) }}
Voucher Type: {{ $voucherNumber->voucher_type }}
Business Partner: {{ $voucherNumber->vouchers->first()->partner_name }}
Description: {{ $voucherNumber->vouchers->first()->description }}

@foreach ($voucherNumber->vouchers as $voucher) @endforeach
S.No Account Number Account Title Payment Mode Instrument # Remarks Debit Credit
{{ $loop->iteration }} {{ $voucher->account_no }} {{ $voucher->account_title }} {{ $voucher->payment_mode }} {{ $voucher->instrument }} {{ $voucher->remarks }} {{ $voucher->debit }} {{ $voucher->credit }}
Total Debit: {{ $voucherNumber->vouchers->sum('debit') }}
Total Credit: {{ $voucherNumber->vouchers->sum('credit') }}
@endsection @push('scripts') @endpush --}} @extends('layouts.master') @push('css') @endpush @section('content')

View Voucher

Voucher Number #
{{ $voucherDetails->voucher_number }}

Voucher Date
{{ date('d-m-Y', strtotime($voucherDetails->created_at)) }}


Voucher Type: {{ $voucherDetails->voucher_type }}
Status: {{ $vou_other_detail->status }}
Business Partner: {{ $vou_other_detail->partner_name }}
Description: {{ $vou_other_detail->desciption }}

@foreach ($accountVouchers as $voucher) @endforeach
Account Number Account Title Payment Mode Instrument # Cost Center Remarks Debit Credit
{{ $voucher->account_no }} {{ $voucher->account_title }} {{ $voucher->payment_mode }} {{ $voucher->instrument }} {{ $voucher->cost_center_name }} {{ $voucher->remarks }} {{ $voucher->debit }} {{ $voucher->credit }}
Total {{ number_format($totalDebit, 2) }} {{ number_format($totalCredit, 2) }}
@endsection @push('scripts') @endpush