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

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

@endif

@php $hasCustomIcon = optional($service->product->server)->extension === 'Proxmox' && isset($proxmoxServer) && $proxmoxServer && $proxmoxServer->user_set_icon; $iconColor = $hasCustomIcon ? $proxmoxServer->user_set_icon_color : null; @endphp @if($hasCustomIcon) @php $iconPrefix = $proxmoxServer->user_set_icon_prefix ?? 'ri'; $iconName = $proxmoxServer->user_set_icon; if ($iconPrefix === 'vaadin') { $componentName = 'vaadin-' . str_replace('_', '-', $iconName); } else { $componentName = $iconPrefix . '-' . $iconName; } @endphp @else @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($proxmoxServer) @php $cores = $service->product->settings()->where('key', 'cores')->first()?->value; $memory = $service->product->settings()->where('key', 'memory')->first()?->value; $disk = $service->product->settings()->where('key', 'disk')->first()?->value; $bandwidth = $service->product->settings()->where('key', 'bandwidth')->first()?->value; @endphp

Server Specifications

@if($cores)
CPU Cores {{ $cores }} {{ $cores == 1 ? 'Core' : 'Cores' }}
@endif @if($memory)
Memory @if($memory >= 1024) {{ round($memory / 1024, 1) }} GB @else {{ $memory }} MB @endif
@endif @if($disk)
Storage {{ $disk }} GB
@endif @if($bandwidth)
Bandwidth @if($bandwidth == 0 || $bandwidth == -1) Unlimited @elseif($bandwidth >= 1000) {{ round($bandwidth / 1000, 1) }} TB @else {{ $bandwidth }} GB @endif
@endif @if($proxmoxServer->os)
Operating System {{ $proxmoxServer->os->name }}
@endif
@endif @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