2023-06-23 12:04:10 +00:00
|
|
|
<!-- $o = System::class -->
|
2024-05-17 22:27:17 +00:00
|
|
|
@php
|
|
|
|
use App\Models\Zone;
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
@if(($x=Zone::active()
|
|
|
|
->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">
|
|
|
|
<label for="szone_id" class="form-label">Zone</label>
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<span class="input-group-text"><i class="bi bi-hash"></i></span>
|
|
|
|
<select class="form-select @error('zone_id') is-invalid @enderror" id="szone_id" name="zone_id" required>
|
|
|
|
<option></option>
|
|
|
|
@foreach($x as $zo)
|
|
|
|
<option value="{{ $zo->id }}" @if(old('zone_id') == $zo->id)selected @endif>{{ $zo->zone_id }} <small>({{ $zo->domain->name }})</small></option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
<span class="invalid-feedback" role="alert">
|
|
|
|
@error('zone_id')
|
|
|
|
{{ $message }}
|
|
|
|
@else
|
|
|
|
Please select the Zone for the node's address.
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-9">
|
|
|
|
<div class="row pt-0">
|
|
|
|
<div class="col-6">
|
|
|
|
<!-- Session -->
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<div class="col-5">
|
|
|
|
<!-- Packet -->
|
|
|
|
<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">
|
|
|
|
<div class="col-6">
|
|
|
|
<!-- Session -->
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<div class="col-5">
|
|
|
|
<!-- Packet -->
|
|
|
|
<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
|