@php $title = admin_trans('stores_by_country'); $description = 'View stores distribution across different countries'; $icon = 'globe'; @endphp @extends('admin.analytics.base') @section('analytics-content') @if($data->isEmpty()) @else
@php $total = $data->sum('total'); @endphp @foreach($data as $item)
{{ $item->flag_emoji ?? '🌍' }} {{ $item->country_name }}
{{ number_format($item->total) }}
{{ $total > 0 ? round(($item->total / $total) * 100, 1) : 0 }}%
@endforeach
@endif @endsection @if(!$data->isEmpty()) @push('scripts') @endpush @endif