41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
@php
|
|
|
|
@endphp
|
|
|
|
<style>
|
|
.loan-history-container {
|
|
display: grid;
|
|
grid-template-columns: 20% 1fr;
|
|
}
|
|
|
|
@media (max-width: 500px) {
|
|
.loan-history-container {
|
|
display: block !important;
|
|
}
|
|
#loan-history-item-container {
|
|
margin-top: 1em;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<div class="loan-history-container">
|
|
<div>
|
|
<button
|
|
type="button"
|
|
style="width: max-content;"
|
|
class="border text-left appearance-none cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative disabled:cursor-not-allowed inline-flex items-center justify-center shadow h-9 px-3 bg-primary-500 border-primary-500 hover:[&:not(:disabled)]:bg-primary-400 hover:[&:not(:disabled)]:border-primary-400 text-white dark:text-gray-900"
|
|
onclick="fetchLoanRemaining(
|
|
'loan-remaining-item-container',
|
|
'{{ $resource->passport_serie }}',
|
|
'{{ $resource->passport_id }}',
|
|
'{{ $resource->account_number }}',
|
|
)">
|
|
<span class="flex items-center gap-1">Karz galyndysyny gör</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div id="loan-remaining-item-container">
|
|
|
|
</div>
|
|
</div>
|