title = "Browser" url = "/browser" layout = "Dashboard" is_hidden = 0 [session] security = "user" allowedUserGroups[] = "admin" allowedUserGroups[] = "supplier" redirect = "dashboard/login" == vendor; $browser = Browser::selectRaw('browser, COUNT(*) as total')->where('vendor', $user->vendor)->groupBy('browser')->orderBy('total', 'desc'); if ($from != null) { $browser->where('created_at', '>=', $from); } if ($to != null) { $browser->where('created_at', '<=', $to); } $this['browsers'] = $browser->get(); $browser_by_date = Browser::selectRaw('browser, COUNT(*) as total')->where('vendor', $user->vendor)->groupBy('browser')->orderBy('total', 'desc'); if ($from != null) { $browser_by_date->where('created_at', '>=', $from); } if ($to != null) { $browser_by_date->where('created_at', '<=', $to); } $this['browser_by_date'] = $browser_by_date->get(); } } ?> ==
Reset
Perfomance
Browser
{% for key, browser in browsers %} {% endfor %}
Browser Total
{{ browser.browser }} {{ browser.total }}
{% put scripts %} {% endput %}