Skip to content

Commit

Permalink
refs #364 added installation apps/my permission and index page edited
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 1, 2018
1 parent 499728a commit a34f30f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
1 change: 1 addition & 0 deletions database/seeds/Roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private function roles()
'modules-tiles' => 'r',
'modules-item' => 'c,r,u,d',
'modules-token' => 'c,u',
'modules-my' => 'r',
'install-updates' => 'r,u',
'notifications' => 'r,u',
'reports-income-summary' => 'r',
Expand Down
40 changes: 34 additions & 6 deletions resources/views/modules/my/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,47 @@
<h3>{{ trans('modules.my.purchased') }}</h3>
</div>

@foreach ($purchased as $module)
@include('partials.modules.item')
@endforeach
@if ($purchased)
@foreach ($purchased as $module)
@include('partials.modules.item')
@endforeach
@else
<div class="box box-success">
<div class="box-body">
<p class="col-md-12" style="margin-top: 15px">
{{ trans('modules.no_apps') }}
</p>
<p class="col-md-12" style="margin-top: 20px">
<small>{!! trans('modules.developer') !!}</small>
</p>
</div>
<!-- /.box-body -->
</div>
@endif
</div>

<div class="col-md-12">
<div class="content-header no-padding-left">
<h3>{{ trans('modules.my.installed') }}</h3>
</div>

@foreach ($modules as $module)
@include('partials.modules.item')
@endforeach
@if ($modules)
@foreach ($modules as $module)
@include('partials.modules.item')
@endforeach
@else
<div class="box box-success">
<div class="box-body">
<p class="col-md-12" style="margin-top: 15px">
{{ trans('modules.no_apps') }}
</p>
<p class="col-md-12" style="margin-top: 20px">
<small>{!! trans('modules.developer') !!}</small>
</p>
</div>
<!-- /.box-body -->
</div>
@endif
</div>
</div>
@endsection

0 comments on commit a34f30f

Please sign in to comment.