Enforce PHP and Blade formatting
All checks were successful
Tests / Laravel tests (pull_request) Successful in 12m39s

This commit is contained in:
2026-06-03 22:22:39 +02:00
parent aab8d33b8d
commit 886e3993fc
47 changed files with 946 additions and 283 deletions

View File

@@ -2,13 +2,15 @@
<div class="p-6">
<h2 class="text-2xl font-semibold text-gray-800 dark:text-white mb-4">Opleidingen</h2>
<a href="{{ route('educations.create') }}" class="mb-4 inline-block bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700">Nieuwe opleiding</a>
<a href="{{ route('educations.create') }}"
class="mb-4 inline-block bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700">Nieuwe opleiding</a>
@foreach ($educations as $education)
<div class="mb-4 p-4 bg-white dark:bg-gray-800 shadow rounded">
<h3 class="text-xl font-bold text-gray-900 dark:text-white">{{ $education->opleiding }}</h3>
<p class="text-gray-600 dark:text-gray-300">{{ $education->instituut }}</p>
<p class="text-sm text-gray-500 dark:text-gray-400">{{ $education->startdatum }} {{ $education->einddatum ?? 'heden' }}</p>
<p class="text-sm text-gray-500 dark:text-gray-400">{{ $education->startdatum }}
{{ $education->einddatum ?? 'heden' }}</p>
<p class="mt-2 text-gray-700 dark:text-gray-300">{{ $education->beschrijving }}</p>
@if ($education->image())
@@ -16,9 +18,11 @@
@endif
<div class="mt-4 space-x-2">
<a href="{{ route('educations.edit', $education) }}" class="px-3 py-1 bg-green-400 text-white rounded hover:bg-blue-600">Bewerk</a>
<a href="{{ route('educations.edit', $education) }}"
class="px-3 py-1 bg-green-400 text-white rounded hover:bg-blue-600">Bewerk</a>
<form action="{{ route('educations.destroy', $education) }}" method="POST" class="inline-block" onsubmit="return confirm('Weet je zeker dat je dit wilt verwijderen?')">
<form action="{{ route('educations.destroy', $education) }}" method="POST" class="inline-block"
onsubmit="return confirm('Weet je zeker dat je dit wilt verwijderen?')">
@csrf
@method('DELETE')
<button class="px-3 py-1 bg-red-600 text-white rounded hover:bg-red-700">Verwijder</button>