@if($data['notice_disaplay'] && $data['notice_disaplay']->count() >0) @foreach($data['notice_disaplay'] as $notice) @php($displayGroup = explode(',',$notice->display_group)) @php($role = auth()->user()->roles[0]->id) @if(in_array($role, $displayGroup))

{{$notice->title}}


{!! $notice->message !!}
@endif @endforeach @endif