@pushonce('style') @endpushonce @push('modals') @livewire('project.modalCrudSchedule') @endpush
@if(auth()->user()->isAdmin()) @endif
@foreach($this->getEvents as $event)
{{ $event['startDateString'] }} {{ $event['endDateString'] ? ' - ' . $event['endDateString'] : '' }}
{{ $event['title'] }}
@php $menuItems = [ [ 'text' => __('lang.view'), 'icon' => 'hugeicons:view', 'attributes' => 'wire:click="showPreview(\'' . $event['id'] . '\')"' ], [ 'show' => auth()->user()->isAdmin(), 'text' => __('lang.edit'), 'icon' => 'lucide:edit', 'attributes' => 'wire:click="editSchedule(\'' . $event['id'] . '\')"' ], [ 'show' => auth()->user()->isAdmin(), 'text' => __('lang.delete'), 'icon' => 'fluent:delete-24-regular', 'attributes' => 'wire:click="deleteSchedule(\'' . $event['id'] . '\')"' ], ]; @endphp
@endforeach
@push('script') @endpush