@extends('admin.layouts.app') @section('title', admin_trans('users')) @section('page-title', admin_trans('users')) @section('content')
@foreach(request()->except(['search', 'page']) as $key => $value) @if(is_array($value)) @foreach($value as $v) @endforeach @else @endif @endforeach
{{ admin_trans('add_user') }}

{{ admin_trans('filters') }}

@if(request('search'))@endif
@if($countries->count() > 0) @endif @if($languages->count() > 0) @endif
{{ admin_trans('apply_filters') }}
@if(request()->hasAny(['search', 'role', 'verified', 'guest', 'banned', 'country_id', 'language_id', 'date_from', 'date_to', 'sort']))
{{ admin_trans('clear_all_filters') }}
@endif
{{ admin_trans('verify') }} {{ admin_trans('unverify') }} {{ admin_trans('ban') }} {{ admin_trans('unban') }} {{ admin_trans('delete') }} {{ admin_trans('clear') }}
@if ($users->isEmpty()) {{ admin_trans('add_user') }} @else @foreach ($users as $user)
{{ substr($user->name, 0, 1) }}
{{ $user->name }} @if($user->is_guest) {{ admin_trans('guest') }} @endif
ID: {{ $user->id }}
{{ $user->email }}
@if($user->phone)
{{ $user->country_code }}{{ $user->phone }}
@endif
@php $roleVariant = match($user->role) { 'admin' => 'danger', 'store_owner' => 'warning', 'user' => 'info', default => 'secondary' }; @endphp {{ admin_trans($user->role) }}
@if($user->country)
{{ $user->country->code }}
@endif @if($user->language)
{{ $user->language->code }}
@endif
@if($user->is_verified) @else @endif
@if($user->phone)
@if($user->otp_verified_at) @else @endif
@endif
@if($user->is_banned) {{ admin_trans('banned') }} @else {{ admin_trans('active') }} @endif
{{ $user->created_at->format('d/m/Y') }}
{{ $user->created_at->diffForHumans() }}
@if($user->is_banned) @else @endif @if($user->id !== auth()->id()) @endif
@endforeach
@if ($users->hasPages())
@endif @endif

{{ admin_trans('add_user') }}

@csrf
@foreach($languages as $language) @endforeach
{{ admin_trans('cancel') }} {{ admin_trans('create') }}

{{ admin_trans('edit_user') }}

@csrf @method('PUT')
{{ admin_trans('select_country') }}
{{ admin_trans('no_results_found') }}
{{ admin_trans('user_id') }}

{{ admin_trans('registered') }}

{{ admin_trans('last_update') }}

{{ admin_trans('cancel') }} {{ admin_trans('update') }}

{{ admin_trans('user_details') }}

• {{ admin_trans('guest') }} • {{ admin_trans('banned') }}
{{ admin_trans('verify_email') }} {{ admin_trans('unverify_email') }} {{ admin_trans('ban_user') }} {{ admin_trans('unban_user') }}

{{ admin_trans('contact_information') }}

{{ admin_trans('email') }}:
{{ admin_trans('phone') }}:
{{ admin_trans('e164_format') }}:

{{ admin_trans('account_status') }}

{{ admin_trans('email_verified') }}:
{{ admin_trans('account_type') }}:
{{ admin_trans('status') }}:

{{ admin_trans('location_preferences') }}

{{ admin_trans('country') }}:
{{ admin_trans('language') }}:

{{ admin_trans('activity_summary') }}

{{ admin_trans('devices_count') }}:
{{ admin_trans('oauth_providers') }}:
{{ admin_trans('registered') }}:

{{ admin_trans('ban_information') }}

{{ admin_trans('reason') }}:
{{ admin_trans('banned_at') }}:
{{ admin_trans('expires_at') }}:

{{ admin_trans('ban_user') }}

{{ admin_trans('cancel') }} {{ admin_trans('ban_user') }}

{{ admin_trans('ban_selected_users') }}

{{ admin_trans('cancel') }} {{ admin_trans('ban_users') }}
@endsection @push('scripts') @endpush