@php $editPermission = user()->permission('edit_events'); $deletePermission = user()->permission('delete_events'); $attendeesIds = $event->attendee->pluck('user_id')->toArray(); @endphp
@lang('modules.events.attendees') @lang('app.employee')
@foreach ($event->attendee as $item) @if(in_array('employee', $item->user->roles->pluck('name')->toArray()))
@lang('modules.events.attendees') @lang('app.client')
@foreach ($event->attendee as $item) @if(in_array('client', $item->user->roles->pluck('name')->toArray()))