@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.recurring_invoice')) @section('body')

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

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

{{ ctrans('texts.start_date') }}
{{ $invoice->formatDate($invoice->start_date, $invoice->client->date_format()) }}
{{ ctrans('texts.next_send_date') }}
{{ $invoice->formatDate($invoice->next_send_date, $invoice->client->date_format()) }}
{{ ctrans('texts.frequency') }}
{{ \App\Models\RecurringInvoice::frequencyForKey($invoice->frequency_id) }}
{{ ctrans('texts.cycles_remaining') }}
{{ $invoice->remaining_cycles == '-1' ? ctrans('texts.endless') : $invoice->remaining_cycles }} @if($invoice->remaining_cycles == '-1') ∞ @endif
{{ ctrans('texts.amount') }}
{{ \App\Utils\Number::formatMoney($invoice->amount, $invoice->client) }}
@include('portal.ninja2020.components.entity-documents', ['entity' => $invoice]) @if($invoice->auto_bill === 'optin' || $invoice->auto_bill === 'optout')

Auto Bill

Change your update bill preferences.

@livewire('recurring-invoices.update-auto-billing', ['invoice' => $invoice])
@endif @if(is_null($invoice->subscription_id) || optional($invoice->subscription)->allow_cancellation)

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

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

@include('portal.ninja2020.recurring_invoices.includes.modals.cancellation')
@endif @if($invoice->subscription && $invoice->subscription->allow_plan_changes)

Switch Plans:

Upgrade or downgrade your current plan.

@foreach($invoice->subscription->service()->getPlans() as $subscription) {{ $subscription->name }} @endforeach
@endif
@endsection