@extends('layouts.master') @section('title', 'Receive Voucher Invoice') @push('style') @endpush @section('content')
@if(file_exists('uploads/company/'. optional($voucher->company)->logo)) @endif

{{ optional($voucher->company)->name ?? '' }}

{{ optional($voucher->company)->head_office }}
Email: {{ optional($voucher->company)->email }}
Phone: {{ optional($voucher->company)->phone_number }}

@if(!empty($voucher->v_payment_type)) {{ $voucher->v_payment_type }} @endif Receive Voucher

Invoice No: {{ $voucher->invoice_no }}
@if(!empty($voucher->reference)) Reference: {{ $voucher->reference }}
@endif Date : {{ $voucher->date }}
@foreach($voucher->details ?? [] as $item) @endforeach @php $totalAmount = $voucher->details->sum('amount') > 0 ? $voucher->details->sum('amount') / 2 : 0; @endphp
Sl Account Debit Credit
{{ $loop->iteration }} {{ optional($item->account)->name }}
@if(optional($item)->voucher_description) ( {{ $item->voucher_description }} ) @endif
@if($item->balance_type == 'Debit') {{ number_format($item->amount, 2) }} @endif @if($item->balance_type == 'Credit') {{ number_format($item->amount, 2) }} @endif
Total : {{ number_format($totalAmount, 2) }} {{ number_format($totalAmount, 2) }}
@if(!empty($voucher->description))
In words: {{ convert_number($totalAmount) . ' TK Debit & ' . convert_number($totalAmount) . ' TK Credit.' }}

Note

{{ $voucher->description }}

@endif
{{ optional($voucher->created_user)->name }}
Prepared By

Accountant By

Approved By

Received By
@endsection