@php
    $isEdit = isset($voucher);
@endphp
<div class="d-flex gap-2 flex-shrink-0 flex-wrap voucher-form-actions">
    <a href="{{ route('vouchers.index', $voucherType) }}" class="btn btn-outline-secondary">Cancel</a>
    <a href="{{ route('vouchers.create', $voucherType) }}" class="btn btn-outline-secondary">
        <i class="bi bi-eraser me-1"></i>Clear
    </a>
    <button type="submit" name="save_action" value="save_and_new" class="btn btn-outline-primary" id="saveNewBtn">
        <i class="bi bi-plus-circle me-1"></i>Save &amp; New
    </button>
    <button type="submit" name="save_action" value="save" class="btn btn-primary px-4" id="saveBtn">
        <i class="bi bi-floppy me-1"></i>
        @if($approvalReq)
            {{ $isEdit ? 'Save Changes' : 'Save as Draft' }}
        @else
            {{ $isEdit ? 'Update & Post' : 'Save & Post' }}
        @endif
    </button>
</div>
