@extends('layouts.admin') @section('title', __('Home Sliders Dashboard')) @section('content')

{{ __('Home Sliders Dashboard') }}

{{ __('Overview of home sliders performance and management') }}

{{ __('Create New Slider') }}
{{ __('Total Sliders') }}
{{ $stats['total_sliders'] ?? 0 }}
{{ __('Published') }}
{{ $stats['published_sliders'] ?? 0 }}
{{ __('Total Views') }}
{{ number_format($stats['total_views'] ?? 0) }}
{{ __('Total Clicks') }}
{{ number_format($stats['total_clicks'] ?? 0) }}
{{ __('Views Over Time') }}
{{ __('Language Distribution') }}

{{ __('English') }} {{ __('Arabic') }} {{ __('Both') }}
{{ __('Recent Sliders') }}
{{ __('View All') }}
@if($recentSliders->count() > 0)
@foreach($recentSliders as $slider) @endforeach
{{ __('Preview') }} {{ __('Title') }} {{ __('Type') }} {{ __('Status') }} {{ __('Views') }} {{ __('Clicks') }} {{ __('Created') }} {{ __('Actions') }}
@if($slider->desktopImage) Preview @else
@endif
{{ $slider->title_en ?? $slider->title_ar ?? __('Untitled') }} {{ $slider->slider_type ?? 'N/A' }} @if($slider->is_published) {{ __('Published') }} @else {{ __('Draft') }} @endif {{ $slider->analytics ? $slider->analytics->where('event_type', 'view')->count() : 0 }} {{ $slider->analytics ? $slider->analytics->where('event_type', 'click')->count() : 0 }} {{ $slider->created_at->format('M d, Y') }}
@else
{{ __('No sliders found') }}

{{ __('Create your first home slider to get started.') }}

{{ __('Create Slider') }}
@endif
@push('scripts') @endpush @endsection