{{-- Dashboard overview (design: Screens · Dashboard). --}} @extends('layouts.app') @section('title', 'Overview — InLynq') @section('heading', 'Overview') @php $k = $report['kpis']; $note = 'vs previous '.$report['days'].' days'; $hour = now()->timezone($user->timezone ?: config('app.timezone'))->hour; $greeting = $hour < 12 ? 'Good morning' : ($hour < 17 ? 'Good afternoon' : 'Good evening'); $left = collect($completion['items'])->where('done', false)->count(); @endphp @section('content')

{{ $greeting }}, {{ $user->firstName() }}

@if ($profile->isPublished()) Your profile was viewed {{ number_format($k['views']['value']) }} {{ \Illuminate\Support\Str::plural('time', $k['views']['value']) }} in the last {{ $report['days'] }} days. @else Your profile isn't published yet. @endif @if ($left) {{ $left === 1 ? 'One step' : $left.' steps' }} left to complete it. @endif

@foreach (['7d' => '7 days', '30d' => '30 days', '90d' => '90 days'] as $key => $label) @endforeach
@if ($rangeGated)
Longer ranges are on Pro. Free keeps the last 7 days. Upgrade
@endif @if (! $profile->isPublished()) Publish your profile to start collecting insights. @else
@endif
@if ($profile->isPublished())
Profile viewsOpen analytics
@endif
Top-performing sectionsby clicks
@php($sections = collect($report['targets'])->groupBy('section')->map(fn ($r) => $r->sum('clicks'))->sortDesc()) @forelse ($sections as $label => $clicks) @empty

Clicks on your links, companies and products will show here.

@endforelse
Verification @foreach ($verificationRows as $row)
{{ $row['label'] }} @if ($row['state'] === 'none') Verify @else @endif
@endforeach
Recent activity
@forelse ($activity as $n)
{!! \App\Support\RichText::bold($n->data['text'] ?? '') !!}
{{ $n->created_at->diffForHumans() }}
@empty
Nothing yet. Payments, verification updates and testimonials will show here.
@endforelse
Public profile{{ $profile->status->label() }}
{{ $user->name }}@if($user->is_verified)@endif
{{ collect([$user->headline, $user->location ? \Illuminate\Support\Str::before($user->location, ',') : null])->filter()->implode(' · ') ?: 'Add a headline' }}
{{ $counts['companies'] }} {{ \Illuminate\Support\Str::plural('company', $counts['companies']) }}{{ $counts['products'] }} {{ \Illuminate\Support\Str::plural('product', $counts['products']) }}
@if ($profile->hasUnpublishedChanges() && $profile->isPublished())

{{ $profile->pending_changes }} unpublished {{ \Illuminate\Support\Str::plural('change', $profile->pending_changes) }}.

@endif
Edit profile
Profile completion{{ $completion['percent'] }}%
@foreach ($completion['items'] as $item) @if ($item['done']) @else @endif {{ $item['label'] }} @endforeach
@if ($completion['next']) {{ $completion['next']['label'] }} @endif
@endsection