Fix FLEXIAPI-238 Replace Material Icons with Phosphor

This commit is contained in:
Timothée Jaussoin 2024-11-06 16:42:19 +01:00
parent 86715d6048
commit dcdf364517
48 changed files with 4728 additions and 125 deletions

View file

@ -11,6 +11,7 @@ v1.6
- Fix FLEXIAPI-213 Add TURN credentials support in the API as defined in draft-uberti-behave-turn-rest-00
- Fix FLEXIAPI-216 Implement the RFC 8898 partially... for HTTP
- Fix FLEXIAPI-239 Ensure to return the correct error codes as stated in the RFC6750 section 3.1
- Fix FLEXIAPI-238 Replace Material Icons with Phosphor
v1.5
---

View file

@ -1,3 +1,5 @@
@import url('../fonts/Phosphor.css');
@font-face {
font-family: 'Noto Sans';
font-style: normal;

View file

@ -208,14 +208,14 @@ form div.checkbox {
form div.search:after,
form div.select:after {
font-family: 'Material Symbols Outlined';
content: "\e5cf";
font-family: 'Phosphor';
content: "\e136";
display: block;
font-size: 2.5rem;
color: var(--second-6);
position: absolute;
right: 1rem;
top: 2.75rem;
top: 2.6rem;
pointer-events: none;
line-height: 4rem;
}
@ -225,7 +225,7 @@ form div.search input {
}
form div.search:after {
content: "\e8b6";
content: "\e30c";
}
form div input[disabled],

View file

@ -1,28 +1,6 @@
@import url('./fonts.css');
@import url('./form.css');
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 400;
src: url(../fonts/MaterialSymbols-Outlined.woff2) format('woff2');
}
.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-moz-font-feature-settings: 'liga';
-moz-osx-font-smoothing: grayscale;
}
* {
margin: 0;
padding: 0;
@ -290,13 +268,13 @@ header nav a#menu {
header nav a#menu:after {
display: block;
font-family: 'Material Symbols Outlined';
content: "\e5d2";
font-family: 'Phosphor';
content: "\e2f0";
font-size: 3rem;
}
body.show_menu header nav a#menu:after {
font-family: 'Material Symbols Outlined'
font-family: 'Phosphor'
header nav a#logo {
position: absolute;
@ -409,7 +387,7 @@ content>nav {
background-color: var(--main-5);
width: 20rem;
margin-left: 0;
padding: 2rem;
padding: 1.5rem;
border-radius: 0 3rem 0 0;
padding-bottom: 10rem;
@ -442,12 +420,9 @@ content>nav a.current {
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
}
content>nav a.current i {
font-variation-settings: 'FILL' 1;
}
content>nav a i {
margin-right: 0.75rem;
margin-left: 0.25rem;
font-size: 2rem;
}
@ -671,8 +646,8 @@ table tr.empty td {
}
table tr.empty td:before {
content: '\e5c9';
font-family: 'Material Symbols Outlined';
content: '\e602';
font-family: 'Phosphor';
font-size: 8rem;
color: var(--second-4);
display: block;

4625
flexiapi/public/fonts/Phosphor.css vendored Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

View file

@ -8,7 +8,7 @@
@section('content')
<div class="large">
<h2><i class="material-symbols-outlined">key</i>API Key</h2>
<h2><i class="ph">key</i>API Key</h2>
<p>You can generate an API key and use it to request the different API endpoints, <a href="{{ route('api') }}">check
the related API documentation</a> to know how to use that key.</p>

View file

@ -2,13 +2,13 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">dashboard</i> Dashboard</h1>
<h1><i class="ph">gauge</i> Dashboard</h1>
</header>
<div class="card">
<h3><i class="material-symbols-outlined">waving_hand</i> Welcome back</h3>
<h3><i class="ph">hand-waving</i> Welcome back</h3>
<p>
<i class="material-symbols-outlined">email</i>
<i class="ph">envelope</i>
@if (!empty($account->email))
{{ $account->email }}
@else
@ -19,7 +19,7 @@
@if (config('app.phone_authentication'))
<p>
<i class="material-symbols-outlined">call</i>
<i class="ph">phone</i>
@if (!empty($account->phone))
{{ $account->phone }}
@else
@ -30,13 +30,13 @@
@endif
<p>
<i class="material-symbols-outlined">devices</i>
<i class="ph">devices</i>
<a href="{{ route('account.device.index') }}">
Edit my devices
</a>
</p>
<p>
<i class="material-symbols-outlined">lock</i>
<i class="ph">lock</i>
<a href="{{ route('account.password.show') }}">
@if ($account->passwords()->count() > 0)
Change my password
@ -47,31 +47,31 @@
</p>
<p>
<i class="material-symbols-outlined">key</i>
<i class="ph">key</i>
<a href="{{ route('account.api_key.show') }}">
API Key Management
</a>
</p>
<p>
<i class="material-symbols-outlined">delete</i>
<i class="ph">trash</i>
<a href="{{ route('account.delete') }}">Delete my account</a>
</p>
</div>
<div class="card">
<h3><i class="material-symbols-outlined">person</i> Account information</h3>
<h3><i class="ph">person</i> Account information</h3>
<p><i class="material-symbols-outlined">alternate_email</i> SIP address: sip:{{ $account->identifier }}</p>
<p><i class="material-symbols-outlined">person</i> Username: {{ $account->username }}</p>
<p><i class="material-symbols-outlined">dns</i> Domain: {{ $account->domain }}</p>
<p><i class="ph">envelope</i> SIP address: sip:{{ $account->identifier }}</p>
<p><i class="ph">user</i> Username: {{ $account->username }}</p>
<p><i class="ph">hard-drives</i> Domain: {{ $account->domain }}</p>
@if (!empty(config('app.proxy_registrar_address')))
<p><i class="material-symbols-outlined">lan</i> Proxy/registrar address: sip:{{ config('app.proxy_registrar_address') }}
<p><i class="ph">lan</i> Proxy/registrar address: sip:{{ config('app.proxy_registrar_address') }}
</p>
@endif
@if (!empty(config('app.transport_protocol_text')))
<p><i class="material-symbols-outlined">settings_ethernet</i> Transport: {{ config('app.transport_protocol_text') }} </p>
<p><i class="ph">sliders</i> Transport: {{ config('app.transport_protocol_text') }} </p>
@endif
<!--<h3 class="mt-3">Automatic authentication</h3>

View file

@ -6,7 +6,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">delete</i> Delete my account</h1>
<h1><i class="ph">trash</i> Delete my account</h1>
<a href="{{ route('account.dashboard') }}" class="btn btn-secondary oppose">Cancel</a>
<input form="delete" class="btn" type="submit" value="Delete">

View file

@ -7,7 +7,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">devices</i> Devices management</h1>
<h1><i class="ph">devices</i> Devices management</h1>
</header>
<table>

View file

@ -3,7 +3,7 @@
@section('content')
<section>
<h1>
<i class="material-symbols-outlined">mail</i>
<i class="ph">envelope</i>
@if ($account->email)
Change your email
@else

View file

@ -2,7 +2,7 @@
@section('content')
<section>
<h1 style="margin-bottom: 4rem;"><i class="material-symbols-outlined">account_circle</i> Validate your email</h1>
<h1 style="margin-bottom: 4rem;"><i class="ph">user-circle</i> Validate your email</h1>
<form method="POST" action="{{ route('account.email.update') }}" accept-charset="UTF-8">
@csrf

View file

@ -2,7 +2,7 @@
@section('content')
<section>
<h1 style="margin-bottom: 3rem;"><i class="material-symbols-outlined">waving_hand</i> Welcome on {{ config('app.name') }}</h1>
<h1 style="margin-bottom: 3rem;"><i class="ph">hand-waving</i> Welcome on {{ config('app.name') }}</h1>
@if (config('instance.intro_registration'))
@parsedown(config('instance.intro_registration'))

View file

@ -7,9 +7,9 @@
@section('content')
<header>
@if ($account->passwords()->count() > 0)
<h1><i class="material-symbols-outlined">lock</i> Change password</h1>
<h1><i class="ph">lock</i> Change password</h1>
@else
<h1><i class="material-symbols-outlined">lock</i> Set password</h1>
<h1><i class="ph">lock</i> Set password</h1>
@endif
<a href="{{ route('account.dashboard') }}" class="btn btn-secondary oppose">Cancel</a>

View file

@ -3,7 +3,7 @@
@section('content')
<section>
<h1>
<i class="material-symbols-outlined">call</i>
<i class="ph">phone</i>
@if ($account->phone)
Change your phone number
@else

View file

@ -2,7 +2,7 @@
@section('content')
<section>
<h1><i class="material-symbols-outlined">account_circle</i> Validate your phone number</h1>
<h1><i class="ph">user-circle</i> Validate your phone number</h1>
<form method="POST" action="{{ route('account.phone.update') }}" accept-charset="UTF-8">
@csrf

View file

@ -3,7 +3,7 @@
@section('content')
<section>
<h1><i class="material-symbols-outlined">account_circle</i> Account recovery</h1>
<h1><i class="ph">user-circle</i> Account recovery</h1>
<form method="POST" action="{{ route('account.recovery.confirm') }}" accept-charset="UTF-8">
@csrf

View file

@ -2,7 +2,7 @@
@section('content')
<section>
<h1><i class="material-symbols-outlined">account_circle</i> Account recovery</h1>
<h1><i class="ph">user-circle</i> Account recovery</h1>
<div>
<form method="POST" action="{{ route('account.recovery.send') }}" accept-charset="UTF-8">
@csrf

View file

@ -2,7 +2,7 @@
@section('content')
<section>
<h1><i class="material-symbols-outlined">account_circle</i> Register</h1>
<h1><i class="ph">user-circle</i> Register</h1>
<p style="margin-bottom: 2rem;">
You already have an account?
<a class="btn btn-secondary" href="{{ route('account.login') }}">Login</a>

View file

@ -2,7 +2,7 @@
@section('content')
<section>
<h1><i class="material-symbols-outlined">account_circle</i> Register</h1>
<h1><i class="ph">user-circle</i> Register</h1>
<p style="margin-bottom: 2rem;">
You already have an account?
<a class="btn btn-secondary" href="{{ route('account.login') }}">Login</a>

View file

@ -9,7 +9,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">view_list</i> {{ $account->identifier }}</h1>
<h1><i class="ph">list</i> {{ $account->identifier }}</h1>
</header>
@include('admin.account.parts.tabs')

View file

@ -8,7 +8,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">person_add</i> Add a Contact</h1>
<h1><i class="ph">user-plus</i> Add a Contact</h1>
<a href="{{ route('admin.account.edit', $account->id) }}" class="btn btn-secondary oppose">Cancel</a>
<input form="add_contact" class="btn" type="submit" value="Add">
</header>

View file

@ -13,10 +13,10 @@
@section('content')
@if ($account->id)
<header>
<h1><i class="material-symbols-outlined">people</i> {{ $account->identifier }}</h1>
<h1><i class="ph">users</i> {{ $account->identifier }}</h1>
<a href="{{ route('admin.account.index') }}" class="btn btn-secondary oppose">Cancel</a>
<a class="btn btn-secondary" href="{{ route('admin.account.delete', $account->id) }}">
<i class="material-symbols-outlined">delete</i>
<i class="ph">trash</i>
Delete
</a>
<input form="create_edit" class="btn" type="submit" value="Update">
@ -27,7 +27,7 @@
@include('admin.account.parts.tabs')
@else
<header>
<h1><i class="material-symbols-outlined">people</i> Create an account</h1>
<h1><i class="ph">users</i> Create an account</h1>
<a href="{{ route('admin.account.index') }}" class="btn btn-secondary oppose">Cancel</a>
<input form="create_edit" class="btn" type="submit" value="Create">
</header>
@ -160,7 +160,7 @@
href="{{ route('admin.contacts_lists.edit', ['contacts_list_id' => $contactsList->id]) }}">{{ $contactsList->title }}</a>
<a
href="{{ route('admin.account.contacts_lists.detach', ['account_id' => $account->id, 'contacts_list_id' => $contactsList->id]) }}">
<i class="material-symbols-outlined">close</i>
<i class="ph">x</i>
</a>
</p>
@endforeach
@ -171,7 +171,7 @@
<p class="chip">
<a href="{{ route('admin.account.edit', $account) }}">{{ $contact->identifier }}</a>
<a href="{{ route('admin.account.contact.delete', [$account, $contact->id]) }}">
<i class="material-symbols-outlined">close</i>
<i class="ph">x</i>
</a>
</p>
@endforeach

View file

@ -8,7 +8,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">delete</i> Delete an account</h1>
<h1><i class="ph">trash</i> Delete an account</h1>
<a href="{{ route('admin.account.edit', $account->id) }}" class="btn btn-secondary oppose">Cancel</a>
<input form="delete" class="btn" type="submit" value="Delete">

View file

@ -9,7 +9,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> {{ $account->identifier }}</h1>
<h1><i class="ph">users</i> {{ $account->identifier }}</h1>
<a href="{{ route('admin.account.edit', $account->id) }}" class="btn btn-secondary oppose">Cancel</a>
</header>

View file

@ -9,10 +9,10 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> {{ $account->identifier }}</h1>
<h1><i class="ph">users</i> {{ $account->identifier }}</h1>
<a href="{{ route('admin.account.edit', $account->id) }}" class="btn btn-secondary oppose">Cancel</a>
<a class="btn" href="{{ route('admin.account.dictionary.create', $account) }}">
<i class="material-symbols-outlined">add_circle</i>
<i class="ph">plus</i>
New Entry
</a>
</header>

View file

@ -7,7 +7,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> Import accounts</h1>
<h1><i class="ph">users</i> Import accounts</h1>
<a href="{{ route('admin.account.index') }}" class="btn btn-secondary oppose">Cancel</a>
<a href="#" onclick="history.back()" class="btn btn-secondary">Previous</a>
@ -18,7 +18,7 @@
<input name="domain" type="hidden" value="{{ $domain }}">
<a type="submit"
class="btn @if ($errors->isNotEmpty()) disabled @endif" onclick="document.querySelector('form[name=handle]').submit()">
<i class="material-symbols-outlined">publish</i>
<i class="ph">download-simple</i>
Import
</a>
</form>

View file

@ -7,7 +7,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> Import accounts</h1>
<h1><i class="ph">users</i> Import accounts</h1>
<a href="{{ route('admin.account.index') }}" class="btn btn-secondary oppose">Cancel</a>
<input form="import" class="btn" type="submit" value="Next">
</header>

View file

@ -8,19 +8,19 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> Accounts</h1>
<h1><i class="ph">users</i> Accounts</h1>
<a class="btn btn-secondary oppose" href="{{ route('admin.account.import.create') }}">
<i class="material-symbols-outlined">publish</i>
<i class="ph">download-simple</i>
Import Accounts
</a>
@if(config('app.intercom_features'))
<a class="btn btn-secondary" href="{{ route('admin.account.type.index') }}">
<i class="material-symbols-outlined">category</i>
<i class="ph">shapes</i>
Types
</a>
@endif
<a class="btn" href="{{ route('admin.account.create') }}">
<i class="material-symbols-outlined">add_circle</i>
<i class="ph">plus</i>
New Account
</a>
</header>

View file

@ -9,7 +9,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> {{ $account->identifier }}</h1>
<h1><i class="ph">users</i> {{ $account->identifier }}</h1>
</header>
@include('admin.account.parts.tabs')
@ -43,19 +43,19 @@
</form>
</div>
<h2><i class="material-symbols-outlined">message</i> Messages from the account</h2>
<h2><i class="ph">envelope</i> Messages from the account</h2>
{!! $messagesFromGraph !!}
<h2><i class="material-symbols-outlined">message</i> Messages to the account</h2>
<h2><i class="ph">envelope</i> Messages to the account</h2>
{!! $messagesToGraph !!}
<h2><i class="material-symbols-outlined">call</i> Calls from the account</h2>
<h2><i class="ph">phone</i> Calls from the account</h2>
{!! $callsFromGraph !!}
<h2><i class="material-symbols-outlined">call</i> Calls to the account</h2>
<h2><i class="ph">phone</i> Calls to the account</h2>
{!! $callsToGraph !!}

View file

@ -8,7 +8,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">people</i> {{ $account->identifier }}</h1>
<h1><i class="ph">users</i> {{ $account->identifier }}</h1>
</header>
@include('admin.account.parts.tabs')

View file

@ -9,9 +9,9 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">category</i> Types</h1>
<h1><i class="ph">shapes</i> Types</h1>
<a class="btn oppose" href="{{ route('admin.account.type.create') }}">
<i class="material-symbols-outlined">add</i>
<i class="ph">plus</i>
New Type
</a>
</header>

View file

@ -12,7 +12,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">account_box</i> {{ $contacts_list->title }}</h1>
<h1><i class="ph">user-rectangle</i> {{ $contacts_list->title }}</h1>
<a href="{{ route('admin.contacts_lists.edit', $contacts_list->id) }}" class="btn btn-secondary oppose">Cancel</a>
@ -44,7 +44,7 @@
<div class="oppose">
<a class="btn"
onclick="Utils.clearStorageList('a{{ $contacts_list->id }}'); document.querySelector('form[name=contacts_lists_contacts_store]').submit()">
<i class="material-symbols-outlined">add_circle</i>
<i class="ph">plus</i>
Add <span class="list_toggle" data-list-id="a{{ $contacts_list->id }}"></span> contacts
</a>
</div>

View file

@ -10,15 +10,15 @@
@section('content')
<header>
@if ($contacts_list->id)
<h1><i class="material-symbols-outlined">account_box</i> {{ $contacts_list->title }}</h1>
<h1><i class="ph">user-rectangle</i> {{ $contacts_list->title }}</h1>
<a href="{{ route('admin.contacts_lists.index') }}" class="btn btn-secondary oppose">Cancel</a>
<a class="btn btn-secondary" href="{{ route('admin.contacts_lists.delete', $contacts_list->id) }}">
<i class="material-symbols-outlined">delete</i>
<i class="ph">trash</i>
Delete
</a>
<input form="create_edit_contacts_list" class="btn" type="submit" value="Update">
@else
<h1><i class="material-symbols-outlined">account_box</i> Create a Contacts List</h1>
<h1><i class="ph">user-rectangle</i> Create a Contacts List</h1>
<a href="{{ route('admin.contacts_lists.index') }}" class="btn btn-secondary oppose">Cancel</a>
<input form="create_edit_contacts_list" class="btn" type="submit" value="Create">
@endif
@ -51,7 +51,7 @@
<hr>
<a class="btn btn-secondary oppose" href="{{ route('admin.contacts_lists.contacts.add', $contacts_list->id) }}">
<i class="material-symbols-outlined">add</i> Add contacts
<i class="ph">plus</i> Add contacts
</a>
<form method="POST"
@ -83,7 +83,7 @@
<div>
<a class="btn btn-tertiary oppose"
onclick="Utils.clearStorageList('d{{ $contacts_list->id }}'); document.querySelector('form[name=contacts_lists_contacts_destroy]').submit()">
<i class="material-symbols-outlined">delete</i>
<i class="ph">trash</i>
Remove <span class="list_toggle" data-list-id="d{{ $contacts_list->id }}"></span> contacts
</a>
</div>

View file

@ -9,7 +9,7 @@
@section('content')
<header>
<h2><i class="material-symbols-outlined">delete</i> Delete a Contact List</h2>
<h2><i class="ph">trash</i> Delete a Contact List</h2>
<a href="{{ route('admin.contacts_lists.edit', $contacts_list->id) }}" class="btn btn-secondary oppose">Cancel</a>
<input form="delete" class="btn" type="submit" value="Delete">
</header>

View file

@ -9,9 +9,9 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">account_box</i> Contacts Lists</h1>
<h1><i class="ph">user-rectangle</i> Contacts Lists</h1>
<a class="btn oppose" href="{{ route('admin.contacts_lists.create') }}">
<i class="material-symbols-outlined">add_circle</i>
<i class="ph">plus</i>
New Contacts List
</a>
</header>

View file

@ -9,13 +9,13 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">flag</i> Phone Countries</h1>
<h1><i class="ph">flag</i> Phone Countries</h1>
<a class="btn btn-secondary oppose" href="{{ route('admin.phone_countries.activate_all') }}">
<i class="material-symbols-outlined">add_circle</i>
<i class="ph">plus</i>
Activate All
</a>
<a class="btn btn-secondary" href="{{ route('admin.phone_countries.deactivate_all') }}">
<i class="material-symbols-outlined">remove_circle</i>
<i class="ph">trash</i>
Deactivate All
</a>
</header>

View file

@ -10,15 +10,15 @@
@section('content')
<header>
@if ($sip_domain->id)
<h1><i class="material-symbols-outlined">dns</i> {{ $sip_domain->domain }}</h1>
<h1><i class="material-symbols-outlined">hard-drives</i> {{ $sip_domain->domain }}</h1>
<a href="{{ route('admin.sip_domains.index') }}" class="btn btn-secondary oppose">Cancel</a>
<a class="btn btn-secondary" href="{{ route('admin.sip_domains.delete', $sip_domain->id) }}">
<i class="material-symbols-outlined">delete</i>
<i class="ph">trash</i>
Delete
</a>
<input form="create_edit_sip_domains" class="btn" type="submit" value="Update">
@else
<h1><i class="material-symbols-outlined">account_box</i> Create a SIP Domain</h1>
<h1><i class="ph">user-rectangle</i> Create a SIP Domain</h1>
<a href="{{ route('admin.sip_domains.index') }}" class="btn btn-secondary oppose">Cancel</a>
<input form="create_edit_sip_domains" class="btn" type="submit" value="Create">
@endif

View file

@ -9,7 +9,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">delete</i> Delete a SIP Domain</h1>
<h1><i class="ph">trash</i> Delete a SIP Domain</h1>
<a href="{{ route('admin.sip_domains.edit', $sip_domain->id) }}" class="btn btn-secondary oppose">Cancel</a>
<input form="delete" class="btn" type="submit" value="Delete">
</header>

View file

@ -9,9 +9,9 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">dns</i> SIP Domains</h1>
<h1><i class="ph">hard-drives</i> SIP Domains</h1>
<a class="btn oppose" href="{{ route('admin.sip_domains.create') }}">
<i class="material-symbols-outlined">add_circle</i>
<i class="ph">plus</i>
New SIP Domain
</a>
</header>

View file

@ -47,7 +47,7 @@
<a class="btn btn-secondary" href="{{ route('admin.statistics.show') }}">Reset</a>
<a class="btn btn-tertiary"
href="{{ route('admin.statistics.show', ['by' => $request->get('by', 'day'), 'type' => $type, 'export' => true] + $request->only(['from', 'to', 'domain'])) }}">
<i class="material-symbols-outlined">download</i> Export
<i class="ph">download-simple</i> Export
</a>
</div>
</form>

View file

@ -6,7 +6,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">analytics</i> Statistics</h1>
<h1><i class="ph">chart-donut</i> Statistics</h1>
</header>
@include('admin.statistics.parts.tabs')

View file

@ -6,7 +6,7 @@
@section('content')
<header>
<h1><i class="material-symbols-outlined">analytics</i> Statistics</h1>
<h1><i class="ph">chart-donut</i> Statistics</h1>
</header>
@include('admin.statistics.parts.tabs')

View file

@ -30,11 +30,11 @@
@endif
<a class="oppose" href="{{ route('about') }}">
<i class="material-symbols-outlined">info</i><span class="on_desktop">About</span>
<i class="ph">info</i><span class="on_desktop">About</span>
</a>
@if (auth()->user())
<a class="oppose" href="{{ route('account.dashboard') }}">
<i class="material-symbols-outlined">account_circle</i>
<i class="ph">user</i>
<span class="on_desktop">{{ auth()->user()->identifier }}</span>
@if (auth()->user()->superAdmin)
@ -44,7 +44,7 @@
@endif
</a>
<a class="oppose" href="{{ route('account.logout') }}">
<i class="material-symbols-outlined">logout</i>
<i class="ph">sign-out</i>
</a>
@endif
</nav>

View file

@ -9,15 +9,15 @@
'order_sort' => request()->get('order_sort', 'desc') == 'desc' ? 'asc' : 'desc'
] + request()->except('_token', 'query')) }}">
{{ $title }}
<i class="material-symbols-outlined">
<i class="ph">
@if (request()->get('order_by') == $key && request()->has('order_sort'))
@if (request()->get('order_sort') == 'asc')
expand_more
caret-down
@else
expand_less
caret-up
@endif
@else
sort
funnel
@endif
</i>
</a>

