@use('App\Models\Enquiries') @php $enquiryList = Enquiries::where('status', 1)->where('is_read', 0)->latest()->with('class')->get(); $enquiryCount = $enquiryList->count(); @endphp
@if ($item->enquiry_type == 'contact') ? {{ Str::words($item->message, 10, '...') }} @else Class Inquiry: {{ $item->class->title }}({{ $item->class->classtime->format('H:i A') ?? '00:00' }}) @endif
{{ $item->created_at->diffForHumans() }}
{{ $contactItem->message }}
{{ $contactItem->created_at->diffForHumans() }}
{{ 'Class Inquiry: ' . $classItem->class->title }} ({{ $classItem->class->classtime->format('H:i A') ?? '00:00' }})
{{ $classItem->created_at->diffForHumans() }}