neuester Stand
This commit is contained in:
1 parent
5cb555e869
commit
7d21be1a66
14 files changed
+707
-29
No files matched your search
@@ -0,0 +1,45 @@
|
||||
@extends('hello')
|
||||
|
||||
@section('content')
|
||||
<div class="page-header"><h1>Benutzerverwaltung</h1></div>
|
||||
|
||||
{{$users->links()}}
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Filme</th>
|
||||
<th>Kommentare</th>
|
||||
<th>Aktion</th>
|
||||
</tr>
|
||||
@foreach($users as $user)
|
||||
<tr>
|
||||
<td>{{$user->name}}</td>
|
||||
<td>{{$user->email}}</td>
|
||||
<td>{{$user->films()->count()}}</td>
|
||||
<td>{{$user->comments()->count()}}</td>
|
||||
<td>
|
||||
@if($user->admin)
|
||||
@if($user->name != "Daniel")
|
||||
<button class="btn btn-primary btn-xs" type="button">Admin</button>
|
||||
<a class="btn btn-warning btn-xs" type="button" href="{{ url('users/rmadm/' . $user->id) }}">Rechte entziehen</a>
|
||||
@else
|
||||
—
|
||||
@endif
|
||||
@else
|
||||
<a class="btn btn-default btn-xs" type="button" href="{{ url('users/mkadm/' . $user->id) }}">Zum Admin machen</a>
|
||||
<a class="btn btn-danger btn-xs" type="button" href="{{ url('users/rmusr/' . $user->id) }}">Löschen</a>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
{{$users->links()}}
|
||||
|
||||
@stop
|
||||
|
||||
@section('title')
|
||||
Benutzerverwaltung ~
|
||||
@stop
|
||||
Reference in new issue
Block a user