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

{{__('Dashboard')}}

{{__('Servers')}} {{Auth::user()->servers()->count()}}
{{CREDITS_DISPLAY_NAME}} {{Auth::user()->Credits()}}
{{CREDITS_DISPLAY_NAME}} {{__('Usage')}} {{number_format($useage, 2, '.', '')}} {{__('per month')}}
@if($credits > 0.01 and $useage > 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