mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-14 22:53:30 -05:00
* make container nicer * assets rebuild * authorize powerband card (3ds) * add reference to build file * update authorize (3ds) view * assets rebuild * unify 3ds and non-3ds auth/pay * assets rebuild * authorize * pay * update vite refs * pay * hide authorize button * intercepting form on authorize * assets build * wip * init powerboard in data ref * fixes for blank placeholders * reset the form on failed 3ds * handling unsuccessful errors * send email on payment failed * fixes for 3ds fail on auth * assets rebuild * make card_name required * make card_name required (on auth) * fixes for blocked pay-now button * fixes for reload * fixes for reload * build * Fixes for broken powerboard * make client name required * skip fields checking if no required fields * on request, return json response * check for plain not_authenticated response * flash message when no action is present * fixes for exec order on token * assets build * check for plain not_authenticated response (pay) * assets build * adjustments for minimum payments * Add text decoration to terms button * Improvements for subscriptions and new payment flow --------- Co-authored-by: Benjamin Beganović <k1pstabug@gmail.com>
45 lines
2.2 KiB
PHP
45 lines
2.2 KiB
PHP
<div x-data="{ payableInvoices: @entangle('payableInvoices'), errors: @entangle('errors') }"
|
|
class="rounded-lg border bg-card text-card-foreground shadow-sm overflow-hidden px-4 py-5 bg-white sm:gap-4 sm:px-6">
|
|
|
|
<p class="font-semibold tracking-tight group flex items-center gap-2 text-lg mb-3">
|
|
{{ ctrans('texts.payment_amount') }}
|
|
</p>
|
|
|
|
<dd class="text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2 flex flex-col">
|
|
<template x-for="(invoice, index) in payableInvoices" :key="index">
|
|
|
|
<div class="flex items-center mb-2">
|
|
<label>
|
|
<span x-text="'{{ ctrans('texts.invoice') }} ' + invoice.number" class="mt-2"></span>
|
|
<span class="pr-2">{{ $currency->code }} ({{ $currency->symbol }})</span>
|
|
<input type="text" class="input mt-0 mr-4 relative" name="payable_invoices[]"
|
|
x-model="payableInvoices[index].formatted_amount" />
|
|
</label>
|
|
</div>
|
|
</template>
|
|
|
|
<template x-if="errors.length > 0">
|
|
<div x-text="errors" class="alert alert-failure mb-4"></div>
|
|
</template>
|
|
|
|
@if($settings->client_portal_allow_under_payment && $settings->client_portal_under_payment_minimum != 0)
|
|
<span class="mt-1 text-sm text-gray-800">{{ ctrans('texts.minimum_payment') }}:
|
|
{{ $settings->client_portal_under_payment_minimum }}</span>
|
|
@endif
|
|
</dd>
|
|
|
|
<div class="bg-white px-4 py-5 flex items-center w-full justify-end space-x-3">
|
|
<svg wire:loading class="animate-spin h-5 w-5 text-primary" xmlns="http://www.w3.org/2000/svg" fill="none"
|
|
viewBox="0 0 24 24">
|
|
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
<path class="opacity-75" fill="currentColor"
|
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">
|
|
</path>
|
|
</svg>
|
|
|
|
<button wire:loading.attr="disabled" wire:click="checkValue(payableInvoices)"
|
|
class="button button-primary bg-primary">
|
|
<span>{{ ctrans('texts.next') }}</span>
|
|
</button>
|
|
</div>
|
|
</div> |