@if($invoice = $service->invoices()->where('status', 'pending')->first())

⚠️ {{ __('services.outstanding_invoice') }} {{ __('services.view_and_pay') }}.

@endif

{{ __('services.services') }}

{{ __('services.product_details') }}:

{{ __('services.name') }}: {{ $service->product->name }}
{{ __('services.price') }}: {{ $service->formattedPrice }}
@if($service->plan->type == 'recurring')
{{ __('services.billing_cycle') }}: {{ __('services.every_period', [ 'period' => $service->plan->billing_period > 1 ? $service->plan->billing_period : '', 'unit' => trans_choice(__('services.billing_cycles.' . $service->plan->billing_unit), $service->plan->billing_period) ]) }}
{{ __('services.expires_at') }}: {{ $service->expires_at ? $service->expires_at->format('M d, Y') : 'N/A' }}
@endif
{{ __('services.status') }}: @if($service->cancellation && $service->status == 'active') {{ __('services.statuses.cancellation_pending') }} @else {{ __('services.statuses.' . $service->status) }} @endif
@include('services.partials.billing-agreement')
@foreach ($fields as $field)
{{ $field['label'] }}: {{ $field['text'] }}
@endforeach
@if($service->cancellable || $service->upgradable || count($buttons) > 0)

{{ __('services.actions') }}:

@if($service->upgradable) {{ __('services.upgrade') }} @endif @if($service->upgrade()->where('status', 'pending')->exists()) {{ __('services.upgrade') }} @endif @if($service->cancellable) {{ __('services.cancel') }} @endif @if($showCancel)
@endif
@foreach ($buttons as $button) @if (isset($button['function'])) {{ $button['label'] }} @else {{ $button['label'] }} @endif @endforeach
@endif
@if (count($views) > 0)
@if (count($views) > 1)
@foreach ($views as $view) @endforeach
@endif
{!! $extensionView !!}
@endif