@extends('layouts.pdf')
@section('title')
{{ $extra['module_name'] }}
@endsection
@section('content')
@php
if ($items->type == 'general') {
foreach ($items->payment_voucher_general as $key => $item) {
$officeTotalAmount += $item->amount;
}
}
if($items->type == 'purchase_order')
{
foreach ($items->payment_voucher_po as $key => $item)
{
$officeTotalAmount += $item->amount;
}
}
@endphp
{{-- Office Copy --}}
@if (request()->get('office'))
@include('admin.partials.image-watermark')
VOUCHER TYPE: {{ $extra['module_name'] }}
Date: {{ date(config('settings.date_format'), strtotime(trim(str_replace('/', '-', $item->created_at)))) }} |
Project Name: {{ $extra['branch']->name }} |
Voucher No: {{ $extra['document_no'] }} |
|
@php $counter = 1; @endphp
OFFICE COPY
Transaction Details:
@php
$pv = $items;
$pv_type = $pv->type;
$pv_items = $pv->payment_voucher_general;
if($pv_type == 'purchase_order'){
$pv_items = $pv->payment_voucher_po;
}
@endphp
@if (!empty($pv_items))
@foreach ($pv_items as $pv_item)
@php
$amount = $pv_item->amount;
$dr_head_name = $pv_item->dr_head->name;
$cr_head_name = $pv_item->cr_head->name;
$particulars = $pv_item->particulars ?? '';
if($pv_type == 'purchase_order'){
$dr_head_name = $pv_item->purchase_order->vendor->name;
$cr_head_name = $pv->cr_head->name;
$particulars = $pv->particulars ?? '';
}
@endphp
Debit (Dr.) Section:
Account: |
{{ $dr_head_name }}
|
Amount (Dr.): |
{{ $transaction->convert_money_format($amount) }}
|
Narration (Dr.): |
{{ $particulars }} |
Credit (Cr.) Section:
Account: |
{{ $cr_head_name }}
|
Amount (Cr.): |
{{ $transaction->convert_money_format($amount) }} |
Narration (Cr.): |
{{ $particulars }} |
@endforeach
@endif
Amount |
: |
{{ $transaction->convert_money_format($officeTotalAmount) }} {!! config('settings.currency_code') !!} only
|
Amount In Words |
: |
{{ $transaction->convert_number_to_words($officeTotalAmount) }} {!! config('settings.currency_code') !!} only
|
Prepared By
|
|
Approved By
|
|
Received By
|
@endif
{{-- Client Copy --}}
@if (request()->get('client'))
@include('admin.partials.image-watermark')
VOUCHER TYPE: {{ $extra['module_name'] }}
Date: {{ date(config('settings.date_format'), strtotime(trim(str_replace('/', '-', $item->created_at)))) }} |
Project Name: {{ $extra['branch']->name }} |
Voucher No: {{ $extra['document_no'] }} |
|
@php $counter = 1; @endphp
OFFICE COPY
Transaction Details:
@if (!empty($items->payment_voucher_general))
@foreach ($items->payment_voucher_general as $value)
Debit (Dr.) Section:
Account: |
{{ App\Models\IncomeExpenseHead::find($value->income_expense_head_id)->name }}
|
Amount (Dr.): |
{{ $transaction->convert_money_format($value->amount) }}
|
Narration (Dr.): |
{{ $value->particulars ?? '' }} |
Credit (Cr.) Section:
Account: |
{{ $value->cr_head->name }}
|
Amount (Cr.): |
{{ $transaction->convert_money_format($value->amount) }} |
Narration (Cr.): |
{{ $value->particulars }} |
@endforeach
@endif
Amount |
: |
{{ $transaction->convert_money_format($officeTotalAmount) }} {!! config('settings.currency_code') !!} only
|
Amount In Words |
: |
{{ $transaction->convert_number_to_words($officeTotalAmount) }} {!! config('settings.currency_code') !!} only
|
Prepared By
|
|
Approved By
|
|
Received By
|
@endif
@stop