Public Access
119 lines
5.6 KiB
PHP
119 lines
5.6 KiB
PHP
@extends('template')
|
|
@section('title', $bewerbung->name)
|
|
|
|
@section('content')
|
|
@if(session('success'))
|
|
<div class="alert alert-success">{{ session('success') }}</div>
|
|
@endif
|
|
|
|
<div class="row g-4">
|
|
<div class="col-lg-7">
|
|
<h1 class="h3 mb-2">{{ $bewerbung->name }}</h1>
|
|
|
|
@if($bewerbung->pic_path ?? false)
|
|
<img class="img-fluid rounded mb-3" src="{{ Storage::disk('public')->url($bewerbung->pic_path) }}" alt="{{ $bewerbung->name }}">
|
|
@endif
|
|
|
|
<div class="mb-3" style="white-space: pre-wrap;">{{ $bewerbung->text }}</div>
|
|
|
|
@if($bewerbung->bedingungen_path ?? false)
|
|
<p class="mb-4">
|
|
<a href="{{ Storage::disk('public')->url($bewerbung->bedingungen_path) }}" target="_blank" class="btn btn-outline-secondary btn-sm">
|
|
Bewerbungsbedingungen (PDF)
|
|
</a>
|
|
</p>
|
|
@endif
|
|
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<strong>Bitte prüfen:</strong>
|
|
<ul class="mb-0">
|
|
@foreach ($errors->all() as $e)
|
|
<li>{{ $e }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
<form method="POST" action="{{ route('band.apply', $bewerbung) }}" enctype="multipart/form-data" class="mt-3">
|
|
@csrf
|
|
<h2 class="h5 mt-2 mb-3">Band</h2>
|
|
<div class="row g-3">
|
|
<div class="col-md-6">
|
|
<label class="form-label">Bandname*</label>
|
|
<input type="text" name="band[name]" class="form-control" value="{{ old('band.name') }}" required>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">E-Mail*</label>
|
|
<input type="email" name="band[email]" class="form-control" value="{{ old('band.email') }}" required>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Telefon</label>
|
|
<input type="text" name="band[phone]" class="form-control" value="{{ old('band.phone') }}">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Stadt</label>
|
|
<input type="text" name="band[city]" class="form-control" value="{{ old('band.city') }}">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Website</label>
|
|
<input type="url" name="band[website]" class="form-control" value="{{ old('band.website') }}">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Spotify</label>
|
|
<input type="url" name="band[spotify]" class="form-control" value="{{ old('band.spotify') }}">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Instagram</label>
|
|
<input type="url" name="band[instagram]" class="form-control" value="{{ old('band.instagram') }}">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">YouTube</label>
|
|
<input type="url" name="band[youtube]" class="form-control" value="{{ old('band.youtube') }}">
|
|
</div>
|
|
<div class="col-12">
|
|
<label class="form-label">Über die Band</label>
|
|
<textarea name="band[about]" class="form-control" rows="4">{{ old('band.about') }}</textarea>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Tech Rider (PDF)</label>
|
|
<input type="file" name="band[tech_rider]" class="form-control" accept="application/pdf">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label">Stage Plan (PDF)</label>
|
|
<input type="file" name="band[stage_plan]" class="form-control" accept="application/pdf">
|
|
</div>
|
|
</div>
|
|
<h2 class="h5 mt-4 mb-3">Bewerbung</h2>
|
|
<div class="mb-3">
|
|
<label class="form-label">Nachricht / Motivation</label>
|
|
<textarea name="message" class="form-control" rows="4">{{ old('message') }}</textarea>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label">Demo-Link</label>
|
|
<input type="url" name="demo_link" class="form-control" value="{{ old('demo_link') }}">
|
|
</div>
|
|
<div class="form-check form-switch mb-4">
|
|
<input class="form-check-input" type="checkbox" id="privacy_ok" name="privacy_ok" {{ old('privacy_ok', true) ? 'checked' : '' }} required>
|
|
<label class="form-check-label" for="privacy_ok">
|
|
Ich stimme der Verarbeitung meiner Daten gemäß Datenschutzhinweis zu.
|
|
</label>
|
|
</div>
|
|
<button class="btn btn-primary">Jetzt bewerben</button>
|
|
</form>
|
|
</div>
|
|
<div class="col-lg-5">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h5 class="card-title mb-3">Eckdaten</h5>
|
|
<ul class="list-unstyled mb-0">
|
|
@if($bewerbung->start_at)<li><strong>Start:</strong> {{ $bewerbung->start_at->format('d.m.Y') }}</li>@endif
|
|
@if($bewerbung->end_at)<li><strong>Ende:</strong> {{ $bewerbung->end_at->format('d.m.Y') }}</li>@endif
|
|
<li><strong>Status:</strong> {{ $bewerbung->active ? 'Aktiv' : 'Inaktiv' }}</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|