This commit is contained in:
Nils Bonorden committed 2025-10-17 10:22:41 +02:00
1 parent 3db040e243
commit 9a3187f9b6
11 files changed
+332 -114

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
@extends('template')
@section('title', 'Bewerbung anzeigen')
@section('content')
<div class="container mt-4">
@if(session('success'))
<div class="alert alert-success">{{ session('success') }}</div>
@endif
<div class="d-flex justify-content-between align-items-center mb-3">
<h1 class="h3 mb-0">{{ $bewerbung->name }}</h1>
<div>
<a href="{{ route('bewerbungen.edit', $bewerbung) }}" class="btn btn-sm btn-primary">Bearbeiten</a>
<a href="{{ route('bewerbungen.index') }}" class="btn btn-sm btn-outline-secondary">Zur Liste</a>
</div>
</div>
<p><strong>Aktiv:</strong> {{ $bewerbung->active ? 'Ja' : 'Nein' }}</p>
<p><strong>Zeitraum:</strong>
@if($bewerbung->start_at) {{ $bewerbung->start_at->format('d.m.Y H:i') }} @endif
@if($bewerbung->end_at) – {{ $bewerbung->end_at->format('d.m.Y H:i') }} @endif
</p>
<div class="mb-3">
<strong>Text:</strong>
<div class="border rounded p-3 bg-light mt-1">{{ $bewerbung->text }}</div>
</div>
@if($bewerbung->pic_path)
<p><strong>Bild:</strong> <br>
<img src="{{ Storage::url($bewerbung->pic_path) }}" alt="" style="max-height:180px"></p>
@endif
@if($bewerbung->bedingungen_path)
<p><strong>Bewerbungsbedingungen:</strong> <a href="{{ Storage::url($bewerbung->bedingungen_path) }}" target="_blank">PDF öffnen</a></p>
@endif
<form action="{{ route('bewerbungen.destroy', $bewerbung) }}" method="POST" class="mt-4" onsubmit="return confirm('Wirklich löschen?');">
@csrf
@method('DELETE')
<button class="btn btn-outline-danger">Löschen</button>
</form>
</div>
@endsection