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,30 @@
<x-app-layout>
<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>
@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="mt-2 text-gray-700 dark:text-gray-300">{{ $education->beschrijving }}</p>
@if ($education->getFirstMediaUrl('afbeelding'))
<img src="{{ $education->getFirstMediaUrl('afbeelding') }}" class="mt-4 w-32 h-auto rounded" />
@endif
<div class="mt-4 space-x-2">
<a href="{{ route('educations.edit', $education) }}" class="px-3 py-1 bg-blue-500 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?')">
@csrf
@method('DELETE')
<button class="px-3 py-1 bg-red-600 text-white rounded hover:bg-red-700">Verwijder</button>
</form>
</div>
</div>
@endforeach
</div>
</x-app-layout>