updated user customer list
This commit is contained in:
@@ -73,8 +73,8 @@
|
||||
<div class="xl:col-span-4 space-y-6">
|
||||
<!-- Authorize.net Account Status Box -->
|
||||
<div v-if="customer.id" class="bg-base-100 rounded-lg p-4 border">
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="flex flex-col lg:flex-row lg:items-center lg:justify-between">
|
||||
<div class="flex items-center gap-3 mb-3 md:mb-0">
|
||||
<svg class="w-5 h-5 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v4a3 3 0 003 3z"/>
|
||||
</svg>
|
||||
@@ -89,16 +89,10 @@
|
||||
{{ getAccountStatusMessage() }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex gap-2" v-if="!isLoadingAuthorize">
|
||||
<div class="flex gap-2" v-if="!isLoadingAuthorize && !authorizeCheck.valid_for_charging">
|
||||
<!-- CREATE ACCOUNT SECTION - Only show when account doesn't exist -->
|
||||
<div v-if="!authorizeCheck.valid_for_charging" class="flex gap-2">
|
||||
<button
|
||||
v-if="credit_cards_count === 0"
|
||||
@click="addCreditCard"
|
||||
class="btn btn-primary btn-sm"
|
||||
>
|
||||
Add Card
|
||||
</button>
|
||||
<div class="flex gap-2">
|
||||
|
||||
<button
|
||||
@click="createAuthorizeAccount"
|
||||
:class="['btn btn-sm', credit_cards_count === 0 ? 'btn-disabled' : 'btn-primary']"
|
||||
@@ -115,16 +109,15 @@
|
||||
Add Card First
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- DELETE ACCOUNT SECTION - Only show when account exists -->
|
||||
<div v-if="authorizeCheck.valid_for_charging" class="flex gap-2">
|
||||
<button
|
||||
@click="showDeleteAccountModal"
|
||||
class="btn btn-error btn-sm"
|
||||
>
|
||||
Delete Account
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- DELETE ACCOUNT SECTION - Only show when account exists -->
|
||||
<div v-if="authorizeCheck.valid_for_charging" class="mt-3 lg:mt-0 lg:flex lg:gap-2">
|
||||
<button
|
||||
@click="showDeleteAccountModal"
|
||||
class="btn btn-error btn-sm lg:self-start"
|
||||
>
|
||||
Delete Account
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user