Apps page show installed modules

This commit is contained in:
cuneytsenturk
2018-05-28 16:46:52 +03:00
parent 0590e2ed91
commit d57537b203
5 changed files with 36 additions and 6 deletions

View File

@ -2,6 +2,17 @@
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title"><a href="{{ url('apps/' . $module->slug) }}">{{ $module->name }}</a></h3>
@if (isset($installed[$module->slug]))
@php $color = 'bg-green'; @endphp
@if (!$installed[$module->slug])
@php $color = 'bg-yellow'; @endphp
@endif
<span class="module-installed">
<small class="label {{ $color }}">{{ trans('modules.badge.installed') }}</small>
</span>
@endif
<!-- /.box-tools -->
</div>
<!-- /.box-header -->