@extends('layouts.app') @section("title", "Users") @section('pageTitle', 'User List') @section('head') @endsection @section('content')
@foreach($users as $user) @if($user->last_seen==NULL) @else @endif @if($user->hasRole("Referent") && $user->is_confirmed) @else @endif @endforeach
{{--
--}} {{-- --}} {{-- --}} {{--
--}}
State Username Name Email Phone Number Created 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->mobile_number}} {{ date('d.m.Y', strtotime($user->created_at)) }} {{ $user->role->name }} @if(Cache::has('is_online' . $user->id)) Online @else Offline @endif Never logged in{{ \Carbon\Carbon::parse($user->last_seen)->diffForHumans() }} $user->id]) }}" class="text-secondary" data-toggle="tooltip" title="Edit"> $user->id]) }}" data-method="delete" title="Delete"> Not available
@endsection @section('script') @endsection