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

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 = "NULL";} $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 Total links Total clicks Created at Last seen Edit LinksE-Mail VerifiedBlock Delete user
{{ $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}} Edit View@if($user->find($user->id)->role == 'admin' and $user->email_verified_at != '')yes @else @if($user->email_verified_at == '')no@elseyes@endif@if($user->find($user->id)->role == 'admin')-@else{{ $user->block }}@endif @if($user->find($user->id)->role == 'admin')
-
@else
@endif
+ Add new user
@endsection