flexisip-account-manager/flexiapi/resources/views/admin/account/index.blade.php
Timothée Jaussoin 13a1eb4dc5 Add account deletetion feature in the Admin panel
Add the provisioning elements to the user admin page
Add missing file headers, cleanup code
Bump the dependencies
2021-07-06 15:35:21 +02:00

65 lines
No EOL
2 KiB
PHP

@extends('layouts.account')
@section('breadcrumb')
<li class="breadcrumb-item active" aria-current="page">Accounts</li>
@endsection
@section('content')
<div class="row mb-2">
<div class="col-sm">
<h2>Accounts</h2>
</div>
<div class="col-sm">
{!! Form::open(['route' => 'admin.account.search']) !!}
<div class="form-row">
<div class="col-8">
{!! Form::text('search', $search, ['class' => 'form-control', 'placeholder' => 'Search by username: +1234, foo_bar…']) !!}
</div>
<div class="col-4">
<button type="submit" class="btn btn-primary">Search</button>
</div>
</div>
{!! Form::close() !!}
</div>
</div>
<table class="table table-responsive-md">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Identifier (email)</th>
<th scope="col">Created</th>
</tr>
</thead>
<tbody>
@foreach ($accounts as $account)
<tr>
<th scope="row">
<a href="{{ route('admin.account.show', $account->id) }}">{{ $account->id }}</a>
<br />
@if ($account->activated)
<span class="badge badge-success">Activated</span>
@else
<span class="badge badge-danger">Unactivated</span>
@endif
@if ($account->admin)
<br /><span class="badge badge-primary">Admin</span>
@endif
</th>
<td>{{ $account->identifier }}
@if ($account->email)
(<a href="mailto:{{ $account->email }}">{{ $account->email }}</a>)
@endif
</td>
<td>{{ $account->creation_time}}</td>
</tr>
@endforeach
</tbody>
</table>
{{ $accounts->links('pagination::bootstrap-4') }}
@endsection