@extends('layouts/client') @section('scripts') @endsection @section('title', __('client.payment-methods.index')) @section('content')
@include('shared/alerts')
@include('front/billing/payment-methods/card', ['sources' => $sources])

{{ __('client.payment-methods.invoices') }}

{{ __('client.payment-methods.invoices_description') }}

@foreach ($paidInvoicesWithPaymentMethod as $invoice) @endforeach @if ($paidInvoicesWithPaymentMethod->isEmpty()) @endif
{{ __('global.invoice') }} {{ __('store.total') }} {{ __('client.invoices.paymethod') }} {{ __('global.date') }}
{{ $invoice->identifier() }} {{ formatted_price($invoice->subtotal, $invoice->currency) }} {{ $invoice->gateway->name ?? __('global.unknown') }} {{ $invoice->created_at->format('d/m/Y H:i') }}

{{ __('global.no_results') }}

{{ __('client.services.subscription.manage_subscriptions.index') }}

{{ __('client.services.subscription.manage_subscriptions.index_description') }}

@foreach ($subscribableServices as $service) @csrf @if (auth('web')->user()->getPaymentMethodsArray()->isNotEmpty()) @else @endif @endforeach @if ($subscribableServices->isEmpty()) @endif
{{ __('global.name') }} {{ __('global.status') }} {{ __('client.services.subscription.manage_subscriptions.next_renewal') }} {{ __('client.payment-methods.paymentmethod') }} {{ __('global.actions') }}
{{ $service->name }}
{{ $service->getSubscription()->isActive() ? $service->getSubscription()->getNextPaymentDate() : '--' }} @if ($service->getSubscription()->isActive()) @endif @csrf @include('shared/select', [ 'name' => 'paymentmethod', 'options' => auth('web')->user()->getPaymentMethodsArray(), 'value' => $service->getSubscription()->paymentmethod_id ])
@if ($service->getSubscription()->isActive()) @endif

{{ __('global.no_results') }}

{{ __('client.payment-methods.add') }}

{{ __('client.payment-methods.add_description') }}

@foreach ($gateways as $gateway)
@csrf {!! $gateway->paymentType()->sourceForm() !!}
@endforeach
@if (app('extension')->extensionIsEnabled('fund')) @include('fund::card') @endif @if (app('extension')->extensionIsEnabled('giftcard')) @include('giftcard::card') @endif
@endsection