@extends('layouts.app') @section('title', 'Daftar Users') @section('content')

Daftar Users

Kelola pengguna sistem

Tambah User
@if(session('success')) @endif @if(session('error')) @endif
@if($users->count() > 0)
@foreach($users as $user) @endforeach
# Avatar Nama & Username Email Role Status Tanggal Aksi
{{ $loop->iteration }} @if($user->foto && file_exists(storage_path('app/public/users/' . $user->foto))) {{ $user->name }} @else
{{ strtoupper(substr($user->name, 0, 2)) }}
@endif
{{ $user->name }}
{{ $user->username }}
{{ $user->email }} @php $roleColors = [ 'administrator' => 'danger', 'admin' => 'primary', 'teknisi' => 'info', 'reseler' => 'warning', 'pelanggan' => 'success' ]; @endphp {{ ucfirst($user->role) }} {{ ucfirst($user->status) }} {{ $user->created_at->format('d/m/Y') }}
@if($user->id != auth()->id()) @endif
@foreach($users as $user)
@if($user->foto && file_exists(storage_path('app/public/users/' . $user->foto))) {{ $user->name }} @else
{{ strtoupper(substr($user->name, 0, 2)) }}
@endif
{{ $user->name }}
{{ $user->username }}
{{ $user->email }}
@php $roleColors = [ 'administrator' => 'danger', 'admin' => 'primary', 'teknisi' => 'info', 'reseler' => 'warning', 'pelanggan' => 'success' ]; @endphp {{ ucfirst($user->role) }} {{ ucfirst($user->status) }}
{{ $user->created_at->format('d M Y') }}
@if($user->id != auth()->id()) @endif
@endforeach
@if($users->hasPages()) @endif @else
Tidak ada data user

Belum ada user yang terdaftar dalam sistem.

Tambah User Pertama
@endif
@endsection @push('scripts') @endpush