Tour.index (list of tours)
This commit is contained in:
parent
f7d0eb2fc7
commit
b205aedb5d
13 changed files with 320 additions and 46 deletions
46
motorradig/resources/views/tour/index.blade.php
Normal file
46
motorradig/resources/views/tour/index.blade.php
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
@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">
|
||||
.<ul class="list-group offset-2 col-8">
|
||||
@foreach($tours as $tour)
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
{{ $tour->start }} - {{ $tour->name }} [?/?]
|
||||
|
||||
<span class="badge {{ $tour->status=="FINDET STATT" ? "badge-success" : "badge-danger" }} badge-pill">{{ $tour->status }}</span>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
<!--
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
11.11.2020 - Eifeltour mit Dirk [10/10]
|
||||
<span class="badge badge-success badge-pill">FINDET STATT</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
01.12.2020 - Nürburgring mit Ross [8/10]
|
||||
<span class="badge badge-success badge-pill">FINDET STATT</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
15.12.2020 - Unterbacher See mit Torsten [1/10]
|
||||
<span class="badge badge-danger badge-pill">GECANCELT</span>
|
||||
</li>
|
||||
-->
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@if(Auth::user()->role=="ADMIN" or Auth::user()->rolde=="MEMBER")
|
||||
<div class="container text-primary">
|
||||
<button type="submit" class="btn btn-danger col-2 mt-2 ">Neue Tour anlegen</button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue