@extends('layouts.main') @section('content')

{{ __('Dashboard') }}

@if(!file_exists(base_path()."/install.lock") && Auth::User()->role == "admin")

{{ __('The installer is not locked!') }}

{{ __('please create a file called "install.lock" in your dashboard Root directory. Otherwise no settings will be loaded!') }}

@endif
{{ __('Servers') }} {{ Auth::user()->servers()->count() }}
{{ CREDITS_DISPLAY_NAME }} {{ Auth::user()->Credits() }}
{{ CREDITS_DISPLAY_NAME }} {{ __('Usage') }} {{ number_format($usage, 2, '.', '') }} {{ __('per month') }}
@if ($credits > 0.01 and $usage > 0)
{{ __('Out of Credits in', ['credits' => CREDITS_DISPLAY_NAME]) }} {{ $boxText }}{{ $unit }}
@endif

{{ __('Useful Links') }}

@foreach ($useful_links as $useful_link)
{{ $useful_link->title }}
{!! $useful_link->description !!}
@endforeach

{{ __('Activity Logs') }}

    @foreach (Auth::user()->actions()->take(8)->orderBy('created_at', 'desc')->get() as $log)
  • @switch($log->description) @case('created') @break @case('redeemed') @break @case('deleted') @break @case('updated') @break @endswitch {{ ucfirst($log->description) }} {{ explode('\\', $log->subject_type)[2] }} {{ $log->created_at->diffForHumans() }}
  • @endforeach
@endsection