@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 @if(config("SETTINGS::SYSTEM:ALERT_ENABLED") && !empty(config("SETTINGS::SYSTEM:ALERT_MESSAGE"))) @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
@if(config("SETTINGS::SYSTEM:MOTD_ENABLED") == "true")

{{ config('app.name', 'MOTD') }} - MOTD

{!! config('SETTINGS::SYSTEM:MOTD_MESSAGE', '') !!}
@endif @if(config("SETTINGS::SYSTEM:USEFULLINKS_ENABLED") == "true")

{{ __('Useful Links') }}

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

{{ __('Activity Logs') }}

    @foreach (Auth::user()->actions()->take(8)->orderBy('created_at', 'desc')->get() as $log)
  • @if(str_starts_with($log->description,"created")) @elseif(str_starts_with($log->description,"redeemed")) @elseif(str_starts_with($log->description,"deleted")) @elseif(str_starts_with($log->description,"gained")) @elseif(str_starts_with($log->description,"updated")) @endif {{ explode('\\', $log->subject_type)[2] }} {{ ucfirst($log->description) }} {{ $log->created_at->diffForHumans() }}
  • @endforeach
@if((config('SETTINGS::REFERRAL::ENABLED') ==true))

{{ __('Partner program') }}

@if((config('SETTINGS::REFERRAL::ALLOWED') == "client" && Auth::user()->role != "member") || config('SETTINGS::REFERRAL::ALLOWED') == "everyone")
{{__("Your referral URL")}}: {{__('Click to copy')}}
{{__("Number of referred users:")}} {{$numberOfReferrals}}
@if($partnerDiscount)
{{__('Your discount')}} {{__('Discount for your new users')}} {{__('Reward per registered user')}} {{__('New user payment commision')}}
{{$partnerDiscount->partner_discount}}% {{$partnerDiscount->registered_user_discount}}% {{config('SETTINGS::REFERRAL::REWARD')}} {{config('SETTINGS::SYSTEM:CREDITS_DISPLAY_NAME')}} {{($partnerDiscount->referral_system_commission==-1)?config('SETTINGS::REFERRAL:PERCENTAGE'):($partnerDiscount->referral_system_commission)}}%

@else
{{__('Reward per registered user')}} {{__('New user payment commision')}}
{{config('SETTINGS::REFERRAL::REWARD')}} {{config('SETTINGS::SYSTEM:CREDITS_DISPLAY_NAME')}} {{config('SETTINGS::REFERRAL:PERCENTAGE')}}%

@endif @else {{__("Make a purchase to reveal your referral-URL")}} @endif
@endif
@endsection