flexisip-account-manager/flexiapi/resources/views/admin/space/parameters.blade.php
2024-12-02 13:04:49 +00:00

45 lines
1.6 KiB
PHP

@extends('layouts.main')
@section('breadcrumb')
<li class="breadcrumb-item">
<a href="{{ route('admin.spaces.index') }}">Spaces</a>
</li>
<li class="breadcrumb-item">{{ $space->host }}</li>
<li class="breadcrumb-item active" aria-current="page">Parameters</li>
@endsection
@section('content')
<header>
<h1><i class="ph">globe-hemisphere-west</i> {{ $space->host }}</h1>
</header>
@include('admin.space.tabs')
<form method="POST"
action="{{ route('admin.spaces.parameters.update', $space) }}"
accept-charset="UTF-8">
@csrf
@method('put')
<div>
<input name="max_accounts" id="max_accounts" type="number" min="0" value="{{ $space->max_accounts }}">
<label for="max_accounts">Max accounts of the space</label>
<span class="supporting">Unlimited if set to 0</span>
@include('parts.errors', ['name' => 'max_accounts'])
</div>
<div>
<input name="expire_at" id="expire_at" type="date" @if ($space->expire_at) value="{{ $space->expire_at->toDateString() }}" @endif min="{{ \Carbon\Carbon::now()->toDateString() }}">
<label for="expire_at">Expire at</label>
<span class="supporting">Clear to never expire</span>
</div>
<div class="large">
@include('parts.form.toggle', ['object' => $space, 'key' => 'super', 'label' => 'Super space', 'supporting' => 'All the admins in this Space will be Super Admins'])
</div>
<div class="large">
<input class="btn" type="submit" value="Update">
</div>
</form>
@endsection