@extends($activeTemplate . 'layouts.frontend') @section('content') @php $currentLang = app()->getLocale(); // Translations: key => [Assamese, English] $t = [ // SEO 'seo_title' => $currentLang === 'as' ? "প্ৰাগনিউজ | অসমৰ প্ৰধান ২৪/৭ বাতৰি চেনেল | উত্তৰ-পূৱ ভাৰতৰ শেহতীয়া বাতৰি" : "PragNews | Assam's Pioneer 24/7 News Channel | Latest News from Northeast India", 'seo_description' => $currentLang === 'as' ? "প্ৰাগনিউজৰ সৈতে সংযুক্ত থাকিব, অসমৰ আগশাৰীৰ দুচভাষিক বাতৰি উৎস—২০ বছৰৰো অধিক অভিজ্ঞতা। শেহতীয়া খবৰ, বিশদ কাভাৰেজ, আৰু উত্তৰ-পূৱ ভাৰতৰ খবৰ।" : "Stay updated with PragNews, Assam's leading bilingual news source for 20+ years. Get breaking news, in-depth coverage, and updates from Assam, Northeast India, and beyond.", 'seo_keywords' => $currentLang === 'as' ? "অসম বাতৰি, উত্তৰ-পূৱ ভাৰতৰ বাতৰি, PragNews, অসমীয়া বাতৰি চেনেল, শেহতীয়াকৈ বাতৰি অসম, খবৰ আপডেট উত্তৰ-পূৱ, গুৱাহাটী বাতৰি, আঞ্চলিক বাতৰি, ৰাষ্ট্ৰীয় বাতৰি" : "Assam news, Northeast India news, Prag News, Assamese news channel, breaking news Assam, news updates Northeast, Guwahati news, latest news Assam, regional news, national news", // Section One 'must_read' => $currentLang === 'as' ? "নিশ্চয়কৈ পঢ়ক" : "MUST READ", // Section Two 'dont_miss' => $currentLang === 'as' ? "মিছ নকৰিবা" : "DON’T MISS", 'no_post_available' => $currentLang === 'as' ? "কোনো পোষ্ট উপলব্ধ নহয়" : "No post available", 'ad_image_alt' => $currentLang === 'as' ? "বিজ্ঞাপন চিত্ৰ" : "Ad image", 'post_image_alt' => $currentLang === 'as' ? "পোষ্ট চিত্ৰ" : "Post image", 'no_editors_pic' => $currentLang === 'as' ? "সম্পাদকৰ পিক উপলব্ধ পোষ্ট নাই" : "No Editor’s Pick post available", // Section Three (Hero + Live) 'live_updates' => $currentLang === 'as' ? "লাইভ আপডেট" : "Live Updates", 'live' => $currentLang === 'as' ? "LIVE" : "LIVE", 'previous' => $currentLang === 'as' ? "পূৰ্ববর্তী" : "Previous", 'next' => $currentLang === 'as' ? "পৰৱৰ্তী" : "Next", // Recent Posts 'recent_posts' => $currentLang === 'as' ? "শেহতীয়া পোষ্ট" : "RECENT POSTS", 'latest' => $currentLang === 'as' ? "শেহতীয়া" : "LATEST", 'mins_read' => $currentLang === 'as' ? "মিনিট পঢ়া" : "mins read", 'read_more' => $currentLang === 'as' ? "আৰু পঢ়ক" : "READ MORE", 'load_more' => $currentLang === 'as' ? "অধিক লোড কৰক" : "LOAD MORE", 'advertisement_alt' => $currentLang === 'as' ? "বিজ্ঞাপন" : "Advertisement", // Breaking News 'breaking' => $currentLang === 'as' ? "BREAKING" : "BREAKING", 'unknown' => $currentLang === 'as' ? "অজানা" : "Unknown", 'breaking_news_image' => $currentLang === 'as' ? "BREAKING NEWS চিত্ৰ" : "Breaking News Image", 'more_breaking_news' => $currentLang === 'as' ? "আরু BREAKING খবৰ" : "MORE BREAKING NEWS", // Regional / National / International 'regional' => $currentLang === 'as' ? "আঞ্চলিক" : "Regional", 'unknown_author' => $currentLang === 'as' ? "অজানা লেখক" : "Unknown Author", 'national' => $currentLang === 'as' ? "ৰাষ্ট্ৰীয়" : "National", 'international' => $currentLang === 'as' ? "আন্তৰ্জাতিক" : "International", // Sports 'sports' => $currentLang === 'as' ? "খেলা" : "Sports", 'view_more' => $currentLang === 'as' ? "আরু দেখুৱাওক" : "View More", 'feature_editor' => $currentLang === 'as' ? "ভাগ সম্পাদক" : "Feature Editor", // Sidebar / Follow Us / Watch Live 'follow_us' => $currentLang === 'as' ? "আমাক অনুসৰণ কৰক" : "FOLLOW US", 'follow' => $currentLang === 'as' ? "অ" : "F", 'watch_live' => $currentLang === 'as' ? "লাইভ চাওক" : "WATCH LIVE", 'watch' => $currentLang === 'as' ? "চাওক" : "W", 'live_tv_alt' => $currentLang === 'as' ? "লাইভ টিভি" : "Live TV", // Tabs (Popular / Feature / Trendy) 'popular' => $currentLang === 'as' ? "জনপ্ৰিয়" : "POPULAR", 'feature' => $currentLang === 'as' ? "বৈশিষ্ট্য" : "FEATURE", 'trendy' => $currentLang === 'as' ? "ট্ৰেণ্ডি" : "TRENDY", 'post' => $currentLang === 'as' ? "পোষ্ট" : "Post", 'most_commented' => $currentLang === 'as' ? "সপ্তাহৰ আটাইতকৈ বেছ মন্তব্য কৰা প্ৰবন্ধ" : "Most Commented Article of the Week", 'may_3_2025' => $currentLang === 'as' ? "৩ মে, ২০২৫" : "May 3, 2025", 'community_manager' => $currentLang === 'as' ? "Community Manager" : "Community Manager", 'hot' => $currentLang === 'as' ? "HOT" : "HOT", 'viral_discussion' => $currentLang === 'as' ? "ভাইৰেল আলোচনা: পাঠকৰ মতামত" : "Viral Discussion: Community Speaks Out", 'may_2_2025' => $currentLang === 'as' ? "২ মে, ২০২৫" : "May 2, 2025", 'discussion_lead' => $currentLang === 'as' ? "Discussion Lead" : "Discussion Lead", // Videos Section 'in_motion' => $currentLang === 'as' ? "ইন ম’শন" : "IN MOTION", 'videos' => $currentLang === 'as' ? "ভিডিঅ’" : "VIDEOS", 'all_videos' => $currentLang === 'as' ? "সমস্ত ভিডিঅ’" : "ALL VIDEOS", 'video_thumbnail_alt' => $currentLang === 'as' ? "ভিডিঅ’ থামনেইল" : "Video Thumbnail", 'views' => $currentLang === 'as' ? "ভিউ" : "views", // Editor’s Pick 'editors_pick' => $currentLang === 'as' ? "সম্পাদকৰ পছন্দ" : "Editor's Pick", 'editors_pick_desc' => $currentLang === 'as' ? "বাছি বাছি প্ৰবন্ধবোৰ অভিজ্ঞ সম্পাদকৰ দ্বাৰা নিৰ্বাচিত। পাঠকৰ ৰেটিঙৰ ওপৰতো আধাৰিত। এই পোষ্টসমূহে অধিক মনোযোগ পান।" : "The featured articles are selected by experienced editors. It is also based on the reader’s rating. These posts have a lot of interest.", // E-Magazine 'e_magazine' => $currentLang === 'as' ? "ই-আলোচনী" : "E-MAGAZINE", 'digital' => $currentLang === 'as' ? "ডিজিটেল" : "DIGITAL", 'latest_digital' => $currentLang === 'as' ? "শেহতীয়া ডিজিটেল সংস্কৰণ" : "Latest Digital Edition", 'emag_desc' => $currentLang === 'as' ? "নিয়মিতভাৱে আপডেট কৰা আমাৰ ই-আলোচনীখন অন্বেষণ কৰক, য'ত কিউৰেট কৰা প্ৰবন্ধ, বাতৰি, আৰু অন্তৰ্দৃষ্টিসমূহ সন্নিবিষ্ট কৰা হৈছে। সাম্প্ৰতিক পৰিস্থিতি, গভীৰ কাহিনী বা বিশেষ বৈশিষ্ট্যৰ প্ৰতি আগ্ৰহী প্ৰতিজনৰ বাবে আমাৰ ডিজিটেল প্ৰকাশনে সকলো বিষয়বস্তু পোনপটীয়াকৈ চকুৰ আগত তুলি ধৰিব" : "Explore our regularly updated E-Magazine, featuring curated articles, news, and insights. Whether you’re interested in current affairs, in-depth stories, or special features, our digital publication brings the latest content straight to your screen.", 'view' => $currentLang === 'as' ? "চাওক" : "View", // Mini Player controls 'expand' => $currentLang === 'as' ? "বিস্তৃত" : "Expand", 'close' => $currentLang === 'as' ? "বন্ধ" : "Close", ]; // Existing data retrievals (unchanged): $homeOneContent = getContent('homeone.content', true); $homeTwoContent = getContent('hometwo.content', true); $homeThreeContent= getContent('homethree.content', true); $general = gs(); $content = getContent('print_magazine.content', true); $weatherWidgetLanguages = [ 'en' => 'EN', 'as' => 'EN', // Use English for Assamese // Add other languages as needed ]; $weatherLang = $weatherWidgetLanguages[$currentLang] ?? 'EN'; // Note: we do NOT define $livenws, $breakings, $reg, $nat, $innat, $sports, $editors, $posts_recents, $videos here. // They must come from the controller (just as before). // We only translate text—do NOT add any new where‐clauses or functions that rely on non‐existent columns. // SEO variables (now using $t[...] for strings): $seoTitle = $t['seo_title']; $seoDescription = $t['seo_description']; $seoKeywords = $t['seo_keywords']; $ogImage = ($featurePost ?? null) ? postImageUrl($featurePost) : getImage(getFilePath('logoIcon') . '/logo.png'); @endphp

