51 lines
2 KiB
PHP
51 lines
2 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="container text-center text-light mt-5">
|
|
<h1 class="text-center">Tourenplan: aktuelle Touren</h1>
|
|
|
|
<div class="container text-primary mb-3">
|
|
<span class="offset-1 col-4 float-left mb-3"><a class="btn btn-success" href="/tour/index_old" class="text-center text-light"><h3>Alte Touren</h3></a></span>
|
|
<span class="offset-1"><a href="/pdf/tourenplan.pdf" class="btn btn-success"><h3>Download</h3></a></span>
|
|
</div>
|
|
|
|
<!--
|
|
<div class="row mb-2">
|
|
|
|
<span class="offset-1 col-4 float-left "><a class="btn btn-success" href="/pdf/tourenplan.pdf" class="text-center text-light"><h3>Alte Touren</h3></a></span>
|
|
<span class="offset-3 float-right"><a href="/pdf/tourenplan.pdf" class="text-center text-light"><h3>Download</h3></a></span>
|
|
</div>
|
|
-->
|
|
|
|
|
|
<div class="container text-primary" style="display:flex">
|
|
.<ul class="list-group offset-2 col-8">
|
|
@foreach($tours as $tour)
|
|
|
|
<a href="/tour/{{$tour->id}}">
|
|
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
|
|
{{ $tour->start }} - {{ $tour->name }} [{{$participantCount[$tour->id]}}/{{$tour->max_participants}}]
|
|
|
|
@if(App\Tour::has_participant($tour->id, Auth::user()->id)==true)
|
|
<i class="fas fa-biking"></i>
|
|
@endif
|
|
|
|
<span class="badge {{ $tour->status=="FINDET STATT" ? "badge-success" : "badge-danger" }} badge-pill">{{ $tour->status }}</span>
|
|
</li>
|
|
</a>
|
|
@endforeach
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
@if(Auth::user()->role=="ADMIN" or Auth::user()->rolde=="MEMBER")
|
|
<div class="container text-primary">
|
|
<a href="/tour/create" class="btn btn-danger col-3 mt-2 "><h3>Neue Tour anlegen</h3></a>
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
@endsection
|