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

{{ $website->url }}

@include('shared.dropdowns.website', ['options' => ['edit' => true, 'open' => true]])
@if(Route::currentRouteName() == 'stats.realtime')
@include('icons.clock', ['class' => 'fill-current width-4 height-4 flex-shrink-0'])​ {{ __('Last :seconds seconds', ['seconds' => 60]) }}
@else
@include('icons.calendar', ['class' => 'fill-current width-4 height-4 flex-shrink-0'])​ @if($range['from'] == $range['to']) @if(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->isToday()) {{ __('Today') }} @elseif(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->isYesterday()) {{ __('Yesterday') }} @else {{ \Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format(__('Y-m-d')) }} - {{ \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format(__('Y-m-d')) }} @endif @else @if(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format('Y-m-d') == \Carbon\Carbon::now()->subDays(6)->format('Y-m-d') && \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format('Y-m-d') == \Carbon\Carbon::now()->format('Y-m-d')) {{ __('Last :days days', ['days' => 7]) }} @elseif(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format('Y-m-d') == \Carbon\Carbon::now()->subDays(29)->format('Y-m-d') && \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format('Y-m-d') == \Carbon\Carbon::now()->format('Y-m-d')) {{ __('Last :days days', ['days' => 30]) }} @elseif(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format('Y-m-d') == \Carbon\Carbon::now()->startOfMonth()->format('Y-m-d') && \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format('Y-m-d') == \Carbon\Carbon::now()->endOfMonth()->format('Y-m-d')) {{ __('This month') }} @elseif(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format('Y-m-d') == \Carbon\Carbon::now()->subMonthNoOverflow()->startOfMonth()->format('Y-m-d') && \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format('Y-m-d') == \Carbon\Carbon::now()->subMonthNoOverflow()->endOfMonth()->format('Y-m-d')) {{ __('Last month') }} @elseif(\Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format('Y-m-d') == $website->created_at->format('Y-m-d') && \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format('Y-m-d') == \Carbon\Carbon::now()->format('Y-m-d')) {{ __('All time') }} @else {{ \Carbon\Carbon::createFromFormat('Y-m-d', $range['from'])->format(__('Y-m-d')) }} - {{ \Carbon\Carbon::createFromFormat('Y-m-d', $range['to'])->format(__('Y-m-d')) }} @endif @endif @include('icons.expand', ['class' => 'flex-shrink-0 fill-current width-3 height-3 '.(__('lang_dir') == 'rtl' ? 'mr-2' : 'ml-2')])
@endif
@include('stats.menu')