{{ $t['seo_title'] }}

@section('meta') {{ $seoTitle }} | {{ date('Y') }} @if(isset($posts_recents) && $posts_recents->count() > 0) @endif @if(isset($breakings) && $breakings->count() > 0) @endif @if(isset($videos) && $videos->count() > 0) @endif @if(!empty($featurePost)) @endif @if(is_array(config('app.available_locales')) && count(config('app.available_locales'))) @foreach(config('app.available_locales') as $locale) @endforeach @endif @endsection {{-- Home Section One --}} @if($general->homesection == 1 && $featurePost) @endif {{-- Home Section One End --}} {{-- Home Section Two --}} @if($general->homesection == 2)
@endif {{-- Home Section Two End --}} {{-- Hero Section --}} @if($general->homesection == 3 && $featurePost)
{{-- MUST READ Badge --}}
{{ $t['must_read'] }}
{{-- Carousel --}} {{-- Title & Meta Below Carousel --}}

{{-- Header --}}
{{ $t['live_updates'] }}
{{-- Featured Live Image --}} @if(isset($livenws) && $livenws->count()) @php $firstLive = $livenws->first(); $liveImg = asset('application/public/live_news/' . ($firstLive->image ?? '')); @endphp {{ $firstLive->title }} {{-- If there is at least one live update, show it --}} @endif {{-- Title of Featured Live News --}}
@if(isset($livenws) && $livenws->count())
{{ Str::limit($firstLive->title, 70) }}
@endif {{-- List of Other Live Updates --}}
@endif {{-- Home Section Three End --}} {{-- Home Sections, Ads, Recent Posts, etc. --}}
{{-- LEFT: col-lg-8 --}}
{{-- RECENT POSTS --}}
{{ $t['recent_posts'] }} {{ $t['latest'] }}
@if(isset($posts_recents)) @foreach($posts_recents as $key => $po) @if($key < 4) @php $usr = postAuthorUser($po); @endphp
{{ $po->title }}
{{ $po->getCategory->name ?? 'GENERAL' }}
{{ $po->title }}

