@extends('admin.layouts.app') @section('title', __('admin.menu_engagement')) @section('heading', __('admin.menu_engagement')) @section('content')
{{ __('admin.cancel') }}
@php $hasAny = collect($sections)->contains(fn ($items) => $items->isNotEmpty()); @endphp @forelse ($sections as $key => $items) @if ($items->isNotEmpty())

{{ $filters[$key] ?? __('admin.comment_type_'.$key) }}

@foreach ($items as $item) @endforeach
{{ __('admin.name') }} {{ __('admin.engagement_views') }} {{ __('admin.engagement_likes') }} {{ __('admin.engagement_comments') }}
{{ locale_field($item, 'title') ?: locale_field($item, 'name') ?: $item->id }} {{ number_format($item->views ?? 0) }} {{ number_format($item->likes_count ?? 0) }} {{ number_format($item->comments_count ?? 0) }}
@endif @empty @endforelse @unless ($hasAny)
{{ __('admin.empty') }}
@endunless
@endsection