2020-10-02 09:56:26 +02:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
<div class="card mt-4">
|
|
|
|
|
<div class="card-header">{{ $tour->name }}</div>
|
|
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
2020-10-05 13:43:14 +02:00
|
|
|
<form style="background-color: #fff;" class="text-dark" method="post" action="" enctype="multipart/form-data">
|
2020-10-02 09:56:26 +02:00
|
|
|
@csrf
|
|
|
|
|
|
|
|
|
|
<div class="form-group" style="display:flex;">
|
|
|
|
|
<!-- label class="ml-2 mt-4 col-form-label col-form-label-sm" style="width:150px; text-align:left;" for="name"><h4>Name:</h4></label> -->
|
|
|
|
|
<label class="ml-2 mt-3 col-form-label col-form-label-sm" style="width:180px; text-align:left;font-size:18px;" for="name">Name:</label>
|
2020-10-05 13:43:14 +02:00
|
|
|
<input class="mt-3 mr-2 form-control input-sm" type="text" id="name" name="name" value="{{ old('name') ?? $tour->name }}" readonly >
|
2020-10-02 09:56:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" style="display:flex;">
|
|
|
|
|
<label class="ml-2 mt-3" style="width:180px; text-align:left;font-size:18px;" for="name">Start:</label>
|
2020-10-05 13:43:14 +02:00
|
|
|
<input class="mt-3 mr-2 form-control input-sm" type="text" id="start" name="start" value="{{ old('start') ?? $tour->start }}" readonly >
|
2020-10-02 09:56:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group" style="display:flex;">
|
2020-10-05 13:43:14 +02:00
|
|
|
<label class="ml-2 mt-4" style="width:180px; text-align:left;font-size:18px;" for="name">Anmeldeschluss:</label>
|
|
|
|
|
<input class="mt-3 mr-2 form-control" type="text" id="anmeldeschluss" style="font-size:16px;" name="start" value="{{ old('anmeldeschluss') ?? $tour->deadline }}" readonly >
|
2020-10-02 09:56:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
2020-10-05 13:43:14 +02:00
|
|
|
<div class="form-group" style="display:flex;">
|
|
|
|
|
<label class="ml-2 mt-4" style="width:180px; text-align:left;font-size:18px;" for="name">Max Teilnehmer:</label>
|
|
|
|
|
<input class="mt-3 mr-2 form-control" type="text" id="max_participants" style="font-size:16px;" name="max_participants" value="{{ old('max_participants') ?? $tour->max_participants }}" required >
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if(file_exists (public_path ('img/tour/'.$tour->id.'.jpg')))
|
|
|
|
|
<!--File exists -->
|
|
|
|
|
<a href="/img/tour/{{$tour->id}}_gross.jpg" data-lightbox="{{$tour->id}}_gross.jpg" data-title="{{ $tour->name }}">
|
|
|
|
|
<img src="/img/user/{{$tour->id}}.jpg" class="mt-3 ml-3" >
|
|
|
|
|
</a>
|
|
|
|
|
@else
|
|
|
|
|
<img src="/img/placeholder/tour128x100.jpg" class="mt-3 ml-3" >
|
|
|
|
|
@endif
|
|
|
|
|
|
2020-10-02 09:56:26 +02:00
|
|
|
<div class="form-group" style="display:flex;">
|
|
|
|
|
<label class="ml-2 mt-3" style="width:140px; text-align:left;font-size:18px;" for="name">Storniert:</label>
|
2020-10-05 13:43:14 +02:00
|
|
|
<input class="mt-3 mr-2 form-control" type="checkbox" id="anmeldeschluss" style="font-size:10px;width:20px;" name="anmeldeschluss" value="{{ old('anmeldeschluss') ?? $tour->deadline }}" onclick="return false;" >
|
2020-10-02 09:56:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
2020-10-06 08:54:14 +02:00
|
|
|
<div class="form-group" style="display:flex;">
|
|
|
|
|
<label class="ml-2 mt-3" style="width:140px; text-align:left;font-size:18px;" for="name">Teilnehmer:</label>
|
|
|
|
|
<a href="#" class="mt-3 mr-2 form-control" id="max_participants" style="font-size:16px;width:36px;" name="max_participants" onclick="return false;">{{ old('max_participants') ?? count(\App\Tour::getBookings($tour->id)) }}</a>
|
|
|
|
|
</div>
|
2020-10-02 09:56:26 +02:00
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-10-05 13:43:14 +02:00
|
|
|
<textarea class="col-12" name="beschreibung" rows="10" cols="50" readonly>{{ $tour->beschreibung }}
|
2020-10-02 09:56:26 +02:00
|
|
|
</textarea>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2020-10-05 13:43:14 +02:00
|
|
|
<a href="/tour/{{$tour->id}}/edit"><div type="submit" class="btn btn-danger col-2 mb-2 float-left mr-2">Bearbeiten</div></a>
|
|
|
|
|
<a href="/tour" type="submit" class="btn btn-success col-2 mb-2 float-right mr-2">Ok</a>
|
|
|
|
|
<a href="#" type="submit" class="btn btn-danger col-2 mb-2 float-right mr-2">Teilnehmen</a>
|
2020-10-02 09:56:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|