1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Refactored payment methods display

This commit is contained in:
Benjamin Beganović 2024-02-20 17:10:35 +01:00
parent 4fbbf52c4e
commit 68a0db8725

View File

@ -1,9 +1,11 @@
<div>
<h1 class="text-2xl">{{ ctrans('texts.payment_methods') }}</h1>
@foreach($methods as $method)
<button wire:click="handleSelect('{{ $method['company_gateway_id'] }}', '{{ $method['gateway_type_id'] }}')">
{{ $method['label'] }}
</button>
@endforeach
<div class="flex flex-col space-y-3 my-3">
@foreach($methods as $method)
<button class="flex items-center justify-between mb-4 bg-white rounded px-6 py-4 shadow-sm border" wire:click="handleSelect('{{ $method['company_gateway_id'] }}', '{{ $method['gateway_type_id'] }}')">
{{ $method['label'] }}
</button>
@endforeach
</div>
</div>