@extends('admin.layouts.app') @section('title', 'Voucher Details') @section('page_title', 'Voucher Details') @section('content')
Voucher: {{ $voucher->voucher_no }}
Print Edit Back

{{ $companyName }}

@if($companyAddress)

{{ $companyAddress }}

@endif

@if($voucher->type == 'credit') MONEY RECEIPT @elseif($voucher->type == 'debit' && $voucher->party_type == 'expenses') EXPENSE VOUCHER @else PAYMENT VOUCHER @endif

Voucher No: {{ $voucher->voucher_no }} | Date: {{ date('d-m-Y', strtotime($voucher->date)) }}

@if($sale && $sale->branch) @endif @if($party && $voucher->party_type == 'customer' && property_exists($party, 'phone')) @endif @if($voucher->category) @endif
Party Type {{ ucfirst($voucher->party_type) }}
Party Name {{ $party->name ?? $voucher->party_name ?? '-' }}
Branch {{ $sale->branch->name }}
Phone {{ $party->phone ?? '-' }}
Category {{ $voucher->category }}
@if($sale) @endif
Voucher Type @if($voucher->type == 'credit') Credit (Received) @elseif($voucher->type == 'debit' && $voucher->party_type == 'expenses') Expense @else Debit (Paid) @endif
Payment Method {{ $paymentMethod }}
Invoice No {{ $sale->invoice_no }}
@if($voucher->type == 'credit')
Received Amount
{{ number_format($voucher->received_amount ?? 0, 2) }}
@if($voucher->discount > 0)
Discount
{{ number_format($voucher->discount, 2) }}
@endif @if($voucher->tds > 0)
TDS
{{ number_format($voucher->tds, 2) }}
@endif @if($voucher->vds > 0)
VDS
{{ number_format($voucher->vds, 2) }}
@endif
Total Amount
{{ number_format($voucher->amount, 2) }}
@else
Amount
{{ number_format($voucher->amount, 2) }}
@if($voucher->received_amount > 0)
Received / Paid
{{ number_format($voucher->received_amount, 2) }}
@endif @endif
@if($cleanDesc)

{{ $cleanDesc }}

@endif

Received By

Authorised Signatory

@endsection