{!! Str::limit(strip_tags($po->short_description ?: $po->description ?? ''), 150) !!}

{{ $t['read_more'] }}
@endif @endforeach @endif
{{-- LOAD MORE BUTTON --}} {{-- AD SPACE --}}
{{-- BREAKING NEWS SECTION --}}
@if(isset($breakings)) @foreach($breakings as $key_bk => $bk) @php $usr = postAuthorUser($bk); @endphp
{{ $t['breaking'] }} {{ date('d M, Y', strtotime($bk->publish_date)) }} • {{ $bk->time_to_read }} {{ $t['mins_read'] }} • {{ $usr ? strip_tags($usr->firstname) : $t['unknown'] }}
{{ $bk->title }}

{!! Str::limit(strip_tags($bk->short_description ?: $bk->description ?? ''), 200) !!}

{{ $t['read_more'] }}
@if($key_bk < count($breakings) - 1)
@endif @endforeach @endif
{{-- MORE BREAKING NEWS BUTTON --}}

{{-- REGIONAL SECTION --}} @if(isset($reg) && $reg->count() > 0)
{{ $t['regional'] }}
@php $usr = postAuthorUser($reg[0]); @endphp {{ $reg[0]->title }}
{{ $t['regional'] }}
{{ $reg[0]->title }}

{!! Str::limit(strip_tags($reg[0]->short_description ?: $reg[0]->description ?? ''), 300) !!}

