@if(in_array($voucherType, ['bank_payment', 'bank_receipt', 'contra']))
<div class="col-12 col-sm-6 col-md-2 voucher-cheque-no-field">
    <label class="form-label fw-semibold" for="chequeNo">Cheque No</label>
    <input type="text" name="cheque_no" id="chequeNo"
           class="form-control @error('cheque_no') is-invalid @enderror"
           value="{{ old('cheque_no', isset($voucher) ? ($voucher->extra_data['cheque_no'] ?? '') : '') }}"
           placeholder="Cheque number">
    @error('cheque_no')<div class="invalid-feedback">{{ $message }}</div>@enderror
</div>
<div class="col-12 col-sm-6 col-md-2">
    <label class="form-label fw-semibold" for="chequeDate">Cheque Date</label>
    <input type="date" name="cheque_date" id="chequeDate"
           class="form-control @error('cheque_date') is-invalid @enderror"
           value="{{ old('cheque_date', isset($voucher) ? ($voucher->extra_data['cheque_date'] ?? '') : '') }}">
    @error('cheque_date')<div class="invalid-feedback">{{ $message }}</div>@enderror
</div>
@if(in_array($voucherType, ['bank_payment', 'contra']))
    @include('accounting.vouchers._cheque_register_panel')
@endif
@endif
