80 lines
3.3 KiB
PHP
80 lines
3.3 KiB
PHP
@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
|