motorradig/motorradig/resources/views/tour/index.blade.php
2020-10-07 22:18:54 +02:00

41 lines
1.3 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container text-center text-light mt-5">
<h1 class="text-center">Tourenplan</h1>
<a href="/pdf/tourenplan.pdf" class="text-center text-light">Download</a>
<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 }} [?/?]
@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-2 mt-2 ">Neue Tour anlegen</a>
</div>
@endif
</div>
@endsection