@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->translateDate($invoice->start_date, $invoice->client->date_format(), $invoice->client->locale()) }}
{{ ctrans('texts.next_send_date') }}
{{ $invoice->translateDate(\Carbon\Carbon::parse($invoice->next_send_date)->subSeconds($invoice->client->timezone_offset()), $invoice->client->date_format(), $invoice->client->locale()) }}
{{ 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')

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

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

@livewire('recurring-invoices.update-auto-billing', ['invoice' => $invoice])
@endif

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

@foreach($invoice->invoices as $inv)
{{ ctrans('texts.invoice_number') }}
{{ $inv->number }} - {{ \App\Utils\Number::formatMoney($inv->amount, $invoice->client) }}
@endforeach
@if($invoice->subscription && $invoice->subscription?->allow_cancellation) {{-- INV2-591 --}} {{-- @if(false) --}}

{{ 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