1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00
invoiceninja/resources/views/portal/ninja2020/layout/payments.blade.php

55 lines
2.0 KiB
PHP
Raw Normal View History

2020-10-19 23:02:18 +02:00
@extends('portal.ninja2020.layout.app')
@isset($gateway_title)
@section('meta_title', $gateway_title)
@else
@section('meta_title', ctrans('texts.pay_now'))
@endisset
@push('head')
@yield('gateway_head')
@endpush
@section('body')
@livewire('required-client-info', ['fields' => method_exists($gateway, 'getClientRequiredFields') ? $gateway->getClientRequiredFields() : [], 'contact' => auth('contact')->user(), 'countries' => $countries])
2021-01-12 15:43:07 +01:00
<div class="container mx-auto grid grid-cols-12 opacity-25 pointer-events-none" data-ref="gateway-container">
2020-10-19 23:02:18 +02:00
<div class="col-span-12 lg:col-span-6 lg:col-start-4 overflow-hidden bg-white shadow rounded-lg">
<div class="px-4 py-5 border-b border-gray-200 sm:px-6">
2020-10-19 23:49:17 +02:00
@isset($card_title)
<h3 class="text-lg font-medium leading-6 text-gray-900">
{{ $card_title }}
</h3>
@endisset
2021-01-12 15:43:07 +01:00
2020-10-19 23:49:17 +02:00
@isset($card_description)
<p class="max-w-2xl mt-1 text-sm leading-5 text-gray-500">
2020-10-19 23:02:18 +02:00
{{ $card_description }}
2020-10-19 23:49:17 +02:00
</p>
@endisset
2020-10-19 23:02:18 +02:00
</div>
<div>
@yield('gateway_content')
</div>
</div>
</div>
@endsection
@push('footer')
@yield('gateway_footer')
2021-01-12 15:43:07 +01:00
<script>
Livewire.on('passed-required-fields-check', () => {
document.querySelector('div[data-ref="required-fields-container"]').classList.add('opacity-25');
document.querySelector('div[data-ref="required-fields-container"]').classList.add('pointer-events-none');
document.querySelector('div[data-ref="gateway-container"]').classList.remove('opacity-25');
document.querySelector('div[data-ref="gateway-container"]').classList.remove('pointer-events-none');
document
.querySelector('div[data-ref="gateway-container"]')
.scrollIntoView({behavior: "smooth"});
2021-01-12 15:43:07 +01:00
});
</script>
2020-10-19 23:02:18 +02:00
@endpush