mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-26 15:18:08 +00:00
65 lines
No EOL
2 KiB
PHP
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</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('pagination::bootstrap-4') }}
|
|
|
|
@endsection |