flexisip-account-manager/flexiapi/resources/views/admin/account/index.blade.php
Timothée Jaussoin 89bee3ca18 Fix OVH SMS sender name
Fix admins pagination
Update the dependencies
Update RPM release number to 27
2020-09-21 14:41:24 +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</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