mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-21 10:18:31 +00:00
46 lines
No EOL
1.6 KiB
PHP
46 lines
No EOL
1.6 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('content')
|
|
|
|
<header>
|
|
<h1><i class="ph">flag</i> {{ __('Phone Countries') }}</h1>
|
|
<a class="btn btn-secondary oppose" href="{{ route('admin.phone_countries.activate_all') }}">
|
|
<i class="ph">plus</i>
|
|
{{ __('Activate All') }}
|
|
</a>
|
|
<a class="btn btn-secondary" href="{{ route('admin.phone_countries.deactivate_all') }}">
|
|
<i class="ph">minus</i>
|
|
{{ __('Deactivate All') }}
|
|
</a>
|
|
</header>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('Code') }}</th>
|
|
<th>{{ __('Name') }}</th>
|
|
<th>{{ __('Country code') }}</th>
|
|
<th>{{ __('Actions') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($phone_countries as $phone_country)
|
|
<tr>
|
|
<td>{{ $phone_country->code }}</td>
|
|
<td>{{ $phone_country->name }}</td>
|
|
<td>{{ $phone_country->country_code }}</td>
|
|
<td>
|
|
@if ($phone_country->activated)
|
|
<span class="badge badge-success" title="Activated">{{ __('Activated') }}</span>
|
|
<a href="{{ route('admin.phone_countries.deactivate', $phone_country->code) }}">{{ __('Deactivate') }}</a>
|
|
@else
|
|
<span class="badge badge-error" title="Deactivated">{{ __('Deactivated') }}</span>
|
|
<a href="{{ route('admin.phone_countries.activate', $phone_country->code) }}">{{ __('Activate') }}</a>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
@endsection |