tethys/resources/views/settings/user/user.blade.php

63 lines
2.0 KiB
PHP
Raw Normal View History

2018-08-31 14:47:04 +00:00
@extends('settings.layouts.app')
2018-08-06 12:30:51 +00:00
@section('content')
2018-08-29 15:18:15 +00:00
<div class="header">
<h3 class="header-title">
<i class="fa fa-users"></i>
<span> Users Management</span>
</h3>
</div>
2018-08-06 12:30:51 +00:00
2018-08-29 15:18:15 +00:00
<div class="pure-g box-content">
2018-08-06 12:30:51 +00:00
2018-08-29 15:18:15 +00:00
<div class="pure-u-1 pure-u-md-2-3">
2018-08-31 14:47:04 +00:00
<a class="pure-button button-small is-primary" href="{{ route('settings.user.create') }}">
2018-08-29 15:18:15 +00:00
<i class="fa fa-plus-circle"></i>
<span>Create New User</span>
</a>
<br><br>
2018-08-06 12:30:51 +00:00
2018-08-29 15:18:15 +00:00
@if ($message = Session::get('success'))
<div class="alert summary-success">
<p>{{ $message }}</p>
2018-08-06 12:30:51 +00:00
</div>
2018-08-29 15:18:15 +00:00
@endif
<table class="pure-table users">
<thead>
<tr>
<th>No</th>
<th>Name</th>
<th>Email</th>
<th>Roles</th>
<th width="280px">Action</th>
</tr>
</thead>
<tbody>
@foreach ($users as $key => $user)
<tr>
<td>{{ ++$i }}</td>
<td>{{ $user->login }}</td>
<td>{{ $user->email }}</td>
<td>
@if(!empty($user->roles))
@foreach($user->roles as $role)
<label class="badge badge-success">{{ $role->name }}</label>
@endforeach
@endif
</td>
<td>
2018-08-31 14:47:04 +00:00
<a class="edit" href="{{ route('settings.user.edit', $user->id) }}">&nbsp;Edit</a>
2018-08-29 15:18:15 +00:00
<span>&nbsp;</span>
2018-08-31 14:47:04 +00:00
<a class="delete" href="{{ route('settings.user.destroy', $user->id) }}"><span>&nbsp;Delete</span></a>
2018-08-29 15:18:15 +00:00
</td>
</tr>
@endforeach
</tbody>
</table>
{!! $users->render() !!}
2018-08-06 12:30:51 +00:00
</div>
2018-08-29 15:18:15 +00:00
2018-08-06 12:30:51 +00:00
</div>
@stop