@php $editPermission = user()->permission('edit_events'); $deletePermission = user()->permission('delete_events'); $attendeesIds = $event->attendee->pluck('user_id')->toArray(); @endphp

{{ $event->event_name }}

@lang('app.attendeesEmployee')

@foreach ($event->attendee as $item) @if(in_array('employee', $item->user->roles->pluck('name')->toArray()))

@endif @endforeach

@lang('app.attendeesClients')

@foreach ($event->attendee as $item) @if(in_array('client', $item->user->roles->pluck('name')->toArray()))

@endif @endforeach

@php $url = str_starts_with($event->event_link, 'http') ? $event->event_link : 'http://'.$event->event_link; $link = "$event->event_link"; @endphp
@forelse($event->files as $file) @if ($file->icon == 'images') @else @endif @empty @endforelse