@extends('garage.layouts.app') @section('title', 'Edit ' . ucfirst($voucher->voucher_type) . ' Voucher') @push('styles') @endpush @section('content')
Edit {{ ucfirst($voucher->voucher_type) }} Voucher
Back to View
@csrf @method('PUT')
Voucher number cannot be changed
@error('voucher_date')
{{ $message }}
@enderror
@error('reference_no')
{{ $message }}
@enderror
Status: {{ ucfirst($voucher->status) }}
@if(in_array($voucher->voucher_type, ['receipt', 'payment']))
@error('cheque_no')
{{ $message }}
@enderror
@error('cheque_date')
{{ $message }}
@enderror
@error('cheque_bank')
{{ $message }}
@enderror
@endif
@error('narration')
{{ $message }}
@enderror
Transaction Lines
# Ledger Account Sub-ledger Type Amount Narration Action
Total Debit: PKR 0.00
Total Credit: PKR 0.00
Balance: PKR 0.00
@if($errors->has('amount'))
{{ $errors->first('amount') }}
@endif
Cancel
@endsection @push('scripts') @endpush