v1.4.4 Made news expiration date, add category to app homepages, made small css things
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user