@extends('layouts.sidebar') @section('content')

{{__('messages.Manage Users')}}

@csrf
{{__('messages.Users:')}} All - User - Vip - Admin
@if(env('REGISTER_AUTH') !== 'auth')@endif @foreach($users as $user) @php $dateFormat = __('messages.date.format'); $date = date($dateFormat, strtotime($user->created_at)); if(!isset($user->created_at)){$date = __('messages.N/A');} $lastSeen = $user->updated_at; $lastSeenDate = date($dateFormat, strtotime($lastSeen)); $timezone = new DateTimeZone(date_default_timezone_get()); $datetime = new DateTime($lastSeen, $timezone); $now = new DateTime(null, $timezone); $interval = $now->diff($datetime); $daysAgo = $interval->days." ".__('messages.days ago'); if($interval->days == 1) $daysAgo = __('messages.1 day ago'); if($interval->days == 0) $daysAgo = __('messages.Today'); if ($interval->days >= 365) { $yearsAgo = floor($interval->days / 365); if ($yearsAgo == 1) { $daysAgo = __('messages.1 year ago'); } else { $daysAgo = $yearsAgo . __('messages.years ago'); }} @endphp @if(env('REGISTER_AUTH') !== 'auth') @endif @endif @endforeach
{{__('messages.ID')}} {{__('messages.Name')}} {{__('messages.E-Mail')}} {{__('messages.Page')}} {{__('messages.Role')}} {{__('messages.Links')}} {{__('messages.Clicks')}} {{__('messages.Created at')}} {{__('messages.Last seen')}}{{__('messages.E-Mail')}}{{__('messages.Status')}} {{__('messages.Action')}}
{{ $user->id }} {{ $user->name }} {{ $user->email }} @if(isset($user->littlelink_name))  {{ $user->littlelink_name }} @else {{__('messages.N/A')}} @endif {{ $user->role }} {{$user->links}} {{$user->clicks}} {{$date}} {{$daysAgo}}@if($user->find($user->id)->role == 'admin' and $user->email_verified_at != '')
-
@else @if($user->email_verified_at == ''){{__('messages.Pending')}}@else{{__('messages.Verified')}}@endif
@if($user->find($user->id)->role == 'admin' and $user->id == 1)
-
@else@if($user->block == 'yes') {{__('messages.Pending')}} @elseif($user->block == 'no') {{__('messages.Approved')}} @endif@endif
@if($user->find($user->id)->role == 'admin' and $user->id == 1)
-
@else @endif
+ {{__('messages.Add new user')}}
@endsection