title = "Tracking Pages" url = "/tracking-pages" layout = "Dashboard" is_hidden = 0 [session] security = "user" allowedUserGroups[] = "admin" allowedUserGroups[] = "supplier" redirect = "dashboard/login" == vendor; $trackings = Tracking::selectRaw('MIN(title) as title, url, COUNT(*) as total')->where('vendor', $user->vendor)->groupBy('url')->orderBy('total', 'desc'); if ($from != null) { $trackings->where('created_at', '>=', $from); } if ($to != null) { $trackings->where('created_at', '<=', $to); } $this['trackings'] = $trackings->get(); $this['all_tracking'] = Tracking::where('vendor', $user->vendor)->count(); $tracking_by_date = Tracking::selectRaw('DATE(created_at) as date, COUNT(*) as total')->where('vendor', $user->vendor)->groupBy('date')->orderBy('date', 'asc'); if ($from != null) { $tracking_by_date->where('created_at', '>=', $from); } if ($to != null) { $tracking_by_date->where('created_at', '<=', $to); } $this['tracking_by_date'] = $tracking_by_date->get(); } } ?> ==
Total Clicks

{{ all_tracking }} {{ (all_tracking == 1) ? 'click' : 'clicks' }}


Reset
Perfomance
{{ (from != null) ? from|date('d F Y') : '' }} {{ (to != null) ? '-' : '' }} {{ (to != null) ? to|date('d F Y') : '' }}
Tracking Pages
{% for key, tracking in trackings %} {% endfor %}
Title URL Total Clicks
{{ tracking.title }} {{ tracking.url }} {{ tracking.total }}
{% put scripts %} {% endput %}