@if (!empty($braintreeClientToken)) @elseif($gateway->gateway_id == GATEWAY_WEPAY && $gateway->getAchEnabled()) @endif @if(!empty($paymentMethods)) @foreach ($paymentMethods as $paymentMethod)
{{trans(payment_type->name)))}}"> @if(!empty($paymentMethod->last4)) •••••{{$paymentMethod->last4}} @endif @if($paymentMethod->payment_type_id == PAYMENT_TYPE_ACH) @if($paymentMethod->bank_name) {{ $paymentMethod->bank_name }} @endif @if($paymentMethod->status == PAYMENT_METHOD_STATUS_NEW) @if($gateway->gateway_id == GATEWAY_STRIPE) ({{trans('texts.complete_verification')}}) @else ({{ trans('texts.verification_pending') }}) @endif @elseif($paymentMethod->status == PAYMENT_METHOD_STATUS_VERIFICATION_FAILED) ({{trans('texts.verification_failed')}}) @endif @elseif($paymentMethod->payment_type_id == PAYMENT_TYPE_ID_PAYPAL) {{ $paymentMethod->email }} @elseif($paymentMethod->expiration) {!! trans('texts.card_expiration', array('expires'=>Utils::fromSqlDate($paymentMethod->expiration, false)->format('m/y'))) !!} @endif @if($paymentMethod->id == $paymentMethod->account_gateway_token->default_payment_method_id) ({{trans('texts.used_for_auto_bill')}}) @elseif($paymentMethod->payment_type_id != PAYMENT_TYPE_ACH || $paymentMethod->status == PAYMENT_METHOD_STATUS_VERIFIED) ({{trans('texts.use_for_auto_bill')}}) @endif ×
@endforeach @endif @if($gateway->gateway_id != GATEWAY_STRIPE || $gateway->getPublishableStripeKey())
{!! Button::success(strtoupper(trans('texts.add_credit_card'))) ->asLinkTo(URL::to('/client/paymentmethods/add/'.($gateway->getPaymentType() == PAYMENT_TYPE_STRIPE ? 'stripe_credit_card' : 'credit_card'))) !!} @if($gateway->getACHEnabled())   @if($gateway->gateway_id == GATEWAY_STRIPE) {!! Button::success(strtoupper(trans('texts.add_bank_account'))) ->asLinkTo(URL::to('/client/paymentmethods/add/stripe_ach')) !!} @elseif($gateway->gateway_id == GATEWAY_WEPAY) {!! Button::success(strtoupper(trans('texts.add_bank_account'))) ->withAttributes(['id'=>'add-ach']) ->asLinkTo(URL::to('/client/paymentmethods/add/wepay_ach')) !!} @endif @endif @if($gateway->getPayPalEnabled())   {!! Button::success(strtoupper(trans('texts.add_paypal_account'))) ->withAttributes(['id'=>'add-paypal']) ->asLinkTo(URL::to('/client/paymentmethods/add/braintree_paypal')) !!}
@endif
@endif {!! Former::open(URL::to('/client/paymentmethods/default'))->id('defaultSourceForm') !!} {!! Former::close() !!}