From f73c0255c2c31ba4cb2186bc097288e5c9cbcf6b Mon Sep 17 00:00:00 2001 From: denisdulici Date: Wed, 8 Nov 2017 20:45:39 +0300 Subject: [PATCH] no apps message --- resources/lang/en-GB/modules.php | 2 ++ resources/views/modules/tiles/index.blade.php | 20 ++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/resources/lang/en-GB/modules.php b/resources/lang/en-GB/modules.php index cd265a692..76f21cd17 100644 --- a/resources/lang/en-GB/modules.php +++ b/resources/lang/en-GB/modules.php @@ -11,6 +11,8 @@ return [ 'install' => 'Install', 'buy_now' => 'Buy Now', 'token_link' => 'Click here to get your API token.', + 'no_apps' => 'There are no apps in this category, yet.', + 'developer' => 'Are you a developer? Here you can learn how to create an app and start selling today!', 'installed' => ':module installed', 'uninstalled' => ':module uninstalled', diff --git a/resources/views/modules/tiles/index.blade.php b/resources/views/modules/tiles/index.blade.php index f09104bcb..48699aa62 100644 --- a/resources/views/modules/tiles/index.blade.php +++ b/resources/views/modules/tiles/index.blade.php @@ -10,8 +10,22 @@

{{ $title }}

- @foreach ($modules as $module) - @include('partials.modules.item') - @endforeach + @if ($modules) + @foreach ($modules as $module) + @include('partials.modules.item') + @endforeach + @else +
+
+

+ {{ trans('modules.no_apps') }} +

+

+ {!! trans('modules.developer') !!} +

+
+ +
+ @endif @endsection \ No newline at end of file