@foreach ($popups as $index => $popup) @endforeach
@foreach ($banner as $banners)
{{ $banners->name }}

{{ $banners->caption }}

@endforeach

News

@foreach ($newspage2 as $news)
{{ $news->name }}
{{ Str::limit($news->name, 35) }}
@php $description = $news->description; $description = preg_replace('/\b\S+\.(jpg|jpeg|png|gif)\b/i', '', $description); $limitedDescription = mb_substr(strip_tags($description), 0, 100); if (mb_strlen(strip_tags($description)) > 100) { $limitedDescription .= '...'; // Add ellipsis if truncated } @endphp

{!! $limitedDescription !!}

@endforeach

Related Videos

@forelse ($videos as $video)
@php $videoId = null; if (isset($video->url)) { if (str_contains($video->url, 'v=')) { // Handle URLs like https://www.youtube.com/watch?v=VIDEO_ID $videoId = explode('v=', $video->url)[1] ?? null; // Remove any additional query parameters (e.g., &t=123) $videoId = explode('&', $videoId)[0] ?? $videoId; } elseif (str_contains($video->url, 'youtu.be')) { // Handle URLs like https://youtu.be/VIDEO_ID $videoId = explode('youtu.be/', $video->url)[1] ?? null; } } @endphp @if($videoId) @endif
@empty

No videos found.

@endforelse

Articles

@foreach ($articlepage as $article)
{{Str::limit($article->name,60) }}

{{ $article->date ? \Carbon\Carbon::parse($article->date)->format('Y-m-d') : \Carbon\Carbon::parse($article->created_at)->format('Y-m-d') }}

@endforeach

Social Media

LinkedIn

Connect with us professionally.

Connect

YouTube

Subscribe to our channel.

Subscribe