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

@@ -1,21 +1,23 @@
<div class="p-4 bg-white dark:bg-gray-800 rounded shadow">
<h3 class="text-lg font-bold text-gray-800 dark:text-white">{{ $skill->title }}</h3>
@if($skill->type === 'rating')
@if ($skill->type === 'rating')
<p class="text-sm text-gray-600 dark:text-gray-300 mb-2">Beoordeling: {{ $skill->rating }}/10</p>
@endif
@if($skill->description)
@if ($skill->description)
<p class="text-sm text-gray-600 dark:text-gray-300">{{ $skill->description }}</p>
@endif
@if ($skill->getFirstMediaUrl('image'))
<img src="{{ $skill->getFirstMediaUrl('image') }}" alt="{{ $skill->title }}" class="mt-2 max-w-full h-32 object-contain rounded">
<img src="{{ $skill->getFirstMediaUrl('image') }}" alt="{{ $skill->title }}"
class="mt-2 max-w-full h-32 object-contain rounded">
@endif
<div class="mt-4 flex justify-between">
<a href="{{ route('skills.edit', $skill) }}" class="text-blue-600 hover:underline">Bewerken</a>
<form action="{{ route('skills.destroy', $skill) }}" method="POST" onsubmit="return confirm('Weet je zeker dat je dit wilt verwijderen?')">
<form action="{{ route('skills.destroy', $skill) }}" method="POST"
onsubmit="return confirm('Weet je zeker dat je dit wilt verwijderen?')">
@csrf
@method('DELETE')
<button class="text-red-600 hover:underline">Verwijderen</button>