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