@extends('layouts.app') @section('title', __('المركز الإعلامي')) @section('title', $seo['page_title'] ?? __('المركز الإعلامي')) @section('meta_title', $seo['meta_title'] ?? '') @section('description', $seo['meta_description'] ?? '') @section('keywords', $seo['keywords'] ?? '') @section('og:title', $seo['og_title'] ?? '') @section('og:description', $seo['og_description'] ?? '') @section('og_image', $seo['og_image'] ?? asset('images/RFav.png')) @section('canonical_url', $seo['canonical_url'] ?? url()->current()) @push('styles') @vite(['resources/css/media-center.css', 'resources/css/activities.css']) @endpush @section('content')

{{ $newsPageTitle }}

{{-- تبويب الكل ثابت --}} {{-- التابات الديناميكية حسب المجموعات القادمة من الـ API --}} @foreach ($newsGroups as $group) @endforeach
@forelse($news as $item)
@if ($item['image_url']) {{ $item['title'] }} @else {{ $item['title'] }} @endif
{{ $item['group_label'] ?? __('media.news') }}
{{ $item['date'] }}

{{ $item['title'] }}

{!! \App\Helpers\TextHelper::linkify(\Illuminate\Support\Str::limit(strip_tags($item['description']), 150)) !!}

@empty {{-- في حال عدم وجود بيانات --}} @endforelse
@if (!empty($awardsItems))

{{ $awardsMeta->title ?? __('media.awards_meta_title') }}

{{ $awardsMeta->description ?? __('media.awards_meta_desc') }}

@if (count($awardsItems) > 0) @foreach ($awardsItems as $index => $award)
{{ $award['title'] }}

{{ $award['title'] }}

{{ $award['description_1'] ?? '' }}

@endforeach @endif
@endif @if (!empty($tankiReels))

{{ __('media.tanki_title') }}

@foreach ($tankiReels as $reel)
{{-- الصورة --}} {{-- المحتوى --}}

{{ $reel['title'] ?? __('media.tanki_title') }}

@if (!empty($reel['description']))

{{ $reel['description'] ?? __('media.tanki_description') }}

@endif
@endforeach
@endif @if (!empty($programCategories))

{{ __('media.ala_darb_title') }}

@foreach ($programCategories as $index => $category) @endforeach
@foreach ($programCategories as $index => $category)
@foreach ($category['programs_by_year'] as $year => $programs)

{{ $year }}

@foreach ($programs as $reel)

{{ $reel['title'] ?? __('media.loading') }}

@if (!empty($reel['description']))

{{ $reel['description'] }}

@endif
{{--
{{ __('media.Watch_now') }}
--}}
@endforeach
@endforeach
@endforeach
@endif @if (!empty($podcastReels))

{{ __('media.podcasts_title') }}

@foreach ($podcastReels as $reel)
@if ($reel['thumb']) بودكاست @endif
{{ __('media.loading') }}
@endforeach
@endif @include('partials.footerPages')
@push('scripts') @endpush @endsection