Initial commit

This commit is contained in:
Roberto Guagliardo
2025-06-19 02:02:04 +02:00
commit b324c030f4
144 changed files with 18580 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<div class="space-y-6">
<div>
<label for="key" class="block text-sm font-medium text-gray-700 dark:text-gray-200">Label (bv. Geboortedatum)</label>
<input type="text" id="key" name="key" value="{{ old('key', $personalia->key ?? '') }}" class="mt-1 w-full px-3 py-2 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded">
</div>
<div>
<label for="value" class="block text-sm font-medium text-gray-700 dark:text-gray-200">Waarde (bv. 12 maart 1988)</label>
<input type="text" id="value" name="value" value="{{ old('value', $personalia->value ?? '') }}" class="mt-1 w-full px-3 py-2 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded">
</div>
<div>
<label for="icon" class="block text-sm font-medium text-gray-700 dark:text-gray-200">Font Awesome Icon (optioneel)</label>
<input type="text" id="icon" name="icon" value="{{ old('icon', $personalia->icon ?? '') }}" class="mt-1 w-full px-3 py-2 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded" placeholder="fa-solid fa-user">
<p class="text-xs text-gray-500 mt-1">Gebruik een Font Awesome class zoals <code>fa-solid fa-user</code>.</p>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="hidden" name="hidden" value="1" {{ old('hidden', $personalia->hidden ?? false) ? 'checked' : '' }} class="form-checkbox text-blue-600">
<label for="hidden" class="text-gray-700 dark:text-gray-200">Verbergen voor publiek</label>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<x-app-layout>
<div class="p-6">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Nieuw persoonlijk item</h2>
<form method="POST" action="{{ route('personalia.store') }}">
@csrf
@include('personalia._form')
<button type="submit" class="mt-4 px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700">Opslaan</button>
</form>
</div>
</x-app-layout>

View File

@@ -0,0 +1,11 @@
<x-app-layout>
<div class="p-6">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Persoonlijk item bewerken</h2>
<form method="POST" action="{{ route('personalia.update', ['personalium' =>$personalia]) }}">
@csrf
@method('PUT')
@include('personalia._form')
<button type="submit" class="mt-4 px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">Bijwerken</button>
</form>
</div>
</x-app-layout>

View File

@@ -0,0 +1,33 @@
<x-app-layout>
<div class="p-6">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Personalia</h2>
<a href="{{ route('personalia.create') }}" class="mb-4 inline-block px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">Nieuw item toevoegen</a>
<div class="space-y-4">
@foreach ($personalia as $item)
<div class="p-4 bg-white dark:bg-gray-800 rounded shadow flex justify-between items-center">
<div class="flex items-center space-x-3">
@if ($item->icon)
<i class="{{ $item->icon }} text-gray-600 dark:text-gray-300"></i>
@endif
<div>
<p class="text-sm text-gray-600 dark:text-gray-300 font-semibold">{{ $item->key }}</p>
<p class="text-sm text-gray-800 dark:text-white">{{ $item->value }}</p>
@if ($item->hidden)
<p class="text-xs text-yellow-500">Verborgen</p>
@endif
</div>
</div>
<div class="flex space-x-2">
<a href="{{ route('personalia.edit', $item) }}" class="text-blue-600 hover:underline">Bewerken</a>
<form action="{{ route('personalia.destroy', $item) }}" method="POST" onsubmit="return confirm('Weet je zeker dat je dit item wilt verwijderen?')">
@csrf
@method('DELETE')
<button class="text-red-600 hover:underline">Verwijderen</button>
</form>
</div>
</div>
@endforeach
</div>
</div>
</x-app-layout>