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

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

@endif

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

@if ($service->status == 'active')
{{ __('services.statuses.' . $service->status) }}
@elseif($service->status == 'suspended')
{{ __('services.statuses.' . $service->status) }}
@elseif($service->status == 'cancelled')
{{ __('services.statuses.' . $service->status) }}
@elseif($service->status == 'pending')
{{ __('services.statuses.' . $service->status) }}
@endif

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

{{ __('services.name') }} {{ $service->product->name }}
@if(isset($proxmoxServer) && $proxmoxServer)
Hostname {{ $proxmoxServer->hostname }}
@endif
{{ __('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) ]) }}
@endif @if($service->expires_at)
Due At {{ $service->expires_at->format('d M Y') }}
@endif
{{ __('services.status') }} {{ __('services.statuses.' . $service->status) }}
@if($service->cancellable || $service->upgradable || count($buttons) > 0)

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

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