-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.blade.php
65 lines (51 loc) · 1.35 KB
/
index.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@extends('admin.layouts.default', ['use_footer'=>false])
{{-- Web site Title --}}
@section('title')
{{Config::get('config.site_name')}} | Admin | Notifications
@stop
@section('scripts')
@stop
{{-- Content --}}
@section('content')
<section class="content container">
@if ($users->count()>0)
<table class="ui celled table">
<thead>
<tr>
<th>User</th>
<th>Created Tasks</th>
<th>Claimed Tasks</th>
<th>Roles</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach ($users as $user)
<tr>
<td>
<h4 class="ui image header">
<img src="{{$user->profileImage->url('s30')}}" class="ui mini circular image">
<div class="content">
{{link_to($user->getProfileURL(), $user->getName())}}
<div class="sub header">{{$user->email}}</div>
</div>
</h4>
</td>
<td>{{$user->createdTasks->count()}}</td>
<td>{{$user->claimedTasks->count()}}</td>
<td>{{$user->getRoles()}}</td>
<td style="text-align:center"><a class="mini ui button" href="/admin/users/{{$user->id}}/roles/edit">Edit</a></td>
</tr>
@endforeach
</tbody>
</table>
<br>
<div class="text-center">
{{$users->links()}}
</div>
@include('site.partials.form-errors')
@else
<h3>No Users</h3>
@endif
</section>
@stop