@extends('layouts.main') @section('content')
@if(Storage::get('latestVersion') && config("app.version") < Storage::get('latestVersion')) @endif
{{__('Servers')}} {{$counters['servers']->total}}
{{__('Users')}} {{$counters['users']}}
{{__('Total')}} {{CREDITS_DISPLAY_NAME}} {{$counters['credits']}}
{{__('Payments')}} {{$counters['payments']->total}}
{{__('Pterodactyl')}}
{{__('Sync')}}
@if ($deletedNodesPresent)
{{ __('Warning!') }}

{{ __('Some nodes got deleted on pterodactyl only. Please click the sync button above.') }}

@endif
{{__('Resources')}} {{__('Count')}}
{{__('Locations')}} {{$counters['locations']}}
{{__('Nodes')}} {{$nodes->count()}}
{{__('Nests')}} {{$counters['nests']}}
{{__('Eggs')}} {{$counters['eggs']}}
{{__('Latest tickets')}}
@if(!$tickets->count()){{__('There are no tickets')}}. @else @foreach($tickets as $ticket_id => $ticket) @endforeach
{{__('Title')}} {{__('User')}} {{__('Status')}} {{__('Last updated')}}
#{{$ticket_id}} - {{$ticket->title}} {{$ticket->user}} {{$ticket->status}} {{$ticket->last_updated}}
@endif
{{__('Controlpanel.gg')}}
{{__('Individual nodes')}}
@if ($perPageLimit)
{{ __('Error!') }}

{{ __('You reached the Pterodactyl perPage limit. Please make sure to set it higher than your server count.') }}
{{ __('You can do that in settings.') }}

{{ __('Note') }}: {{ __('If this error persists even after changing the limit, it might mean a server was deleted on Pterodactyl, but not on ControlPanel. Try clicking the button below.') }}

{{__('Sync servers')}}
@endif @foreach($nodes as $nodeID => $node) @endforeach
{{__('ID')}} {{__('Node')}} {{__('Server count')}} {{__('Resource usage')}} {{CREDITS_DISPLAY_NAME . ' ' . __('Usage')}}
{{$nodeID}} {{$node->name}} {{$node->activeServers}}/{{$node->totalServers}} {{$node->usagePercent}}% {{$node->activeEarnings}}/{{$node->totalEarnings}}
{{__('Total')}} ({{__('active')}}/{{__('total')}}): {{$counters['servers']->active}}/{{$counters['servers']->total}} {{$counters['totalUsagePercent']}}% {{$counters['earnings']->active}}/{{$counters['earnings']->total}}

{{__('Latest payments')}}
@if($counters['payments']['lastMonth']->count())
{{__('Last month')}}: @foreach($counters['payments']['lastMonth'] as $currency => $income) @endforeach
{{__('Currency')}} {{__('Number of payments')}} {{__('Total amount')}}
{{$currency}} {{$income->count}} {{$income->total}}

@endif @if($counters['payments']['lastMonth']->count())
@else
@endif {{__('This month')}}: @foreach($counters['payments']['thisMonth'] as $currency => $income) @endforeach
{{__('Currency')}} {{__('Number of payments')}} {{__('Total amount')}}
{{$currency}} {{$income->count}} {{$income->total}}

{{__('Tax overview')}}
@if($counters['taxPayments']['lastYear']->count()) {{__('Last year')}}: @foreach($counters['taxPayments']['lastYear'] as $currency => $income) @endforeach
{{__('Currency')}} {{__('Number of payments')}} {{__('Base amount')}} {{__('Total taxes')}} {{__('Total amount')}}
{{$currency}} {{$income->count}} {{$income->price}} {{$income->taxes}} {{$income->total}}

@endif {{__('This year')}}: @foreach($counters['taxPayments']['thisYear'] as $currency => $income) @endforeach
{{__('Currency')}} {{__('Number of payments')}} {{__('Base amount')}} {{__('Total taxes')}} {{__('Total amount')}}
{{$currency}} {{$income->count}} {{$income->price}} {{$income->taxes}} {{$income->total}}

@endsection