v1.4.4 Made news expiration date, add category to app homepages, made small css things

This commit is contained in:
2020-10-07 15:27:29 +02:00
parent f70d6a7a95
commit 22694bd0fb
15 changed files with 83 additions and 81 deletions
@@ -18,6 +18,7 @@
<table class="tbl" id="table_id">
<thead>
<th>Navn</th>
<th>Udløbsdato</th>
@if(auth()->user()->can('news.edit'))
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
@endif
@@ -29,6 +30,11 @@
@foreach($news as $new)
<tr>
<td>{{$new->subname}}</td>
@if($new->news_expiration_date !== null)
<td>{{ \Illuminate\Support\Facades\Date::createFromTimeStamp(strtotime($new->news_expiration_date))->format('d/m/Y \k\l\. H:i') }}</td>
@else
<td>Ingen udløbsdato</td>
@endif
@if(auth()->user()->can('news.edit'))
<td><a href="{{ route("news.edit", [ "news" => $new ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
@endif