Skip to content

Commit

Permalink
fixed user roles
Browse files Browse the repository at this point in the history
  • Loading branch information
karpovigorok committed Mar 21, 2019
1 parent f8d4e05 commit 645b4e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions application/resources/views/admin/users/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@
</td>
<td>{{ $user->active }}</td>
<td>
@if($user->subscribed('main') && $user->subscription()->onGracePeriod() )
<?php //dd($user->subscribed('main'));
if($user->subscribed('main') && $user->subscription('main')->onGracePeriod()):?>
<div class="label label-warning"><i class="fa fa-meh-o"></i> <?php echo _i("Grace Period");?></div>
@elseif( $user->subscribed('main') && $user->subscription()->canceled() )
<?php elseif( $user->subscribed('main') && $user->subscription('main')->cancelled()):?>
<div class="label label-danger"><i class="fa fa-frown-o"></i> <?php echo _i("Cancelled");?></div>
@elseif( $user->subscribed('main') || ($user->role == 'admin' || $user->role == 'demo') )
<?php elseif( $user->subscribed('main') || ($user->role == 'admin' || $user->role == 'demo')):?>
<div class="label label-success"><i class="fa fa-ticket"></i> <?php echo _i("Subscribed");?></div>
@endif
<?php endif;?>

</td>
<td>
Expand Down

0 comments on commit 645b4e0

Please sign in to comment.