@include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => route('dashboard'), 'title' => __('Home')], ['title' => __('Stats')] ]])

{{ $link->displayShortUrl }}

@include('links.partials.copy-link-button', ['class' => 'btn-ghost-secondary'])
@if($link->user)
@include('icons.date-range', ['class' => 'fill-current w-4 h-4 flex-shrink-0'])​ @if($dateRange['from'] == $dateRange['to']) @if(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->isToday()) {{ __('Today') }} @elseif(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->isYesterday()) {{ __('Yesterday') }} @else {{ Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')) }} - {{ Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')) }} @endif @else @if(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == (clone $now)->subDays(6)->format('Y-m-d') && Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == $now->format('Y-m-d')) {{ __('Last :days days', ['days' => 7]) }} @elseif(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == (clone $now)->subDays(29)->format('Y-m-d') && Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == $now->format('Y-m-d')) {{ __('Last :days days', ['days' => 30]) }} @elseif(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == (clone $now)->startOfMonth()->format('Y-m-d') && Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == (clone $now)->endOfMonth()->format('Y-m-d')) {{ __('This month') }} @elseif(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == (clone $now)->subMonthNoOverflow()->startOfMonth()->format('Y-m-d') && Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == (clone $now)->subMonthNoOverflow()->endOfMonth()->format('Y-m-d')) {{ __('Last month') }} @elseif(Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == $link->created_at->format('Y-m-d') && Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format('Y-m-d') == $now->format('Y-m-d')) {{ __('All time') }} @else {{ Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['from'], Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')) }} - {{ Carbon\Carbon::createFromFormat('Y-m-d', $dateRange['to'], Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')) }} @endif @endif @include('icons.expand-more', ['class' => 'flex-shrink-0 fill-current w-3 h-3 ms-2'])
@endif
@if($link->user)
@endif