enhanced ui and layout

This commit is contained in:
vagrant
2018-10-14 14:59:48 +00:00
parent b669cab4a7
commit e8c5ffe502
16 changed files with 376 additions and 259 deletions
+46 -32
View File
@@ -3,68 +3,82 @@
@section('title', 'Projekte')
@section('subnav')
<a href='/projects/create'>Neues Projekt</a>
<li class="nav-item">
<a href='/projects/create' class="btn btn-outline-success">Neues Projekt</a>
</li>
@endsection
@section('content')
<h2>@yield('title')</h2>
<h3>Aktuelle Projekte</h3>
<table border='1'>
<tr>
<th>Name</th>
<th>Beginn</th>
<th>Ende</th>
<th>Aktionen</th>
</tr>
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Name</th>
<th>Beginn</th>
<th>Ende</th>
<th>Aktionen</th>
</tr>
</thead>
@foreach($projects->where('start_date', '<=', now())
->where('end_date', '>=', now()) as $project)
<tr>
<td>{{ $project->name }}</td>
<td>{{ formatDate($project->start_date) }}</td>
<td>{{ formatDate($project->end_date) }}</td>
<td>
<a href='/projects/{{ $project->id }}/edit'>Bearbeiten</a><br />
<a href='/projects/{{ $project->id }}/delete'>Löschen</a>
<td width="1">
<div class="btn-group" role="group" aria-label="Basic example">
<a href='/projects/{{ $project->id }}/edit' class="btn btn-success"><i class="fas fa-edit"></i></a>
<a href='/projects/{{ $project->id }}/delete' class="btn btn-danger"><i class="fas fa-trash"></i></a>
</div>
</td>
</tr>
@endforeach
</table>
<h3>Kommende Projekte</h3>
<table border='1'>
<tr>
<th>Name</th>
<th>Beginn</th>
<th>Ende</th>
<th>Aktionen</th>
</tr>
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Name</th>
<th>Beginn</th>
<th>Ende</th>
<th>Aktionen</th>
</tr>
</thead>
@foreach($projects->where('start_date', '>', now()) as $project)
<tr>
<td>{{ $project->name }}</td>
<td>{{ formatDate($project->start_date) }}</td>
<td>{{ formatDate($project->end_date) }}</td>
<td>
<a href='/projects/{{ $project->id }}/edit'>Bearbeiten</a><br />
<a href='/projects/{{ $project->id }}/delete'>Löschen</a>
<td width="1">
<div class="btn-group" role="group" aria-label="Basic example">
<a href='/projects/{{ $project->id }}/edit' class="btn btn-success"><i class="fas fa-edit"></i></a>
<a href='/projects/{{ $project->id }}/delete' class="btn btn-danger"><i class="fas fa-trash"></i></a>
</div>
</td>
</tr>
@endforeach
</table>
<h3>Vergangene Projekte</h3>
<table border='1'>
<tr>
<th>Name</th>
<th>Beginn</th>
<th>Ende</th>
<th>Aktionen</th>
</tr>
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Beginn</th>
<th scope="col">Ende</th>
<th scope="col">Aktionen</th>
</tr>
</thead>
@foreach($projects->where('end_date', '<', now()) as $project)
<tr>
<td>{{ $project->name }}</td>
<td scope="row">{{ $project->name }}</td>
<td>{{ formatDate($project->start_date) }}</td>
<td>{{ formatDate($project->end_date) }}</td>
<td>
<a href='/projects/{{ $project->id }}/edit'>Bearbeiten</a><br />
<a href='/projects/{{ $project->id }}/delete'>Löschen</a>
<td width="1">
<div class="btn-group" role="group" aria-label="Basic example">
<a href='/projects/{{ $project->id }}/edit' class="btn btn-success"><i class="fas fa-edit"></i></a>
<a href='/projects/{{ $project->id }}/delete' class="btn btn-danger"><i class="fas fa-trash"></i></a>
</div>
</td>
</tr>
@endforeach