Browse Source

"Gift card" => "Voucher" => on-click-show

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
de528b1682

+ 2 - 2
resources/views/app/invoice-center/companies.blade.php

@@ -11,7 +11,7 @@
                 <th class="border-bottom-0 width-300px">Name</th>
                 <th class="border-bottom-0">State</th>
                 <th class="border-bottom-0">Customers</th>
-                <th class="border-bottom-0">Gift Cards</th>
+                <th class="border-bottom-0">Vouchers</th>
                 <th class="border-bottom-0">Created</th>
             </tr>
             </thead>
@@ -36,7 +36,7 @@
                            class="mr-2"
                            open-in-stag-popup
                            update-parent
-                           title="{{$record->name}}: Gift Cards"
+                           title="{{$record->name}}: Vouchers"
                            popup-style="stag-popup-med overflow-visible"
                            mc-initer="invoice-center">{{count($record->giftCards)}} gift card{{count($record->giftCards) === 1 ? '' : 's'}}</a>
                     </td>

+ 6 - 6
resources/views/app/invoice-center/gift-cards.blade.php

@@ -1,13 +1,13 @@
 @extends('layouts.invoice-center')
 @section('inner-content')
     <div class="d-flex mb-2 pb-2 align-items-center border-bottom">
-        <div class="font-size-14 font-weight-bold">Gift Cards</div>
+        <div class="font-size-14 font-weight-bold">Vouchers</div>
         <div moe class="ml-3">
             <a href="" start show class="btn btn-sm btn-primary font-weight-normal text-white">
-                + Add Gift Card
+                + Add Voucher
             </a>
             <form url="/api/giftCard/create" class="mcp-theme-1">
-                <p class="mb-2 text-secondary font-weight-bold">Add Gift Card</p>
+                <p class="mb-2 text-secondary font-weight-bold">Add Voucher</p>
                 <div class="mb-2">
                     <label class="text-sm text-secondary mb-1">Company</label>
                     <input type="hidden" name="companyUid" value="{{@$company->uid}}">
@@ -76,7 +76,7 @@
                             <div moe class="ml-3">
                                 <a href="" start show>Deactivate</a>
                                 <form url="/api/giftCard/deactivate" class="mcp-theme-1" right>
-                                    <p class="mb-2 text-nowrap">Deactivate this gift card?</p>
+                                    <p class="mb-2 text-nowrap">Deactivate this voucher?</p>
                                     <input type="hidden" name="uid" value="{{$record->uid}}">
                                     <div>
                                         <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
@@ -88,7 +88,7 @@
                             <div moe class="ml-3">
                                 <a href="" start show>Reactivate</a>
                                 <form url="/api/giftCard/reactivate" class="mcp-theme-1" right>
-                                    <p class="mb-2 text-nowrap">Reactivate this gift card?</p>
+                                    <p class="mb-2 text-nowrap">Reactivate this voucher?</p>
                                     <input type="hidden" name="uid" value="{{$record->uid}}">
                                     <div>
                                         <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
@@ -104,6 +104,6 @@
         </table>
         {{$records->withQueryString()->links()}}
     @else
-        <div class="text-secondary">No gift cards yet!</div>
+        <div class="text-secondary">No vouchers yet!</div>
     @endif
 @endsection

+ 1 - 1
resources/views/app/invoice-center/ic-pay-invoice.blade.php

@@ -69,7 +69,7 @@
                                     </div>
                                 @else
                                     <div class="mt-3 border rounded border-secondary p-2 text-left text-warning-dark w-100">
-                                        <b>Cannot pay from your balance:</b> Your current balance (${{$customer->customer_balance}}) is less than the due amount (${{$invoice->balance}}). If you have a gift card, use its code on the right hand side to add funds to your balance.
+                                        <b>Cannot pay from your balance:</b> Your current balance (${{$customer->customer_balance}}) is less than the due amount (${{$invoice->balance}}). If you have a voucher, use its code on the right hand side to add funds to your balance.
                                     </div>
                                 @endif
                                 @if(count($customer->paymentMethods))

+ 3 - 3
resources/views/app/invoice-center/ic-rhs.blade.php

@@ -6,11 +6,11 @@
     @if(request()->route()->getName() !== 'icManageAccount')
         <a href="/ic/manageAccount" class="font-weight-bold mb-3 d-block">Manage Payment Methods</a>
     @endif
-    <h3 class="font-weight-bold mb-2 text-secondary">Redeem Gift Card</h3>
-    <div moe>
+    <h3 class="font-weight-bold mb-2 c-pointer" onclick="$('#gift-card-moe').toggle(); return false;">Redeem Voucher <span class="font-weight-normal text-sm">(click to show/hide)</span></h3>
+    <div moe id="gift-card-moe" style="display: none">
         <form url="/api/giftCard/redeem" show>
             <input type="hidden" name="customerUid" value="{{$customer->uid}}">
-            <p class="mb-2">If you have a gift card from {{$company->name}}, please enter its code below:</p>
+            <p class="mb-2">If you have a voucher from {{$company->name}}, please enter its code below:</p>
             <div class="mb-2">
                 <input type="text" name="code" placeholder="Code" class="form-control form-control-sm">
             </div>