From ad87ced9e40e8cc82b66e93f3bcf97ced013619e Mon Sep 17 00:00:00 2001 From: Neil Mather Date: Thu, 2 Aug 2018 23:01:54 +0100 Subject: [PATCH] Only show confirmed volunteers in volunteers modal --- resources/views/includes/modals/group-volunteers.blade.php | 2 +- resources/views/partials/volunteer-row.blade.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/includes/modals/group-volunteers.blade.php b/resources/views/includes/modals/group-volunteers.blade.php index a701f58cde..aff7e87087 100644 --- a/resources/views/includes/modals/group-volunteers.blade.php +++ b/resources/views/includes/modals/group-volunteers.blade.php @@ -28,7 +28,7 @@ - @foreach( $view_group->allVolunteers as $volunteer ) + @foreach( $view_group->allConfirmedVolunteers as $volunteer ) @include('partials.volunteer-row') @endforeach diff --git a/resources/views/partials/volunteer-row.blade.php b/resources/views/partials/volunteer-row.blade.php index 28ecc60e25..fcc48fad7e 100644 --- a/resources/views/partials/volunteer-row.blade.php +++ b/resources/views/partials/volunteer-row.blade.php @@ -12,7 +12,10 @@ @endif - {{ $user->name }}@if ( $volunteer->role == 3 )@lang('partials.host')@endif + {{ $user->name }} + @if ( $volunteer->role == 3 ) + @lang('partials.host') + @endif @php( $user_skills = $user->userSkills )