@foreach($reg as $key => $rg) @if($key != 0) @php $usr = postAuthorUser($rg); @endphp
{{ $rg->title }}
{{ $rg->title }}
@endif @endforeach
@endif {{-- AD SPACE --}}
{{-- NATIONAL SECTION --}} @if(isset($nat) && $nat->count() > 0)
{{ $t['national'] }}
@php $usr = postAuthorUser($nat[0]); @endphp {{ $nat[0]->title }}
{{ $t['national'] }}
{{ $nat[0]->title }}

{!! Str::limit(strip_tags($nat[0]->short_description ?: $nat[0]->description ?? ''), 300) !!}

@foreach($nat as $key => $article) @if($key != 0) @php $usr = postAuthorUser($article); @endphp
{{ $article->title }}
{{ $article->title }}
@endif @endforeach
@endif
{{-- AD SPACE --}}
{{-- INTERNATIONAL SECTION --}} @if(isset($innat) && $innat->count() > 0)
{{ $t['international'] }}
@php $usr = postAuthorUser($innat[0]); @endphp {{ $innat[0]->title }}
{{ $t['international'] }}
{{ $innat[0]->title }}

{!! Str::limit(strip_tags($innat[0]->short_description ?: $innat[0]->description ?? ''), 300) !!}

@foreach($innat as $key => $article) @if($key != 0) @php $usr = postAuthorUser($article); @endphp
{{ $article->title }}
{{ $article->title }}
@endif @endforeach
@endif {{-- AD SPACE --}}
{{-- SPORTS SECTION --}} @if(isset($sports) && $sports->count() > 0)
{{ $t['sports'] }}
{{-- Main Sports Article --}}
@if(isset($sports[0]))
{{ $sports[0]->title }}
{{ $sports[0]->title }}

{!! Str::limit(strip_tags($sports[0]->short_description ?: $sports[0]->description ?? ''), 150) !!}

@endif
{{-- Sports Side Stories --}}
@foreach($sports as $key => $sport) @if($key != 0)
{{ $sport->title }}

{{ $sport->title }}

@endif @endforeach
@endif {{-- FINAL AD SPACE BELOW SPORTS --}}
{{-- END OF LEFT COL-lg-8 --}} {{-- RIGHT: col-lg-4 (Sidebar) --}}
{{-- FOLLOW US --}}
{{ $t['follow_us'] }} {{ $t['follow'] }}
{{-- WATCH LIVE --}}
{{ $t['watch_live'] }} {{ $t['watch'] }}
{{-- FIRST AD BELOW LIVE TV WIDGET --}} {{-- POPULAR / FEATURE / TRENDY TAB SECTION --}}
{{ $t['popular'] }}
{{ $t['feature'] }}
{{ $t['trendy'] }}
{{-- POPULAR TAB --}} {{-- FEATURE TAB - Increased to show 4 posts --}}
@if(isset($sliders)) @foreach($sliders as $key_fs => $fhk) @if($key_fs < 4)
{{ $fhk->title ?? $t['post_image_alt'] }}
@endif @endforeach @endif
{{-- TRENDY TAB - highest viewed posts of the week --}}
@if(($trendyPosts ?? collect())->count() > 0) @foreach($trendyPosts as $trendy) @php $usr = postAuthorUser($trendy); @endphp
{{ $trendy->title ?? $t['post_image_alt'] }}
@endforeach @else {{-- Fallback if no trending posts are found --}}
{{ $t['post'] }}
@endif

{{-- TOMORROW.IO WEATHER WIDGET --}} {{-- SECOND AD BELOW WEATHER WIDGET --}}
{{-- END OF RIGHT COL-lg-4 --}}
{{-- END OF ROW --}}
{{ $t['in_motion'] }} {{ $t['videos'] }}
{{ $t['all_videos'] }}
{{-- Left Side - 2 Large Videos --}} {{-- Right Side - 4 Small Videos --}}
@if(isset($videos)) @foreach($videos as $key_vdo => $vdd) @if($key_vdo > 1 && $key_vdo <= 5) @endif @endforeach @endif

{{ $t['editors_pick'] }}

{{ $t['editors_pick_desc'] }}

@if(isset($editors)) @php $chunks = $editors->chunk(4); @endphp
@endif

{{ $t['digital'] }}
{{--
--}}

{{-- Floating Mini Player --}} @php $liveTvPoster = asset('application/public/assets/upload/live-back-min.jpg'); $liveTvStream = 'https://hls.pragnews.com/master.m3u8'; @endphp
🔴 {{ $currentLang === 'as' ? 'লাইভ টিভি' : 'LIVE TV' }}
{{-- End of Features area --}} @push('style') @endpush @push('script') @endpush @endsection Call to undefined function App\Providers\gs()