@php
$title = admin_trans('least_popular_offers');
$icon = 'trending-down';
@endphp
@extends('admin.analytics.base')
@section('analytics-content')
@if($data->isEmpty())
@else
@foreach($data as $offer)
@php
$offerTitle = $offer->translations->first()?->title ?? "Offer #{$offer->id}";
$storeName = $offer->countryStore?->store?->translations->first()?->name ?? "Store #" . ($offer->countryStore?->store_id ?? 'N/A');
@endphp
{{ $offerTitle }}
{{ $storeName }}
{{ number_format($offer->views_count ?? 0) }}
{{ number_format($offer->uses_count ?? 0) }}
@endforeach
@if($data->hasPages())
@endif
@endif
@endsection