ultimatepos/Modules/Accounting/Resources/views/integrations/sell_installment_action.blade.php

19 lines
907 B
PHP

@if(!empty($existingPlan))
<a href="{{ route('accounting.installments') }}"
class="tw-dw-btn tw-dw-btn-info tw-text-white no-print" target="_blank">
<i class="fas fa-calendar-check"></i> @lang('accounting::lang.view_installment_plan')
</a>
@elseif(!empty($isEligible))
<form action="{{ route('accounting.createInstallmentFromSell', $transaction->id) }}"
method="POST"
class="no-print"
style="display:inline-block;"
onsubmit="return confirm('@lang('accounting::lang.confirm_create_installment_plan')');">
@csrf
<input type="hidden" name="installment_count" value="{{ (int) $transaction->pay_term_number }}">
<button type="submit" class="tw-dw-btn tw-dw-btn-warning tw-text-white">
<i class="fas fa-calendar-plus"></i> @lang('accounting::lang.create_installment_plan')
</button>
</form>
@endif