wip
This commit is contained in:
4
resources/js/vendor/nova/js/additional.js
vendored
4
resources/js/vendor/nova/js/additional.js
vendored
@@ -3,12 +3,12 @@ function csrf_token()
|
||||
return document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');
|
||||
}
|
||||
|
||||
async function fetchCardHistory(passport_serie, passport_id, card_number, card_expiry_date) {
|
||||
async function fetchCardHistory(passport_serie, passport_id, card_number, card_expiry_date, containerID) {
|
||||
if (! passport_serie || ! passport_id || ! card_number || ! card_expiry_date) {
|
||||
return;
|
||||
}
|
||||
|
||||
let cardHistoryDetailContainer = document.getElementById('card-history-details');
|
||||
let cardHistoryDetailContainer = document.getElementById(containerID);
|
||||
|
||||
var headers = new Headers();
|
||||
headers.append('Accept', 'application/json');
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
'{{ $resource->guarantor_2_passport_id }}',
|
||||
'{{ str($resource->guarantor_2_card_number)->mask('*', 6, 6) }}',
|
||||
'{{ $card_month }}/{{ substr($card_year, 2) }}',
|
||||
'card-history-details-guarantor-2'
|
||||
)"
|
||||
>{{ $resource->guarantor_2_card_number }}</div>
|
||||
<div class="expiry-container">
|
||||
@@ -68,7 +69,7 @@
|
||||
<div class="expiry-date dark:text-white">{{ $card_month }}/{{ $card_year }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="card-history-details">
|
||||
<div id="card-history-details-guarantor-2">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
'{{ $resource->guarantor_passport_id }}',
|
||||
'{{ str($resource->guarantor_card_number)->mask('*', 6, 6) }}',
|
||||
'{{ $card_month }}/{{ substr($card_year, 2) }}',
|
||||
'card-history-details-guarantor',
|
||||
)"
|
||||
>{{ $resource->guarantor_card_number }}</div>
|
||||
<div class="expiry-container">
|
||||
@@ -67,7 +68,7 @@
|
||||
<div class="expiry-date dark:text-white">{{ $card_month }}/{{ $card_year }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="card-history-details">
|
||||
<div id="card-history-details-guarantor">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
'{{ $resource->passport_id }}',
|
||||
'{{ str($resource->card_number)->mask('*', 6, 6) }}',
|
||||
'{{ $card_month }}/{{ substr($card_year, 2) }}',
|
||||
'card-history-details',
|
||||
)"
|
||||
>{{ $resource->card_number }}</div>
|
||||
<div class="expiry-container">
|
||||
|
||||
Reference in New Issue
Block a user