From 01092132bf113b64333b195839cf1a07ef4fec39 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Fri, 16 Dec 2022 11:59:46 +0100 Subject: [PATCH] counts added --- .../views/columns/lectures/action.blade.php | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/resources/views/columns/lectures/action.blade.php b/resources/views/columns/lectures/action.blade.php index 747ecd69..6359dec0 100644 --- a/resources/views/columns/lectures/action.blade.php +++ b/resources/views/columns/lectures/action.blade.php @@ -1,10 +1,26 @@
- - - Termine anzeigen - - - - Inhalte anzeigen - + @if($row->courses_count > 0) + + + Termine anzeigen ({{ $row->courses_count }}) + + @endif + @if($row->courses_count < 1) + + + Termine anzeigen ({{ $row->courses_count }}) + + @endif + @if($row->library_items_count > 0) + + + Inhalte anzeigen ({{ $row->library_items_count }}) + + @endif + @if($row->library_items_count < 1) + + + Inhalte anzeigen ({{ $row->library_items_count }}) + + @endif