@extends('layouts.website') @section('content') {{-- ROOT CAUSE FIX: EventsController was limiting upcoming events to 3 with ->take(3) This prevented "View More" functionality from working since Blade never saw >6 events. FIXES APPLIED: 1. Removed ->take(3) limit from EventsController index() method 2. Added Event model scope with proper Asia/Kolkata timezone handling 3. Added safe casts for date/time fields 4. Blade template now receives ALL upcoming events for proper "View More" functionality 5. FIXED: Date-time parsing without concatenation errors - parse date and time separately Static file mirrored: irqs-website/events.php Data mapping: - Date/Time: date + time fields, formatted as "M d, Y - h:i A IST" in Asia/Kolkata timezone - Location: location field, fallback to title if location is empty - Duration: duration field, fallback to "30 Minutes" if empty REMINDER: No labels, values only. No new CSS, match static markup exactly. --}}

Your Path to Certification Starts Here: IRCLASS Events

Explore upcoming online and offline events designed to elevate your expertise—whether you're aiming to become a Lead Auditor, Internal Auditor, or expand your industry knowledge.

Explore Upcoming Events & Learning Opportunities

IRCLASS Training Events –
Engage, Elevate & Excel

Our core committee members are integral to IRQS's operations, ensuring
that our services meet the highest standards of quality and efficiency.

@php $initial = 6; @endphp @forelse($upcomingEvents as $index => $event) @php // FIXED: Proper date-time parsing without concatenation errors $dateTimeText = ''; if ($event->date) { $startDate = \Carbon\Carbon::parse($event->date); if ($event->time) { // Parse date and time separately, then combine $startTime = \Carbon\Carbon::parse($event->time); $combinedDateTime = $startDate ->copy() ->setTime($startTime->hour, $startTime->minute, $startTime->second); $dateTimeText = $combinedDateTime->timezone('Asia/Kolkata')->format('M d, Y - h:i A') . ' IST'; } else { // Only date available $dateTimeText = $startDate->timezone('Asia/Kolkata')->format('M d, Y - h:i A') . ' IST'; } } // Values only - no labels as per static markup $location = $event->location ?: $event->title; $duration = $event->duration ?: '30 Minutes'; @endphp
{{ $event->title }}

{{ $event->mode }}

{{ $event->title }}
icon-clock {{ $dateTimeText }} icon-calender {{ $location }} , Duration: {{ $duration }}
@empty

No upcoming events at the moment. Please check back later.

@endforelse
@if (($upcomingEvents->count() ?? count($upcomingEvents ?? [])) > $initial) @endif

Past Events

@forelse($pastEvents as $event)
{{ $event->mode }}
{{ $event->title }}
@php $eventDate = $event->date ? \Carbon\Carbon::parse($event->date)->format('M d, Y') : ''; @endphp {{ $eventDate }}
{{ $event->title }}

@php $pastEventDate = $event->date ? \Carbon\Carbon::parse($event->date)->format('M d, Y') : ''; @endphp {{ $pastEventDate }}

{{ $event->location }}

{{ $event->duration ?? 'Event Management' }}.

@empty

No past events available.

@endforelse

Let's get you certified-Start your journey today!

Connect with our experts for a seamless and hassle-free certification process.

Get Certified
background-img
man-img
button
@include('website.partials.include_js') @endsection