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

Manage Users

@csrf
Users: All - User - Vip - Admin
@if(env('REGISTER_AUTH') !== 'auth')@endif @foreach($users as $user) @php $dateFormat = 'd/m/Y'; $date = date($dateFormat, strtotime($user->created_at)); if(!isset($user->created_at)){$date = "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." days ago"; if($interval->days == 1) $daysAgo = "1 day ago"; if($interval->days == 0) $daysAgo = "Today"; if ($interval->days >= 365) { $yearsAgo = floor($interval->days / 365); if ($yearsAgo == 1) { $daysAgo = "1 year ago"; } else { $daysAgo = "$yearsAgo years ago"; }} @endphp @if(env('REGISTER_AUTH') !== 'auth') @endif @endif @endforeach
ID Name E-Mail Page Role Links Clicks Created at Last seenE-MailStatus Action
{{ $user->id }} {{ $user->name }} {{ $user->email }} @if(isset($user->littlelink_name))  {{ $user->littlelink_name }} @else 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 == '')Pending@elseVerified@endif
@if($user->find($user->id)->role == 'admin' and $user->id == 1)
-
@else@if($user->block == 'yes') Pending @elseif($user->block == 'no') Approved @endif@endif
@if($user->find($user->id)->role == 'admin' and $user->id == 1)
-
@else @endif
+ Add new user
@endsection