@extends('admin/layouts/admin') @section('title', __($translatePrefix . '.show.title', ['name' => $item->username])) @section('scripts') @endsection @section('content') @include('admin/shared/alerts')
@csrf @method('PUT')

{{ __($translatePrefix . '.show.title', ['name' => $item->username]) }}

{{ __($translatePrefix. '.show.subheading', ['date' => $item->created_at != null ? $item->created_at->format('d/m/y') : 'None']) }}

@include('admin/shared/input', ['name' => 'username', 'label' => __('global.username'), 'value' => old('username', $item->username)])
@include('admin/shared/input', ['name' => 'firstname', 'label' => __('global.firstname'), 'value' => old('firstname', $item->firstname)])
@include('admin/shared/input', ['name' => 'lastname', 'label' => __('global.lastname'), 'value' => old('lastname', $item->lastname)])
@include('admin/shared/input', ['name' => 'email', 'label' => __('global.email'), 'value' => old('email', $item->email), 'type' => 'email']) @include('admin/shared/select', ['name' => 'locale', 'label' => __('global.locale'), 'options' => $locales, 'value' => old('locale', $item->locale)])
@include('admin/shared/password', ['name' => 'password', 'label' => __('global.password'), 'help' => __('admin.blanktochange')])
@include('admin/shared/textarea', ['name' => 'signature', 'label' => __('admin.admins.signature'), 'value' => old('signature', $item->signature)])

{{ __($translatePrefix . '.show.login') }}

@include('admin/core/actionslog/usertable', ['logs' => $logs])

{{ __($translatePrefix. '.show.details') }}

@include('admin/shared/input', ['name' => 'last_ip', 'label' => __('admin.customers.show.last_ip'), 'value' => old('last_ip', $item->last_login_ip), 'disabled' => true])
@include('admin/shared/input', ['name' => 'last_login', 'label' => __('admin.customers.show.last_login'), 'value' => old('last_login', $item->last_login), 'disabled' => true])

{{ __('client.profile.2fa.title') }}

@if (!auth('admin')->user()->twoFactorEnabled())

{{ __('client.profile.2fa.info') }}

@else

{!! __('client.profile.2fa.download_codes', ['url' => route('admin.profile.2fa_codes')]) !!}

@endif
@csrf @if (!auth('admin')->user()->twoFactorEnabled()) {!! $qrcode !!} @include("shared/input", ["name" => "2fa", "label" => __('client.profile.2fa.code'), "help" => $code]) @else @include("shared/input", ["name" => "2fa", "label" => __('client.profile.2fa.code')]) @endif
@if ($item->role->is_admin)

{{ __('permissions.staff_permissions') }}

{{ $item->role->name }}

@endif @if ($item->role->permissions->count() > 0)

{{ __('permissions.staff_permissions') }}

@foreach ($item->role->permissions->chunk(3) as $row)
    @foreach($row as $permission)
  • {{ $permission->translate() }}
  • @endforeach
@endforeach
@endif
@if (staff_has_permission('admin.show_metadata')) @endif
@include('admin/metadata/overlay', ['item' => $item]) @endsection