@extends('layouts.app') @section("title", "SaveSpace - Users") @section('head') @endsection @section('content')
@foreach($users as $user) @if($user->updated_at==NULL) @else @endif @if(auth()->user()->hasPermission('manage_all_users') && auth()->user()->id != $user->id) @if($user->hasRole("Referent") || $user->hasRole("Viewer") && $user->is_confirmed) @else @endif @else @endif @endforeach
State Username Name Created by Updated at Status Actions
@if($user->is_confirmed) @if ($user->is_active) Active @else Blocked @endif @else New user @endif
@if($user->avatar==NULL) avatar @else avatar @endif
{{$user->username}}
{{$user->name .' '. $user->surname}}
{{$user->role->name}}
{{$user->email}}
{{$user->phone_number}}
{{ $user->getCreatedByUsername() }}
{{$user->getCreatedByName()}}
{{ date('d.m.Y - H:i', strtotime($user->created_at)) }}
/{{ date('d.m.Y - H:i', strtotime($user->updated_at)) }} @if(Cache::has('is_online' . $user->id)) Online @else @if($user->last_seen == null) Offline @else Offline @endif @endif @if ($user->is_active) @else @endif /
@endsection @section('script') @yield('script') @endsection