From 45e2171ab1c820be52326c827ae30539f0721d8f Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 6 Sep 2016 19:56:01 +0200 Subject: Only show roots with active verbs on trainer page --- resources/views/trainer.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'resources/views/trainer.blade.php') diff --git a/resources/views/trainer.blade.php b/resources/views/trainer.blade.php index 4c788f0..c4452f6 100644 --- a/resources/views/trainer.blade.php +++ b/resources/views/trainer.blade.php @@ -28,11 +28,13 @@ use HebrewParseTrainer\Tense;

Roots

+ {{{ $root->root }}} ({{{ $root->kind->name }}}) -
+ @if ($root->verbs()->where('active', 1)->count() > 0) + + @endif @endforeach +
-- cgit v1.2.3