flexisip-account-manager/flexiapi/resources/views/admin/space/index.blade.php
2025-06-19 11:15:48 +02:00

54 lines
No EOL
1.8 KiB
PHP

@extends('layouts.main')
@section('content')
<header>
<h1><i class="ph ph-globe-hemisphere-west"></i> {{ __('Spaces') }}</h1>
<a class="btn oppose" href="{{ route('admin.spaces.create') }}">
<i class="ph ph-plus"></i>
{{ __('New Space') }}
</a>
</header>
<table>
<thead>
<tr>
<th>{{ __('Space') }}</th>
<th>{{ __('SIP Domain') }}</th>
<th>{{ __('Expiration') }}</th>
</tr>
</thead>
<tbody>
@foreach ($spaces as $space)
<tr>
<td>
<a href="{{ route('admin.spaces.show', $space->id) }}">{{ $space->name }}</a>
@if ($space->super) <span class="badge badge-error oppose" title="Super domain">Super</span> @endif
<br />
<small>{{ $space->host }}</small>
</td>
<td>{{ $space->domain }}
<small>
{{ $space->accounts_count }} / @if ($space->max_accounts > 0){{ $space->max_accounts }} @else <i class="ph ph-infinity"></i>@endif<i class="ph ph-user"></i>
</small>
</td>
<td>
@if ($space->isExpired())
{{ __('Expired') }}
@elseif ($space->expire_at)
{{ __('In :days days', ['days' => $space->daysLeft]) }}
@else
<i class="ph ph-infinity"></i>
@endif
@if ($space->expire_at)
<br />
<small>{{ $space->expire_at->format('d-m-Y') }}</small>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection