@include('layout.head') @php $showBanAppealModel = false; $showBanAppealButton = false; $showPendingButton = false; $showClosedButton = false; $showApprovedButton = false; $showPermBan = false; $unbanDate = null; $showActive = false; $showRequestARefundButton = false; $showApprovedRefundButton = false; $showClosedRefundButton = false; if (config('customs.transfer.enabled')) { $accountOnline = \Auth::guard('account')->user()->online; $transferInProgress = \App\Models\auth\CharacterTransfer::where('source_account_id', \Auth::guard('account')->user()->id)->count() >= config('customs.transfer.account_level'); $banned = \Auth::guard('account')->user()->latestBan()?->active == 1 ? true : false; } @endphp
@include('layout.header'){{ __('page_profile')['overview']['account_name'] }} | {{ $user->username }} |
{{ __('page_profile')['overview']['email'] }} |
{{ $user->hiddenEmail() }}
@if (Session::has('success')) {{ Session::get('success') }} @endif @if (Session::has('error')) {{ Session::get('error') }} @endif @if (!Session::has('success') && !Session::has('error') && config('customs.profile.change_email.enabled')) {{ __('page_profile')['overview']['change_email'] }} @endif |
{{ __('page_profile')['overview']['account_status'] }} | @if ($user->latestShopAppeal()) @switch($user->latestShopAppeal()->status) @case ('pending') @php $showRequestARefundButton = true; @endphp @break @case ('closed') @php $showClosedRefundButton = true; @endphp @break @case ('approved') @php $showApprovedRefundButton = true; @endphp @break @endswitch @else @php $showRequestARefundButton = true; @endphp @endif @if ($user->latestBan()?->latestBanAppeal()) @php $showBanAppealModel = true; @endphp @switch ($user->latestBan()->latestBanAppeal()->status) @case ('pending') @php $showPendingButton = true; @endphp @break @case ('closed') @php $showClosedButton = true; @endphp @break @case ('approved') @php $showApprovedButton = true; $showActive = true; @endphp @break @endswitch @endif @if ($user->latestBan()) @php $showBanAppealModel = true; @endphp @switch ($user->latestBan()->active) @case (1) @if ($user->latestBan()->unbandate == $user->latestBan()->bandate) @php $showPermBan = true; @endphp @else @php $unbanDate = Carbon\Carbon::createFromTimestamp($user->latestBan()->unbandate); @endphp @if (!$unbanDate || !$unbanDate->isFuture()) @php $showActive = true; @endphp @endif @endif @break @case (0) @php $showActive = true; @endphp @break @endswitch @if (!$user->latestBan()->latestBanAppeal()) @php $showBanAppealButton = true; @endphp @endif @else @php $showActive = true; @endphp @endif @if (!$showActive && ($showPermBan || ($unbanDate && $unbanDate->isFuture()))) @if ($showPermBan) {{ __('page_profile')['overview']['permanent_ban'] }} @else {{ __('page_profile')['overview']['banned'] }} {{ $unbanDate->format('Y-m-d H:i') }} @endif @endif @php if ($showBanAppealModel && $user->latestBan()->latestBanAppeal()) { $unSeenMessages = $user->latestBan()->latestBanAppeal()->getUnseenMessagesForPlayer(); } else { $unSeenMessages = 0; } @endphp @if ($showBanAppealModel) @livewire('profile-ban-appeal-action', ['button' => 'banAppeal', 'unSeenMessages' => $unSeenMessages, 'showClosedButton' => $showClosedButton, 'showPendingButton' => $showPendingButton, 'showBanAppealButton' => $showBanAppealButton, 'showApprovedButton' => $showApprovedButton]) @endif @if ($showApprovedButton || $showActive) {{ __('page_profile')['overview']['active'] }} @endif |
{{ __('page_profile')['overview']['creation_date'] }} | {{ $user->joindate->format('d/m/Y') }} |
{{ __('page_profile')['overview']['last_login'] }} | {{ $user->last_login->format('d/m/Y @H:i:s') }} |
{{ __('page_profile')['overview']['last_ip_address'] }} | {{ $user->last_ip }} |
{{ __('page_profile')['overview']['forum_username'] }} | {{ $user->forum_username }} |
{{ __('page_profile')['overview']['donation_tokens'] }} | {{ $user->shopCoins?->coins }}
{{ __('page_profile')['overview']['visit_donate_page'] }} |
{{ __('page_profile')['overview']['newsletter'] }} | |
{{ __('page_profile')['overview']['delete_account'] }} |
@if (!$showActive && ($showPermBan || ($unbanDate && $unbanDate->isFuture())))
{{ __('page_profile')['overview']['cant_delete'] }}
@else
{{ __('page_profile')['overview']['action_is_permanent'] }}
{{ __('page_profile')['overview']['delete_account'] }} @endif |
{{ __('transfer_account')['transfer_account'] }}
|
@if ($banned) {{ __('transfer_account')['suspended'] }} @else {{ __('transfer_account')['submit'] }} @endif |
{{ __('transfer_account')['transfer_account'] }}
|
@if ($banned) {{ __('transfer_account')['suspended'] }} @else {{ __('transfer_account')['check_progress'] }} @endif |