V2, better design, more functionalities.
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
<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" />
|
||||
@if ($education->image())
|
||||
<img src="{{ $education->imageUrl() }}" 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>
|
||||
<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?')">
|
||||
@csrf
|
||||
|
||||
Reference in New Issue
Block a user