@if(isset($academic_calendars) && $academic_calendars->count() > 0)
@foreach($academic_calendars as $eventItem)
@php
// Use start_date and end_date. Convert to Carbon objects seamlessly
$start = \Carbon\Carbon::parse($eventItem->start_date);
$end = $eventItem->end_date ? \Carbon\Carbon::parse($eventItem->end_date) : $start;
$daysDiff = $start->diffInDays($end) + 1; // inclusive count
$monthsBn = ['Jan'=>'জানু', 'Feb'=>'ফেব্রু', 'Mar'=>'মার্চ', 'Apr'=>'এপ্রিল', 'May'=>'মে', 'Jun'=>'জুন', 'Jul'=>'জুলাই', 'Aug'=>'আগস্ট', 'Sep'=>'সেপ্টে', 'Oct'=>'অক্টো', 'Nov'=>'নভে', 'Dec'=>'ডিসে'];
$monthStr = $monthsBn[$start->format('M')] ?? $start->format('M');
@endphp
@if($daysDiff > 1)
{{ $daysDiff }} দিন
@else
১ দিন
@endif
{{ $start->format('d') }}
{{ $monthStr }} {{ $start->format('Y') }}
{{ $eventItem->title }}
@if($eventItem->description)
{{ Str::limit(strip_tags($eventItem->description), 100) }}
@endif
@if($daysDiff > 1)
শেষ: {{ $end->format('d/m/Y') }}
@else
শেষ: {{ $end->format('d/m/Y') }}
@endif
@if($eventItem->location)
{{ $eventItem->location }}
@endif
@endforeach
দুঃখিত, কোনো ইভেন্ট পাওয়া যায়নি!
এই মুহূর্তে সিস্টেমে কোনো একাডেমিক ইভেন্ট যোগ করা নেই।