initial commit

This commit is contained in:
TheOnlyMace
2026-05-17 13:26:14 +02:00
commit 75299b723d
176 changed files with 20327 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
@extends('layouts.app')
@section('title', 'IP-Pool')
@section('heading', 'Pool bearbeiten')
@section('content')
<form method="POST" action="{{ route('ip-pools.update', $pool) }}" class="max-w-lg space-y-4 rounded-xl border border-slate-800 bg-slate-900/60 p-6">
@csrf @method('PUT')
<label class="block"><span class="text-sm text-slate-400">Name</span>
<input name="name" value="{{ old('name', $pool->name) }}" required class="mt-1 w-full rounded-lg border border-slate-700 bg-slate-800 px-3 py-2"></label>
<label class="block"><span class="text-sm text-slate-400">Typ</span>
<select name="type" class="mt-1 w-full rounded-lg border border-slate-700 bg-slate-800 px-3 py-2">
@foreach($types as $type)
<option value="{{ $type->value }}" @selected(old('type', $pool->type->value) === $type->value)>{{ $type->label() }}</option>
@endforeach
</select></label>
<div class="grid grid-cols-2 gap-4">
<label class="block"><span class="text-sm text-slate-400">Start-IP</span>
<input name="start_ip" value="{{ old('start_ip', $pool->start_ip) }}" required class="mt-1 w-full rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 font-mono"></label>
<label class="block"><span class="text-sm text-slate-400">End-IP</span>
<input name="end_ip" value="{{ old('end_ip', $pool->end_ip) }}" required class="mt-1 w-full rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 font-mono"></label>
</div>
<label class="block"><span class="text-sm text-slate-400">Gateway</span>
<input name="gateway" value="{{ old('gateway', $pool->gateway) }}" class="mt-1 w-full rounded-lg border border-slate-700 bg-slate-800 px-3 py-2 font-mono"></label>
<label class="block"><span class="text-sm text-slate-400">CIDR</span>
<input type="number" name="cidr" value="{{ old('cidr', $pool->cidr) }}" class="mt-1 w-full rounded-lg border border-slate-700 bg-slate-800 px-3 py-2"></label>
<label class="flex items-center gap-2 text-sm">
<input type="checkbox" name="is_active" value="1" @checked(old('is_active', $pool->is_active)) class="rounded text-cyan-500"> Aktiv
</label>
<button class="rounded-lg bg-cyan-600 px-6 py-2 font-medium hover:bg-cyan-500">Speichern</button>
</form>
<form method="POST" action="{{ route('ip-pools.destroy', $pool) }}" class="mt-4" onsubmit="return confirm('Pool löschen?')">
@csrf @method('DELETE')
<button class="rounded-lg border border-red-800 px-4 py-2 text-sm text-red-400">Pool löschen</button>
</form>
@endsection