@extends('portal.ninja2020.layout.app') @section('meta_title', App\Models\GatewayType::getAlias($payment_method->gateway_type_id)) @section('body')

{{ App\Models\GatewayType::getAlias($payment_method->gateway_type_id) }}

{{ ctrans('texts.payment_method_details') }}

@if(!empty(App\Models\GatewayType::getAlias($payment_method->gateway_type_id)) && !is_null(App\Models\GatewayType::getAlias($payment_method->gateway_type_id)))
{{ ctrans('texts.payment_type') }}
{{ App\Models\GatewayType::getAlias($payment_method->gateway_type_id) }}
@endif @if(!empty($payment_method->meta) && !is_null($payment_method->meta))
{{ ctrans('texts.type') }}
{{ property_exists($payment_method->meta, 'brand') ? $payment_method->meta?->brand : ''}} {{ property_exists($payment_method->meta, 'scheme') ? $payment_method->meta?->scheme : '' }}
@endif @if(!empty($payment_method->meta->last4) && !is_null($payment_method->meta->last4))
{{ ctrans('texts.card_number') }}
**** {{ ucfirst($payment_method->meta->last4) }}
@endif @if(!empty($payment_method->created_at) && !is_null($payment_method->created_at))
{{ ctrans('texts.date_created') }}
{{ $payment_method->formatDateTimestamp($payment_method->created_at, auth()->user()->client->date_format()) }}
@endif @if(!empty($payment_method->is_default) && !is_null($payment_method->is_default))
{{ ctrans('texts.default') }}
{{ $payment_method->is_default ? ctrans('texts.yes') : ctrans('texts.no') }}
@endif @isset($payment_method->meta->exp_month)
{{ ctrans('texts.expires') }}
{{ $payment_method->meta->exp_month }} / {{ $payment_method->meta->exp_year }}
@endisset
@if(($payment_method->gateway_type_id == \App\Models\GatewayType::BANK_TRANSFER && property_exists($payment_method->meta, 'state') && ($payment_method->meta?->state === 'unauthorized' || $payment_method->meta?->state === 'pending')))

{{ ctrans('texts.verification')}}

{{ ctrans('texts.ach_verification_notification') }}

@if (substr($payment_method->token, 0, 2) == 'pm') {{ ctrans('texts.complete_verification') }} @elseif(substr($payment_method->gateway_customer_reference, 0, 3) == 'cus') {{ ctrans('texts.complete_verification') }} @endif
@endif @livewire('payment-methods.update-default-method', ['token' => $payment_method, 'client' => $client])

{{ ctrans('texts.remove')}}

{{ ctrans('texts.permanently_remove_payment_method') }}

@include('portal.ninja2020.payment_methods.includes.modals.removal')
@endsection @section('footer') @endsection