Public Access
45 lines
1.7 KiB
PHP
45 lines
1.7 KiB
PHP
@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->id) }}" 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
|