@vite('resources/css/app.css') @include('CMS.sidebar')

Events List

@if ($errors->any())
{{ $errors->first('error') }}
@endif
@foreach($events as $activity) @endforeach
User Client Meeting Type Status Employees Start Date End Date Add Employee Edit delete
{{ $activity->user_name }} {{ $activity->event_name }} {{ $activity->meeting_type }} {{ $activity->status }}
    @if (!empty($activity->employee_info)) @foreach (explode(',', $activity->employee_info) as $employeeInfo) @php // Remove the number using regular expressions $employeeName = preg_replace('/^\d+\s*-\s*/', '', $employeeInfo); @endphp
  • {{ $employeeName }}
  • @endforeach @else
  • No employees assigned to this event
  • @endif
{{ \Carbon\Carbon::parse($activity->start_date)->format('l, F j, Y') }} {{ \Carbon\Carbon::parse($activity->end_date)->format('l, F j, Y') }}
@csrf @method('DELETE')
@include('CMS.scriptwithdb')