Skip to content

Commit

Permalink
Only show confirmed volunteers in volunteers modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ngm committed Aug 2, 2018
1 parent efd5b68 commit ad87ced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/includes/modals/group-volunteers.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</tr>
</thead>
<tbody>
@foreach( $view_group->allVolunteers as $volunteer )
@foreach( $view_group->allConfirmedVolunteers as $volunteer )
@include('partials.volunteer-row')
@endforeach
</tbody>
Expand Down
5 changes: 4 additions & 1 deletion resources/views/partials/volunteer-row.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
@endif
</td>
<td>
<a href="/profile/{{ $user->id }}">{{ $user->name }}@if ( $volunteer->role == 3 )<span class="badge badge-primary">@lang('partials.host')</span>@endif</a>
<a href="/profile/{{ $user->id }}">{{ $user->name }}</a>
@if ( $volunteer->role == 3 )
<span class="badge badge-primary">@lang('partials.host')</span>
@endif
</td>
@php( $user_skills = $user->userSkills )
<td>
Expand Down

0 comments on commit ad87ced

Please sign in to comment.