| Server IP : 23.254.227.96 / Your IP : 216.73.216.21 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/viralblo/instantblog/resources/views/posts/ |
Upload File : |
@extends('layouts.admin')
@section('content')
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">@lang('admin.users')</h1>
</div>
<div class="row box-white ms-3 me-3 shadow-sm">
<table class="table table-sm table-hover">
<thead>
<tr>
<th>@lang('admin.id')</th>
<th>@lang('admin.name')</th>
<th>@lang('admin.username')</th>
<th>@lang('admin.role')</th>
<th>@lang('admin.edit')</th>
<th>@lang('admin.delete')</th>
</tr>
</thead>
<tbody>
@forelse($users as $user)
<tr>
<th scope="row">{{ $user->id }}</th>
<td>
<a href="{{url('/profile/' . $user->username)}}">
{{ $user->name }}
</a>
</td>
<td>{{ $user->username}}</td>
<td>
@if($user->status == "1")
<label class="badge bg-danger">@lang('admin.banned')</label>
@elseif (isset($user->role))
<label class="badge bg-info">{{ $user->role }}</label>
@endif
</td>
<td><a href="{{ url('/users/' . $user->username . '/edit') }}">Edit</a></td>
<td><a class="color-delete" href="{{ url('/users/' . $user->username) }}">@lang('admin.delete')</a></td>
</tr>
@empty
@lang('admin.nouser')
@endforelse
</tbody>
</table>
</div>
<div class="row">
<div class="col-md-12">
{{ $users->links() }}
</div>
</div>
@endsection