2023-06-23 12:04:10 +00:00
|
|
|
<!-- $o = System::class -->
|
2024-12-06 03:44:19 +00:00
|
|
|
@use(App\Models\Zone)
|
2024-05-17 22:27:17 +00:00
|
|
|
|
2024-12-06 03:44:19 +00:00
|
|
|
@if(($zones=Zone::select(['id','domain_id','zone_id'])
|
|
|
|
->active()
|
2024-05-17 22:27:17 +00:00
|
|
|
->whereIn('id',$o->addresses->pluck('zone.id'))
|
2021-07-04 11:47:23 +00:00
|
|
|
->whereNotIn('id',$o->sessions->pluck('id'))
|
2024-05-10 14:00:58 +00:00
|
|
|
->with(['domain'])
|
2021-07-04 11:47:23 +00:00
|
|
|
->get())->count())
|
|
|
|
|
2024-12-06 00:16:38 +00:00
|
|
|
<form class="needs-validation" method="post" action="{{ url('system/session/add',$o->id) }}" autocomplete="off" novalidate>
|
2021-07-04 11:47:23 +00:00
|
|
|
@csrf
|
|
|
|
|
|
|
|
<div class="row pt-0">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="greyframe titledbox shadow0xb0">
|
|
|
|
<h2 class="cap">Setup Session Details</h2>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<!-- Select Zone -->
|
|
|
|
<div class="col-3">
|
2024-12-06 03:44:19 +00:00
|
|
|
<x-form.select id="szone_id" name="zone_id" icon="bi-hash" label="Zone" feedback="Our address required" value="x" :options="$zones->map(fn($item)=>['id'=>$item->id,'value'=>sprintf('%s (%s)',$item->zone_id,$item->domain->name)])" required/>
|
2021-07-04 11:47:23 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-9">
|
|
|
|
<div class="row pt-0">
|
2024-12-06 03:44:19 +00:00
|
|
|
<!-- Session -->
|
2021-07-04 11:47:23 +00:00
|
|
|
<div class="col-6">
|
|
|
|
<label for="sespass" class="form-label">Session Password</label>
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<span class="input-group-text"><i class="bi bi-lock"></i></span>
|
2024-05-19 13:30:14 +00:00
|
|
|
<input type="text" style="width: 35%;" class="form-control @error('sespass') is-invalid @enderror" id="sespass" placeholder="Session" name="sespass" value="{{ old('sespass') }}" required>
|
2021-07-04 11:47:23 +00:00
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error('sespass')
|
|
|
|
{{ $message }}
|
|
|
|
@else
|
|
|
|
Session Password required.
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-12-06 03:44:19 +00:00
|
|
|
<!-- Packet -->
|
2021-07-04 11:47:23 +00:00
|
|
|
<div class="col-5">
|
|
|
|
<label for="pktpass" class="form-label">Packet Password</label>
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<span class="input-group-text"><i class="bi bi-box"></i></span>
|
2024-05-19 13:30:14 +00:00
|
|
|
<input type="text" style="width: 35%;" class="form-control @error('pktpass') is-invalid @enderror" id="pktpass" placeholder="Packet" name="pktpass" value="{{ old('pktpass') }}" required>
|
2021-07-04 11:47:23 +00:00
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error('pktpass')
|
|
|
|
{{ $message }}
|
2023-10-04 05:05:46 +00:00
|
|
|
@else
|
|
|
|
Packet password required.
|
2021-07-04 11:47:23 +00:00
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2024-12-06 03:44:19 +00:00
|
|
|
<!-- Areafix -->
|
2021-07-04 11:47:23 +00:00
|
|
|
<div class="col-6">
|
|
|
|
<label for="fixpass" class="form-label">Areafix Password</label>
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<span class="input-group-text"><i class="bi bi-card-text"></i></span>
|
2024-05-19 13:30:14 +00:00
|
|
|
<input type="text" style="width: 35%;" class="form-control @error('fixpass') is-invalid @enderror" id="fixpass" placeholder="Areafix" name="fixpass" value="{{ old('fixpass') }}" required>
|
2021-07-04 11:47:23 +00:00
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error('fixpass')
|
|
|
|
{{ $message }}
|
|
|
|
@else
|
|
|
|
Areafix password required.
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-12-06 03:44:19 +00:00
|
|
|
<!-- TIC -->
|
2021-07-04 11:47:23 +00:00
|
|
|
<div class="col-5">
|
|
|
|
<label for="ticpass" class="form-label">TIC Password</label>
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<span class="input-group-text"><i class="bi bi-archive"></i></span>
|
2024-05-19 13:30:14 +00:00
|
|
|
<input type="text" style="width: 35%;" class="form-control @error('ticpass') is-invalid @enderror" id="ticpass" placeholder="TIC" name="ticpass" value="{{ old('ticpass') }}" required>
|
2021-07-04 11:47:23 +00:00
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error('ticpass')
|
|
|
|
{{ $message }}
|
2023-10-04 05:05:46 +00:00
|
|
|
@else
|
|
|
|
TIC password required.
|
2021-07-04 11:47:23 +00:00
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-2">
|
2023-10-05 11:15:53 +00:00
|
|
|
<a href="{{ url('system') }}" class="btn btn-danger">Cancel</a>
|
2021-07-04 11:47:23 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="col-6 mt-auto mx-auto text-center align-bottom">
|
|
|
|
@if($errors->count())
|
2021-07-24 04:12:10 +00:00
|
|
|
<span class="btn btn-sm btn-danger" role="alert">
|
2021-07-04 11:47:23 +00:00
|
|
|
There were errors with the submission.
|
|
|
|
</span>
|
|
|
|
@endif
|
|
|
|
</span>
|
|
|
|
|
2024-05-19 13:30:14 +00:00
|
|
|
<div class="col-2">
|
|
|
|
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
|
|
|
|
</div>
|
2021-07-04 11:47:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
@endif
|