@extends('layouts.horizontal', ['title' => 'Account Voucher', 'topbarTitle' => 'Account Voucher', 'nonav' => true]) @section('styles') @endsection @section('content')
Business Logo

{{ $account_voucher->account_voucher_type }}

Branch {{ $account_voucher->business->business_name }}
Voucher Date {{ $account_voucher->voucher_date }}
Voucher No {{ $account_voucher->id_account_vouchers }}
@if($account_voucher->account_voucher_type == 'Payment Voucher') PAYMENT MADE TO: @elseif($account_voucher->account_voucher_type == 'Receive Voucher') PAYMENT RECEIVED FROM: @else TRANSACTION WITH: @endif {{ $account_voucher->business_partner_name }}
ON ACCOUNT OF: {{ $account_voucher->description }}
@php $debit_total = 0; $credit_total = 0; @endphp @foreach($details as $detail) @php $debit_total += $detail->debit; $credit_total += $detail->credit; @endphp @endforeach
Tran.# Folio/Code Head Name Remarks Inst.# Debit ({{ config('constants.CURRENCY') }}) Credit ({{ config('constants.CURRENCY') }})
{{ $detail->id_account_voucher_detail }} {{ $detail->account_hierarchy }} {{ $detail->account_head }} {{ $detail->detail_remarks }} {{ $detail->instrument_number }} {{ number_format($detail->debit, 2) }} {{ number_format($detail->credit, 2) }}
Total {{ number_format($debit_total, 2) }} {{ number_format($credit_total, 2) }}

-----------------------------

Prepared By

-----------------------------

Checked By

-----------------------------

Authorized By

-----------------------------

Received/Paid By

@endsection @section('scripts') @endsection