Enforce PHP and Blade formatting
All checks were successful
Tests / Laravel tests (pull_request) Successful in 12m39s
All checks were successful
Tests / Laravel tests (pull_request) Successful in 12m39s
This commit is contained in:
@@ -1,22 +1,30 @@
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<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">
|
||||
<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>
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<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]) }}">
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<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>
|
||||
<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)
|
||||
@@ -19,8 +20,10 @@
|
||||
</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?')">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user