@extends('layouts.account') @section('title', __('Analytics')) @section('heading', __('Analytics')) @section('subheading', __('What your listings are doing.')) @section('account')
@foreach ($windows as $window) $days === $window, 'pill-idle' => $days !== $window])> {{ trans_choice('Last day|Last :count days', $window, ['count' => $window]) }} @endforeach
{{-- The enquiry rate leads. Views alone flatter a listing nobody contacts; the ratio is what tells a seller the price is wrong. --}}
@foreach ([ ['label' => __('Enquiry rate'), 'value' => $totals['enquiry_rate'].'%', 'hint' => __('of views that got in touch')], ['label' => __('Enquiries'), 'value' => $totals['enquiries'], 'hint' => __('people who contacted you')], ['label' => __('Views'), 'value' => $totals['views'], 'hint' => trans_choice('from one visitor|from :count visitors', $totals['unique_views'], ['count' => $totals['unique_views']])], ['label' => __('Saved'), 'value' => $totals['favourites'], 'hint' => __('added to a shortlist')], ] as $card)

{{ $card['label'] }}

{{ $card['value'] }}

{{ $card['hint'] }}

@endforeach

{{ __('Listing by listing') }}

@if ($leaderboard->isEmpty()) @else
@foreach ($leaderboard as $row) @endforeach
{{ __('Listing') }} {{ __('Views') }} {{ __('Enquiries') }} {{ __('Rate') }} {{ __('Actions') }}
{{ $row['listing']?->title }} {{ $row['views'] }} {{ $row['enquiries'] }} $row['rate'] >= 2, 'text-text-secondary' => $row['rate'] < 2, ])>{{ $row['rate'] }}% {{ __('Detail') }}
@endif

{{ __('Visitor counts are approximate: somebody browsing on a phone and a laptop counts twice. We do not track people between devices.') }}

@endsection