@extends('layouts.app') @section("title", "SaveSpace - Users") @section('pageTitle', 'Users') @section('head') @endsection @section('content')
State | Username | Name | Phone Number | Created by | Created at | Updated at | Role | Status | Last seen | Actions | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@if($user->is_confirmed) @if ($user->is_active) Active @else Blocked @endif @else New user @endif | @include('dashboard.partials.avatar') {{$user->username}} | {{$user->name .' '. $user->surname}} | {{$user->email}} | {{$user->phone_number}} | {{ $user->getCreatedByName() }} | {{ date('d.m.Y - H:i', strtotime($user->created_at)) }} | @if($user->updated_at==NULL)/ | @else{{ date('d.m.Y - H:i', strtotime($user->updated_at)) }} | @endif{{ $user->role->name }} | @if(Cache::has('is_online' . $user->id)) Online @else Offline @endif | @if($user->last_seen==NULL)Never logged in | @else{{ \Carbon\Carbon::parse($user->last_seen)->diffForHumans() }} | @endif @if($user->hasRole("Referent") && $user->is_confirmed)$user->id]) }}" class="text-secondary" data-toggle="tooltip" title="Edit"> $user->id]) }}" data-method="delete" title="Delete"> | @elseNot available | @endif