Update Message UI in Admin Dashboard

This commit is contained in:
George Frederick "Buzz" Beurling
2020-06-21 11:30:00 -04:00
parent 8866cafd31
commit 5a019b2c92
6 changed files with 64 additions and 41 deletions

View File

@@ -36,6 +36,9 @@
@endif
@endforeach
@endif
@if($n->files != [""] && isset($n->files))
<span class="badge badge-pill badge-secondary">Fichier joint</span>
@endif
</div>
@if($n->publish == 0) <span class="badge badge-warning float-right">Brouillon</span> @endif</p>
</div>
@@ -44,6 +47,11 @@
</div>
<div class="card-footer">
<div class="btn-group">
@if(!isset($n->event_id))
<a href="/news/{{$n->id}}" type="button" class="btn btn-secondary" target="_blank"><i class="fa fa-external-link-alt"></i>&nbsp; Afficher</a>
@else
<a href="/news/{{$n->event_id}}?type=msg" type="button" class="btn btn-secondary" target="_blank"><i class="fa fa-external-link-alt"></i>&nbsp; Afficher</a>
@endif
@if(\Auth::user()->p('news_edit') == 1 && !isset($n->event_id))
<a href="/admin/news/edit/{{$n->id}}" type="button" class="btn btn-secondary"><i class="fa fa-cog"></i>&nbsp; Modifier</a>
@else