144 lines
5.5 KiB
PHP
144 lines
5.5 KiB
PHP
@extends('layout.master')
|
|
|
|
@section('title', 'Projekte')
|
|
|
|
@section('subnav')
|
|
<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 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 width="1">
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
<a href='/projects/{{ $project->id }}/edit'
|
|
class="btn btn-success"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Bearbeiten">
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
<a href='/reports/projects/{{ $project->id }}'
|
|
class="btn btn-warning"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Bericht">
|
|
<i class="fas fa-chart-line"></i>
|
|
</a>
|
|
<a href='/projects/{{ $project->id }}/delete'
|
|
class="btn btn-danger"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Löschen">
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
<h3>Kommende Projekte</h3>
|
|
<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>
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
<a href='/projects/{{ $project->id }}/edit'
|
|
class="btn btn-success"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Bearbeiten">
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
<a href='/reports/projects/{{ $project->id }}'
|
|
class="btn btn-warning"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Bericht">
|
|
<i class="fas fa-chart-line"></i>
|
|
</a>
|
|
<a href='/projects/{{ $project->id }}/delete'
|
|
class="btn btn-danger"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Löschen">
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
<h3>Vergangene Projekte</h3>
|
|
<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 scope="row">{{ $project->name }}</td>
|
|
<td>{{ formatDate($project->start_date) }}</td>
|
|
<td>{{ formatDate($project->end_date) }}</td>
|
|
<td width="1">
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
<a href='/projects/{{ $project->id }}/edit'
|
|
class="btn btn-success"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Bearbeiten">
|
|
<i class="fas fa-edit"></i>
|
|
</a>
|
|
<a href='/reports/projects/{{ $project->id }}'
|
|
class="btn btn-warning"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Bericht">
|
|
<i class="fas fa-chart-line"></i>
|
|
</a>
|
|
<a href='/projects/{{ $project->id }}/delete'
|
|
class="btn btn-danger"
|
|
data-toggle="tooltip"
|
|
data-placement="bottom"
|
|
title="Löschen">
|
|
<i class="fas fa-trash"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
@endsection
|