enhanced ui and layout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user