2021-04-16 01:00:00 +02:00
|
|
|
@extends('layouts.sidebar')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<h2 class="mb-4"><i class="bi bi-person"> Users</i></h2>
|
|
|
|
|
|
|
|
<form action="{{ route('searchUser') }}" method="post">
|
|
|
|
@csrf
|
|
|
|
<div class="form-group col-lg-8 mb-5">
|
|
|
|
<input type="text" name="name" placeholder="search user">
|
|
|
|
<button type="submit" class="btn-primary"><i class="bi bi-search"></i></button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
Users:
|
2021-07-06 10:50:47 +02:00
|
|
|
<a href="{{ config('app.url') }}/panel/users/all">All</a> -
|
|
|
|
<a href="{{ config('app.url') }}/panel/users/user">User</a> -
|
|
|
|
<a href="{{ config('app.url') }}/panel/users/vip">Vip</a> -
|
|
|
|
<a href="{{ config('app.url') }}/panel/users/admin">Admin</a>
|
2021-04-16 01:00:00 +02:00
|
|
|
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-07-06 10:50:47 +02:00
|
|
|
<th scope="col">Name</th>
|
|
|
|
<th scope="col">Page</th>
|
2021-04-16 01:00:00 +02:00
|
|
|
<th scope="col">Role</th>
|
2021-07-06 10:50:47 +02:00
|
|
|
<th scope="col">Edit</th>
|
2021-04-16 01:00:00 +02:00
|
|
|
<th scope="col">Block</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($users as $user)
|
|
|
|
<tr>
|
2021-07-06 10:50:47 +02:00
|
|
|
<td> {{ $user->name }} </td>
|
|
|
|
<td><a href="{{ config('app.url') }}/@<?= $user->littlelink_name ?>" target="_blank" class="text-info"><i class="bi bi-box-arrow-up-right"></i> {{ $user->littlelink_name }} </a></td>
|
2021-04-16 01:00:00 +02:00
|
|
|
<td>{{ $user->role }}</td>
|
2021-07-06 10:50:47 +02:00
|
|
|
<td><a href="{{ route('editUser', $user->id ) }}">Edit</a></td>
|
2021-04-16 01:00:00 +02:00
|
|
|
<td><a href="{{ route('blockUser', ['block' => $user->block, 'id' => $user->id] ) }}" class="text-danger">{{ $user->block }}</a></td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@endsection
|