@extends('adminlte::page') @section('title', $pageTitle) @section('content_header')

{{ $pageTitle }}

@stop @section('content') @include('advancedsearch.analytics.tabs') @include('advancedsearch.analytics.selectfilter') @if($clicks->count())
Top Click Products for Today
Total Products Clicked:

{{$totalProducts}}

Total Clicks:

{{$totalClicks}}

Top {{$totalProducts}} Clicked Products @foreach($clicks as $click) @endforeach
SKU # of Clicks
{{$click->productId}} {{$click->clicks}}
@foreach($clicks->chunk(4) as $chunk)
@foreach($chunk as $cell)
{{$cell->clicks}} {{$cell->product->name}}
{!!$cell->product->name!!}
ID: {{$cell->product->yid}}
Clicks by search @foreach($cell->searches as $search => $count)
@if($search === "NULL") Empty Search @else {{$search}} @endif
{{$count}}
@endforeach
@endforeach
@endforeach
@else

Sorry, you do not have any matching analytics from that time frame.

@endif @stop