Mehr Bilder, Arbeit am Backend

This commit is contained in:
2026-03-29 21:55:35 +02:00
parent 7c3da000f9
commit 44eb81e99a
18 changed files with 238 additions and 14 deletions

View File

@@ -0,0 +1,79 @@
@php
use App\Models\ChaosEvents;
@endphp
@extends('layout.app')
@section('scripts')
<script>
const i18n = {
common: {
error_occurred: "{{ __('app.common.error_occurred') }}"
},
blog: {
confirm_save: "{{ __('app.blog.confirm_save') }}",
confirm_delete: "{{ __('app.blog.confirm_delete') }}"
}
};
</script>
<script src="{{ asset('/js/preapplication/edit.js') }}"></script>
@endsection
@section('content')
<h1>{{ __("app.preapplication.edit.title") }}</h1>
<p>{{ __("app.preapplication.edit.description") }}</p>
{{ __('app.preapplication.passport_type') }}<br />
d = {{ __('app.preapplication.passport.standard') }}<br />
k = {{ __('app.preapplication.passport.kid') }}
<br /><br />
<table class="eingabetabelle">
<tr>
<th>{{ __('app.preapplication.region') }}</th>
<th>{{ __('app.preapplication.reference_number') }}</th>
<th>{{ __('app.preapplication.firstname') }}</th>
<th>{{ __('app.preapplication.lastname') }}</th>
<th>{{ __('app.preapplication.location') }}</th>
<th>{{ __('app.preapplication.mail') }}</th>
<th>{{ __('app.preapplication.passport_type') }}</th>
<th>{{ __('app.preapplication.created_at') }}</th>
<th>{{ __('app.preapplication.actions') }}</th>
</tr>
@foreach($applications as $appl)
<tr>
<td>{{ $appl->event()->first()->name }}</td>
<td>{{ $appl->reference_number }}</td>
<td><input id="first_name_{{ $appl->id }}" type="text" value="{{ $appl->first_name }}"></td>
<td><input id="last_name_{{ $appl->id }}" type="text" value="{{ $appl->last_name }}"></td>
<td><input id="location_{{ $appl->id }}" type="text" value="{{ $appl->location }}"></td>
<td><input id="email_{{ $appl->id }}" type="text" value="{{ $appl->email }}"></td>
<td>{{ $appl->passport_type }}</td>
<td>{{ $appl->created_at }}</td>
<td><button onclick="editApplication({{ $appl->id }})">{{ __('app.preapplication.edit.save') }}</button><button onclick="deleteApplication({{ $appl->id }})">{{ __('app.preapplication.edit.delete') }}</button></td>
</tr>
@endforeach
<tr>
<td>
<select id="region_new">
@foreach(ChaosEvents::getActiveEvents() as $region)
<option value="{{ $region->id }}">{{ $region->name }}</option>
@endforeach
</select>
</td>
<td>{{ __('app.preapplication.edit.generated') }}</td>
<td><input id="first_name_new" type="text"></td>
<td><input id="last_name_new" type="text"></td>
<td><input id="location_new" type="text"></td>
<td><input id="email_new" type="text"></td>
<td><select id="passport_type_new">
<option value="d">d</option>
<option value="k">k</option>
</select>
</td>
<td></td>
<td><button onclick="addApplication()">{{ __('app.preapplication.edit.add') }}</button></td>
</tr>
</table>
@endsection

View File

@@ -3,6 +3,7 @@
@endsection
@section('content')
<img class="content-img" src="{{ asset('/Bilder/abgelehnt.jpg') }}">
<h2>{{ __('app.nav.about') }}</h2>
<h1>{{ __('app.about.subtitle') }}</h1>

View File

@@ -3,6 +3,7 @@
@endsection
@section('content')
<img class="content-img" src="{{ asset('Bilder/kontakt.jpg') }}" alt="Contact" />
<h1>{{ __('app.contact.title') }}</h1>
<br />
{!! __('app.contact.content') !!}

View File

@@ -3,7 +3,8 @@
@endsection
@section('content')
<img class="content-img" src="{{ asset('/Bilder/ernsthaft.jpg') }}">
<h1>{{ __('app.imprint.title') }}</h1>
<br />
<h2>{!! __('app.imprint.content') !!}</h2>
<p>{!! __('app.imprint.content') !!}</p>
@endsection

View File

@@ -1,5 +1,6 @@
@extends('layout.app')
@section('content')
<h1>Guten Tag.</h1>
<img class="content-img" src="{{ asset('/Bilder/verwvstempel.jpg') }}">
<h1>Guten Tag.</h1>
@endsection

View File

@@ -3,6 +3,7 @@
@endsection
@section('content')
<img class="content-img" src="{{ asset('Bilder/neuigkeiten.jpg') }}">
<h1>{{ __('app.nav.news') }}</h1>
@foreach($blogs as $blog)
<h2>{{ $blog->title }}</h2>

View File

@@ -5,15 +5,22 @@
@section('content')
<h1>{{ __('app.services.title') }}</h1>
<br />
<img class="content-img" src="{{ asset('Bilder/erstausstellung.jpg') }}">
<h2>{{ __('app.services.topic1.title') }}</h2>
<p>{!! __('app.services.topic1.content') !!}</p>
<br />
<br /><br />
<img class="content-img" src="{{ asset('Bilder/abgelehnt.jpg') }}">
<h2>{{ __('app.services.topic2.title') }}</h2>
<p>{!! __('app.services.topic2.content') !!}</p>
<br />
<br /><br />
<img class="content-img" src="{{ asset('Bilder/ersatz.jpg') }}">
<h2>{{ __('app.services.topic3.title') }}</h2>
<p>{!! __('app.services.topic3.content') !!}</p>
<br />
<br /><br />
<img class="content-img" src="{{ asset('Bilder/verwvstempel.jpg') }}">
<h2>{{ __('app.services.topic4.title') }}</h2>
<p>{!! __('app.services.topic4.content') !!}</p>
<br />

View File

@@ -45,10 +45,10 @@
<li><a href="{{ route('apply') }}">{{ __('app.nav.apply') }}</a></li>
@auth
<br />
<li><a href="{{ route('editTicker') }}">Ticker bearbeiten</a></li>
<li><a href="{{ route('editNews') }}">Nachrichten bearbeiten</a></li>
<li><a href="{{ route('logout') }}">Abmelden</a></li>
<li><a href="{{ route('editTicker') }}">{{ __('app.nav.editTicker') }}</a></li>
<li><a href="{{ route('editNews') }}">{{ __('app.nav.editNews') }}</a></li>
<li><a href="{{ route('editApplications') }}">{{ __('app.nav.editApplications') }}</a></li>
<li><a href="{{ route('logout') }}">{{ __('app.nav.logout') }}</a></li>
@endauth
</ul>
<br />