@extends('cfp.layouts.master') @section('content')

{{ __("account.AccountInformation") }}

{{ $account->USER_ID }}
{!! Helper::web_getAuthorityLev($account->AUTHORITY_LEV, true) !!}
@if (!is_null($account->E_MAIL)) {{ $account->E_MAIL }} @if($account->EMAIL_VERIFY_YN == 'Y') @else @endif @else N/A @endif
{{ Helper::date_fullDate($account->REG_DATE, true) }}
@if (!is_null($account->LAST_UPD_DATE))
{{ Helper::date_fullDate($account->LAST_UPD_DATE, true) }}
@else
{{ __("account.Never") }}
@endif

{{ __("account.PersonalInformation") }}

{{ $account->NAME ?? "N/A" }}
{{ $account->SURNAME ?? "N/A" }}
{{ $account->PHONE ?? "N/A" }}
{{ Helper::web_getSecQuestion($account->SEC_QUESTION) }}
{{ $account->SEC_ANSWER }}

{{ __("panel/index.ban_history") }}

@forelse ($account->bans as $ban) @empty @endforelse
# {{ __("account.Type") }} {{ __("account.Motive") }} {{ __("account.Applicant") }} {{ __("account.DatePunishment") }} {{ __("account.TimePunishment") }} {{ __("account.Actions") }}
{{ $ban->SRL }} @if ($ban->TYPE == 0) {{ \Helper::game_getBanType($ban->TYPE) }} @else {{ \Helper::game_getBanType($ban->TYPE) }} @endif {{ $ban->REASON }} {{ $ban->issuer->NICK }} {{ \Helper::date_stringFormat($ban->START_DATE, true) }} {{ date("Y", strtotime($ban->END_DATE)) == 3000 ? __("panel/index.permanent_duration") : \Helper::date_ForDate($ban->END_DATE, $ban->START_DATE) . " day(s)" }} addMinute(), ["id" => $ban->SRL]) }}" class="btn btn-block btn-outline-success unban">{{ __("account.Delete") }}
{{ __("account.NoPunishment") }}
@include('cfp.components.pagination', [ "data" => $account->bans, "route" => "cfp.accounts.view.detailed", "hasUsn" => $account->USN ])

{{ __("account.Last5PurchaseHistory") }}

@if (is_object($account->user)) @forelse ($account->user->bills as $bill) @empty @endforelse @else @endif
# {{ __("account.Order") }} {{ __("account.Amount") }} {{ __("account.Value") }} {{ __("account.Method") }} {{ __("account.Status") }} {{ __("account.Data") }} {{ __("account.Actions") }}
{{ $bill->TID }} {{ number_format($bill->AMMOUNT) }} ZP R${{ number_format($bill->PRICE, 2) }} {{ $bill->PAY_METHOD }} @if ($bill->DELIVERED_YN == "Y") {{ __("account.Delivered") }} @else @switch($bill->DELIVERED_N_REASON) @case('Cancelado') @case('Falhou') @case('Negado') {{ $bill->DELIVERED_N_REASON }} @break @default {{ $bill->DELIVERED_N_REASON }} @break @endswitch @endif {{ \Helper::date_stringFormat($bill->REG_DATE) }} {{ __("account.Details") }}
{{ __("account.NoPurchaseYet") }}
{{ __("account.NoCharacterYet") }}

ZP CODES LOGS

@if (is_object($account->codes)) @forelse ($account->codes as $code) @empty @endforelse @else @endif
CODE AMOUNT DATE
{{ $code->CODE }} {{ $code->DELIVERED_ITEM }} {{ $code->DELIVERED_DATE }}
NO CODES USED
{{ __("account.NoCharacterYet") }}
{{ $account->codes->links() }}

User OLD IGNS

@forelse ($account->nicks as $nick) @empty @endforelse
OLD NICK Change DATE
{{ $nick->BEF_NICK }} {{ $nick->REG_DATE }}
No Old IGNS
{{ $account->nicks->links() }}

Change logs

{{-- @forelse ($account->changes as $change)--}} {{-- --}} {{-- --}} {{-- --}} {{-- @empty--}} {{-- --}} {{-- --}} {{-- --}} {{-- @endforelse--}}
OLD NICK Change DATE
--}} {{-- {{ $change }}--}} {{--
No Old IGNS
@endsection