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

42 lines
No EOL
1.2 KiB
PHP

@extends('layouts.account')
@section('breadcrumb')
<li class="breadcrumb-item" aria-current="page">
<a href="{{ route('admin.account.index') }}">Accounts</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Show</li>
@endsection
@section('content')
<h2>Account</h2>
<p>
<b>Id:</b> {{ $account->id }}<br />
<b>Identifier:</b> {{ $account->identifier }}<br />
<b>Email:</b> {{ $account->email }}</p>
</p>
@if ($account->alias)
<p><b>Alias:</b> {{ $account->alias->alias }}</p>
@else
<p>No alias</p>
@endif
<p>
@if ($account->activated)
<span class="badge badge-success">Activated</span> <a href="{{ route('admin.account.deactivate', $account->id) }}">Deactivate</a>
@else
<span class="badge badge-danger">Unactivated</span> <a href="{{ route('admin.account.activate', $account->id) }}">Activate</a>
@endif
</p>
<p>
@if ($account->admin)
<span class="badge badge-success">Activated</span> <a href="{{ route('admin.account.unadmin', $account->id) }}">Remove admin role</a>
@else
<span class="badge badge-danger">Unactivated</span> <a href="{{ route('admin.account.admin', $account->id) }}">Add admin role</a>
@endif
</p>
@endsection