@extends('layouts.master') @section('content')
@if ($step === 1) @if (Gate::allows('admin-mode')) @lang('descriptions.emergency-message.crud.admin') @else @lang('descriptions.emergency-message.crud') @endif @elseif ($step === 2) @if (Gate::allows('admin-mode')) @lang('descriptions.emergency-message.request-approval.admin') @else @lang('descriptions.emergency-message.request-approval') @endif @endif
@if (Helper::createMode()) @if (isset($emergency_message)) {!! Form::model($emergency_message, ['route' => 'emergency-message.store', 'class' => 'emergency-message-form model', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!} @else {!! Form::open(['route' => 'emergency-message.store', 'class' => 'emergency-message-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!} @endif @elseif (Helper::editMode()) {!! Form::model($emergency_message, ['route' => ['emergency-message.update', $emergency_message->id], 'class' => 'emergency-message-form', 'enctype' => 'multipart/form-data', 'accept-charset' => 'UTF-8']) !!} @endif
@if ($step === 1) {!! Form::hidden('step', 1) !!} {!! Form::checkbox('go-to-preview', 1, null, ['id' => 'go-to-preview', 'class' => 'hidden']) !!}
Tragen Sie hier die Überschrift ein:
{!! Form::text('title', null, ['class' => 'emergency-message-title form-control', 'placeholder' => '...', 'maxlength' => 70]) !!}
Tragen Sie hier die Notfallbotschaft ein:
{!! Form::textarea('description', null, ['class' => 'emergency-message-description', 'placeholder' => '...', 'maxlength' => 700]) !!}
@if (Gate::allows('admin-mode'))
{!! Form::checkbox('override', 1, $override, ['id' => 'override', 'class' => 'custom-control-input form-check-input']) !!}
@endif @elseif ($step === 2) {!! Form::hidden('step', 2) !!} {!! Form::checkbox('approval', 1, null, ['id' => 'approval', 'class' => 'hidden']) !!} @include ('partials.previews')
@if (Gate::allows('user-mode')) @include ('partials.validity') @endif @include ('partials.approvers')
@endif
@include ('partials.action_btns') {!! Form::close() !!}
@endsection @section('back_button') @if ($step === 1) Zurück @elseif ($step === 2) @if (Helper::createMode()) Zurück @elseif (Helper::editMode()) Zurück @endif @endif @endsection