flexisip-account-manager/flexiapi/resources/views/admin/account/index.blade.php
Timothée Jaussoin f98df3f830 Add admin panel system
Add two commands RemoveUnconfirmedAccount and SetAccountAdmin
2020-09-14 11:24:59 +02:00

48 lines
No EOL
1.3 KiB
PHP

@extends('layouts.account')
@section('breadcrumb')
<li class="breadcrumb-item active" aria-current="page">Accounts</li>
@endsection
@section('content')
<h2>Accounts</h2>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Identifier</th>
<th scope="col">Email</th>
<th scope="col">Created</th>
<th scope="col">Tags</th>
</tr>
</thead>
<tbody>
@foreach ($accounts as $account)
<tr>
<th scope="row">
<a href="{{ route('admin.account.show', $account->id) }}">{{ $account->id }}</a>
</th>
<td>{{ $account->identifier }}</td>
<td>{{ $account->email }}</td>
<td>{{ $account->creation_time}}</td>
<td>
@if ($account->activated)
<span class="badge badge-success">Activated</span>
@else
<span class="badge badge-danger">Unactivated</span>
@endif
@if ($account->admin)
<span class="badge badge-primary">Admin</span>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
{{ $accounts->links() }}
@endsection