From b91449f7274c0f2f698f1f972bb06adab4eb1840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sun, 15 Aug 2021 15:47:01 +0200 Subject: [PATCH] Add option to pass `disabled` to `pay_now` component --- .../views/portal/ninja2020/gateways/includes/pay_now.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/portal/ninja2020/gateways/includes/pay_now.blade.php b/resources/views/portal/ninja2020/gateways/includes/pay_now.blade.php index ea005a0cb8cd..74f8189f811b 100644 --- a/resources/views/portal/ninja2020/gateways/includes/pay_now.blade.php +++ b/resources/views/portal/ninja2020/gateways/includes/pay_now.blade.php @@ -4,7 +4,8 @@ type="{{ $type ?? 'button' }}" id="{{ $id ?? 'pay-now' }}" @isset($data) @foreach($data as $prop => $value) data-{{ $prop }}="{{ $value }}" @endforeach @endisset - class="button button-primary bg-primary {{ $class ?? '' }}"> + class="button button-primary bg-primary {{ $class ?? '' }}" + {{ isset($disabled) && $disabled === true ? 'disabled' : '' }}>