View file

@ -1,16 +1,16 @@
<nav>
@php
$items = [
'account.dashboard' => ['title' => 'Dashboard', 'icon' => 'dashboard'],
'account.dashboard' => ['title' => 'Dashboard', 'icon' => 'gauge'],
];
if (auth()->user() && auth()->user()->admin) {
$items['admin.account.index'] = ['title' => 'Accounts', 'icon' => 'people'];
$items['admin.contacts_lists.index'] = ['title' => 'Contacts Lists', 'icon' => 'account_box'];
$items['admin.statistics.show'] = ['title' => 'Statistics', 'icon' => 'analytics'];
$items['admin.account.index'] = ['title' => 'Accounts', 'icon' => 'users'];
$items['admin.contacts_lists.index'] = ['title' => 'Contacts Lists', 'icon' => 'user-rectangle'];
$items['admin.statistics.show'] = ['title' => 'Statistics', 'icon' => 'chart-donut'];
if (auth()->user()->superAdmin) {
$items['admin.sip_domains.index'] = ['title' => 'SIP Domains', 'icon' => 'dns'];
$items['admin.sip_domains.index'] = ['title' => 'SIP Domains', 'icon' => 'hard-drivers'];
$items['admin.phone_countries.index'] = ['title' => 'Phone Countries', 'icon' => 'flag'];
}
}
@ -18,7 +18,7 @@
@foreach ($items as $route => $value)
<a @if (str_starts_with(url()->current(), route($route)))class="current"@endif href="{{ route($route) }}">
<i class="material-symbols-outlined">{{ $value['icon'] }}</i>
<i class="ph">{{ $value['icon'] }}</i>
{{ $value['title'] }}
</a>
@endforeach