@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.payment_methods')) @section('header') {{ Breadcrumbs::render('payment_methods') }}

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

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

@if(auth()->user()->client->getCreditCardGateway()) @lang('texts.add_payment_method') @endif
@endsection @section('body')
@foreach($payment_methods as $payment_method) @endforeach
{{ ctrans('texts.created_at') }} {{ ctrans('texts.payment_type_id') }} {{ ctrans('texts.type') }} {{ ctrans('texts.expires') }} {{ ctrans('texts.card_number') }} {{ ctrans('texts.default') }}
{{ $payment_method->formatDateTimestamp($payment_method->created_at, auth()->user()->client->date_format()) }} {{ ctrans("texts.{$payment_method->gateway_type->alias}") }} {{ ucfirst(optional($payment_method->meta)->brand) }} @if(isset($payment_method->meta->exp_month) && isset($payment_method->meta->exp_year)) {{ $payment_method->meta->exp_month}} / {{ $payment_method->meta->exp_year }} @endif @isset($payment_method->meta->last4) **** {{ $payment_method->meta->last4 }} @endisset @if($payment_method->is_default) @endif @lang('texts.view')
{{ $payment_methods->links('portal.ninja2020.vendor.pagination') }}
@endsection