@extends('layouts.main') @section('content')
@foreach ($servers as $server)
{{ $server->name }}
{{ __('Status') }}:
@if($server->suspended) {{ __('Suspended') }} @elseif($server->cancelled) {{ __('Cancelled') }} @else {{ __('Active') }} @endif
{{ __('Location') }}:
{{ $server->location }}
{{ __('Software') }}:
{{ $server->nest }}
{{ __('Specification') }}:
{{ $server->egg }}
{{ __('Resource plan') }}:
{{ $server->product->name }}
{{ __('Next Billing Cycle') }}:
@if ($server->suspended) - @else @switch($server->product->billing_period) @case('monthly') {{ \Carbon\Carbon::parse($server->last_billed)->addMonth()->toDayDateTimeString(); }} @break @case('weekly') {{ \Carbon\Carbon::parse($server->last_billed)->addWeek()->toDayDateTimeString(); }} @break @case('daily') {{ \Carbon\Carbon::parse($server->last_billed)->addDay()->toDayDateTimeString(); }} @break @case('hourly') {{ \Carbon\Carbon::parse($server->last_billed)->addHour()->toDayDateTimeString(); }} @break @case('quarterly') {{ \Carbon\Carbon::parse($server->last_billed)->addMonths(3)->toDayDateTimeString(); }} @break @case('half-annually') {{ \Carbon\Carbon::parse($server->last_billed)->addMonths(6)->toDayDateTimeString(); }} @break @case('annually') {{ \Carbon\Carbon::parse($server->last_billed)->addYear()->toDayDateTimeString(); }} @break @default {{ __('Unknown') }} @endswitch @endif
{{ __('Price') }}: ({{ CREDITS_DISPLAY_NAME }})
@if($server->product->billing_period == 'monthly') {{ __('per Month') }} @elseif($server->product->billing_period == 'half-annually') {{ __('per 6 Months') }} @elseif($server->product->billing_period == 'quarterly') {{ __('per 3 Months') }} @elseif($server->product->billing_period == 'annually') {{ __('per Year') }} @elseif($server->product->billing_period == 'weekly') {{ __('per Week') }} @elseif($server->product->billing_period == 'daily') {{ __('per Day') }} @elseif($server->product->billing_period == 'hourly') {{ __('per Hour') }} @endif
{{ number_format($server->product->price) }}
@endforeach
@endsection