<div class="col-md-4 border-left">
    <div class="mb-3">
        <span class="font-weight-bold text-secondary">Current Balance: </span>
        <span class="font-weight-bold text-dark">${{!is_null($customer->customer_balance) ? $customer->customer_balance : 0}}</span>
    </div>
    @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 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 voucher from {{isset($company) ? $company->name: '(no company)'}}, please enter its code below:</p>
            <div class="mb-2">
                <input type="text" name="code" placeholder="Code" class="form-control form-control-sm">
            </div>
            <div class="text-left">
                <button submit class="btn btn-sm btn-primary mr-2">Submit</button>
                <button cancel class="btn btn-sm btn-default border">Cancel</button>
            </div>
        </form>
    </div>
</div>