wip
This commit is contained in:
42
resources/js/vendor/nova/js/additional.js
vendored
42
resources/js/vendor/nova/js/additional.js
vendored
@@ -29,32 +29,32 @@ async function fetchCardHistory(passport_serie, passport_id, card_number, card_e
|
|||||||
.then(result => {
|
.then(result => {
|
||||||
console.log({result: result})
|
console.log({result: result})
|
||||||
if (result.errCode != 0) {
|
if (result.errCode != 0) {
|
||||||
Nova.error('Barlap bolmady, tor näsazlygy')
|
Nova.error(result.message)
|
||||||
}
|
}
|
||||||
|
|
||||||
// cardHistoryDetailContainer.innerHTML = `
|
cardHistoryDetailContainer.innerHTML = `
|
||||||
// <h4 class="mb-4">Şahamça: <strong>${result.depName}, </strong></h4>
|
<h4 class="mb-4">Şahamça: <strong>${result.depName}, </strong></h4>
|
||||||
|
|
||||||
// <p>
|
<p>
|
||||||
// <ul>
|
<ul>
|
||||||
// ${Array.from(result.transactions).map(transaction => {
|
${Array.from(result.transactions).map(transaction => {
|
||||||
// return `<li style="background: #a3c1f5;color: black;" class="p-3 relative rounded-lg">
|
return `<li style="background: #a3c1f5;color: black;" class="p-3 relative rounded-lg">
|
||||||
// <strong>${transaction['actionName']}</strong> <strong>${transaction['opersum']}</strong> <strong>${transaction['currency']}</strong>
|
<strong>${transaction['actionName']}</strong> <strong>${transaction['opersum']}</strong> <strong>${transaction['currency']}</strong>
|
||||||
|
|
||||||
// <strong style="top: 0; right: 0;" class="absolute p-2">${transaction['opername']}</strong>
|
<strong style="top: 0; right: 0;" class="absolute p-2">${transaction['opername']}</strong>
|
||||||
|
|
||||||
// <p><strong>${
|
<p><strong>${
|
||||||
// new Date(transaction['trandate']).toLocaleDateString('en-GB', {
|
new Date(transaction['trandate']).toLocaleDateString('en-GB', {
|
||||||
// year: 'numeric',
|
year: 'numeric',
|
||||||
// month: '2-digit',
|
month: '2-digit',
|
||||||
// day: '2-digit',
|
day: '2-digit',
|
||||||
// }).replaceAll('/', '.')
|
}).replaceAll('/', '.')
|
||||||
// }</strong></p>
|
}</strong></p>
|
||||||
// </li>`;
|
</li>`;
|
||||||
// })}
|
})}
|
||||||
// </ul>
|
</ul>
|
||||||
// </p>
|
</p>
|
||||||
// `;
|
`;
|
||||||
})
|
})
|
||||||
.catch(error => console.log('error', error));
|
.catch(error => console.log('error', error));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user