@if (!empty($braintreeClientToken)) @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_data) {{ $paymentMethod->bank_data }} @endif @if($paymentMethod->status == PAYMENT_METHOD_STATUS_NEW) ({{trans('texts.complete_verification')}}) @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())   {!! Button::success(strtoupper(trans('texts.add_bank_account'))) ->asLinkTo(URL::to('/client/paymentmethods/add/stripe_ach')) !!} @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() !!}