@extends('dashboard.layouts.main') @section('title', getSiteName() . ' - Dashboard - Users') @section('content')
@if(session('success'))
@endif

{{ __('Users') }}

@can('add roles') {{ __('Add New User') }} @endcan
@can('delete roles') @endcan @foreach($users as $user) @can('delete roles') @endcan @endforeach
{{ __('Name') }} {{ __('Email') }} {{ __('Role') }} {{ __('Status') }} {{ __('Created At') }}{{ __('Delete') }}
{{ $user->name }} {{ $user->email }} {{ $user->getRoleNames()->first() }} @if($user->status) Active @else Inactive @endif @if($user->created_at) {{ Carbon\Carbon::parse($user->created_at)->format('d.m.Y') }}
{{ Carbon\Carbon::parse($user->created_at)->format('H:i') }} @endif
@if($user->id != Auth::user()->id) @endif
Showing {{ $users->count() }} of {{ $users->total() }} users
@if($users->hasPages()) {{ $users->onEachSide(0, 2)->links('dashboard.partials.pagination') }} @endif
@endsection @section('footer-scripts') @endsection