@section('site_title', formatTitle([$website->url, __('Events'), config('settings.title')]))
@include('icons.event', ['class' => 'fill-current width-5 height-5'])
@if(isset($first->value))
{{ explode(':', $first->value)[0] }}
@else
{{ __('No data') }}
@endif
@if(isset($first->count))
@if(!empty(explode(':', $first->value)[1]) || !empty(explode(':', $first->value)[2])) @if(!empty(explode(':', $first->value)[1])) {{ number_format((explode(':', $first->value)[1] * $first->count), 0, __('.'), __(',')) }} @endif @if(!empty(explode(':', $first->value)[2])) {{ explode(':', $first->value)[2] }} @endif @endif {{ number_format($first->count, 0, __('.'), __(',')) }}
@else — @endif
@include('icons.trending_up', ['class' => 'fill-current width-3 height-3'])
{{ mb_strtolower(__('Most popular')) }}
@if(isset($last->value))
{{ explode(':', $last->value)[0] }}
@else
{{ __('No data') }}
@endif
@if(isset($last->count))
@if(!empty(explode(':', $last->value)[1]) || !empty(explode(':', $last->value)[2])) @if(!empty(explode(':', $last->value)[1])) {{ number_format((explode(':', $last->value)[1] * $last->count), 0, __('.'), __(',')) }} @endif @if(!empty(explode(':', $last->value)[2])) {{ explode(':', $last->value)[2] }} @endif @endif {{ number_format($last->count, 0, __('.'), __(',')) }}
@else — @endif
@include('icons.trending_down', ['class' => 'fill-current width-3 height-3'])
{{ mb_strtolower(__('Least popular')) }}
{{ __('Events') }}
@include('stats.filters') @if(Auth::check() && $website->user_id == Auth::user()->id) @endif
@if(count($events) == 0) {{ __('No data') }}. @else
{{ __('Name') }}
{{ __('Completions') }}
{{ __('Total') }}
{{ number_format($total->count, 0, __('.'), __(',')) }}
@foreach($events as $event)
{{ explode(':', $event->value)[0] }}
@if(!empty(explode(':', $event->value)[1]) || !empty(explode(':', $event->value)[2])) @if(!empty(explode(':', $event->value)[1])) {{ number_format((explode(':', $event->value)[1] * $event->count), 2, __('.'), __(',')) }} @endif @if(!empty(explode(':', $event->value)[2])) {{ explode(':', $event->value)[2] }} @endif @endif {{ number_format($event->count, 0, __('.'), __(',')) }}
@endforeach
{{ __('Showing :from-:to of :total', ['from' => $events->firstItem(), 'to' => $events->lastItem(), 'total' => $events->total()]) }}
{{ $events->onEachSide(1)->links() }}
@endif