flexisip-account-manager/flexiapi/resources/views/account/panel.blade.php
Timothée Jaussoin c65f1a804c UI and feature adjustments
- Add a toggle for the phone SMS registration/auth related features
- Add the newsletter email registration toggle
- Rename and move around views and controllers
- Refactor the login and registration forms
- Split the registration form in two, email and phone
2020-09-14 11:24:59 +02:00

58 lines
No EOL
2.1 KiB
PHP

@extends('layouts.account')
@section('content')
<h2>Manage your account</h2>
<div class="list-group mb-3 pt-2">
<a href="{{ route('account.email') }}" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Change my current account email</h5>
</div>
@if (!empty($account->email))
<p class="mb-1">{{ $account->email }}</p>
@else
<p class="mb-1">No email yet</p>
@endif
</a>
<a href="{{ route('account.device.index') }}" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Manage my devices</h5>
</div>
<p class="mb-1">See and delete the devices linked to your account</p>
</a>
<a href="{{ route('account.password') }}" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
@if ($account->passwords()->count() > 0)
<h5 class="mb-1">Change my password</h5>
@else
<h5 class="mb-1">Set my password</h5>
@endif
</div>
@if ($account->passwords()->where('algorithm', 'SHA-256')->exists())
<p class="mb-1">SHA-256 password configured</p>
@else
<p class="mb-1">MD5 password only</p>
@endif
</a>
<a href="{{ route('account.delete') }}" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Delete my account</h5>
</div>
<p class="mb-1">Remove your account from our service</p>
</a>
</div>
@if($account->isAdmin())
<h3>Admin area</h3>
<div class="list-group">
<a href="{{ route('admin.account.index') }}" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Accounts</h5>
</div>
<p class="mb-1">Manage the FlexiSIP accounts</p>
</a>
</div>
@endif
@endsection