This repository has been archived on 2025-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dumbo/app/views/users.blade.php
2015-11-11 02:49:59 +01:00

52 lines
1.4 KiB
PHP

@extends('hello')
@section('content')
<div class="page-header"><h1>Benutzerverwaltung</h1></div>
{{$users->links()}}
<table class="table">
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Filme</th>
<th>Kommentare</th>
<th>Aktion</th>
</tr>
@foreach($users as $user)
<tr>
<td><img class="img-circle" src="{{$user->getAvatar()}}" width="32"></td>
<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-default btn-xs" type="button" href="{{ url('users/rmadm/' . $user->id) }}">Rechte entziehen</a>
@else
&mdash;
@endif
@else
@if(!$user->getSetting("disabled"))
<a class="btn btn-default btn-xs" type="button" href="{{ url("users/inact/" . $user->id) }}">Deaktivieren</a>
@else
<a class="btn btn-default btn-xs" type="button" href="{{ url("users/act/" . $user->id) }}">Aktivieren</a>
@endif
<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