@extends('portal.ninja2020.layout.app') @section('meta_title', ucfirst($payment_method->gateway_type->name)) @section('body')

{{ ctrans("texts.{$payment_method->gateway_type->alias}") }}

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

@if(!empty($payment_method->gateway_type->name) && !is_null($payment_method->gateway_type->name))
{{ ctrans('texts.payment_type') }}
{{ ucfirst($payment_method->gateway_type->name) }}
@endif @if(!empty($payment_method->meta) && !is_null($payment_method->meta))
{{ ctrans('texts.type') }}
{{ optional($payment_method->meta)->brand }} {{ optional($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((optional($payment_method->meta)->state === 'unauthorized' || optional($payment_method->meta)->state === 'pending') && $payment_method->gateway_type_id === \App\Models\GatewayType::BANK_TRANSFER)

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

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

@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