@extends('layouts.master') @section('content')
Payment Voucher Edit Payment Voucher

Edit Payment Voucher Back to Payment Voucher

Edit Payment Voucher

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT') @if ($errors->any())
@foreach ($errors->all() as $error) @endforeach
@endif
Voucher Information
payment_mode == 'cash' ? 'checked' : '' }} required>
payment_mode == 'bank' ? 'checked' : '' }} required>
Cheque Details
Voucher Details
@php $items = json_decode($voucher->adaegi_array, true) ?? []; @endphp @foreach ($items as $index => $item) @php $partyType = $item['party_type'] ?? 'supplier'; $partyName = match ($partyType) { 'customer' => '👤 ' . (optional(\App\Customer::find($item['adaegi_khata'])) ->customer_name ?? 'Customer #' . $item['adaegi_khata']), 'purchaser' => '🛒 ' . (optional(\App\Purchaser::find($item['adaegi_khata'])) ->purchaser_name ?? 'Purchaser #' . $item['adaegi_khata']), default => '🏭 ' . (optional(\App\Suppliers::find($item['adaegi_khata'])) ->supplier_name ?? 'Supplier #' . $item['adaegi_khata']), }; @endphp @endforeach
جمع کھاتہ Description(تفصیل) رقم Debit رقم Credit Employee Action
@if (!$loop->first) @endif
Total
Net Amount
@endsection @push('scripts') {{-- Calculate Grand Total --}} @endpush