@extends('Core.Admin.Http.Views.layout', [ 'title' => __('admin.title', [ 'name' => __('admin.users.edit_title', [ 'name' => $user->name, ]), ]), ]) @push('header') @at('Core/Admin/Http/Views/assets/styles/pages/users.scss') @at('Core/Admin/Http/Views/assets/styles/components/_tables.scss') @endpush @push('content')
@t('def.back')

@t('admin.users.edit_title', [ 'name' => htmlentities($user->name), ])

@t('admin.users.edit_description')

@if ($user->id !== user()->id) @if ($user->isBlocked()) @else @endif @endif @t('def.goto')

@t('admin.users.edit')

@csrf
{{ $user->name }}
@stack('admin-user::details')

@t('admin.users.information')

@if (sizeof($user->socialNetworks) > 0)
@foreach ($user->socialNetworks as $network)
{!! $network->socialNetwork->icon !!}
@endforeach
@stack('admin::profile_socials')
@endif
@if ($user->isBlocked())
@endif @stack('admin-user::info')
@if (sizeof($user->actionLogs) > 0)

@t('admin.users.logs')

@foreach ($user->actionLogs as $key => $log) @endforeach
@t('admin.users.action_date') @t('admin.users.action') @t('admin.users.action_details')
{{ $log->actionDate->format(default_date_format()) }} {{ __('action.' . $log->action) }} {{ $log->details ?? '-' }} @if ($log->url) @t('def.goto') @endif
@endif @if (sizeof($user->socialNetworks) > 0)

@t('admin.users.social')

{{-- --}} @foreach ($user->socialNetworks as $network) @endforeach
@t('admin.users.action') @t('admin.users.action_details') @t('admin.users.action_date')
{{ $network->name }} @if ((bool) $network->hidden === true)
@else
@endif
@endif @if (sizeof($user->invoices) > 0)

@t('admin.users.invoices.title')

@foreach ($user->invoices as $invoice) @endforeach
ID @t('admin.users.invoices.gateway') @t('admin.users.invoices.amount') @t('admin.users.invoices.promo') @t('admin.users.invoices.paid_at')
{{ $invoice->transactionId }} {{ $invoice->gateway }} {{ $invoice->originalAmount . ' ' . $invoice->currency->code }} {{ $invoice->promoCode ? $invoice->promoCode->code : '-' }} {{ $invoice->paidAt->format(default_date_format()) }}
@endif @if (sizeof($user->userDevices) > 0)

@t('admin.users.devices')

@foreach ($user->userDevices as $devices) @endforeach
@t('admin.users.device') IP
{{ $devices->deviceDetails }} {{ $devices->ip }}
@endif @stack('admin-user::container')
@endpush @push('footer') @at('Core/Admin/Http/Views/assets/js/pages/users/edit.js') @endpush