From b911a84f7d667adf3f4d3e4fb98d9568a772b45d Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 18 Jul 2016 21:38:57 +0200 Subject: Fix previous commit --- resources/views/stats.blade.php | 84 +++++++++++++++++++++++++++++++++++++++++ resources/views/stats.php | 80 --------------------------------------- 2 files changed, 84 insertions(+), 80 deletions(-) create mode 100644 resources/views/stats.blade.php delete mode 100644 resources/views/stats.php (limited to 'resources/views') diff --git a/resources/views/stats.blade.php b/resources/views/stats.blade.php new file mode 100644 index 0000000..0326309 --- /dev/null +++ b/resources/views/stats.blade.php @@ -0,0 +1,84 @@ + + + + + + HebrewParseTrainer statistics + + + + + +
+ + +
+
+
+
+
+
+ +groupBy(DB::raw('DAY(created_at)')) + ->orderBy('created_at') + ->get(); + +$stats = []; +foreach ($db_stats as $stat) { + $stats[] = "[Date.UTC" . date("(Y,n-1,d)", strtotime($stat->created_at)) . "," . $stat->count . "]"; +} +$stats = "[" . implode(",", $stats) . "]"; +?> + + + + + + + + + diff --git a/resources/views/stats.php b/resources/views/stats.php deleted file mode 100644 index a37095a..0000000 --- a/resources/views/stats.php +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - HebrewParseTrainer statistics - - - - - -
- - -
-
-
-
-
-
- -groupBy(DB::raw('DAY(created_at)')) - ->orderBy('created_at') - ->get(); - -$stats = []; -foreach ($db_stats as $stat) { - $stats[] = "[Date.UTC" . date("(Y,n-1,d)", strtotime($stat->created_at)) . "," . $stat->count . "]"; -} -$stats = "[" . implode(",", $stats) . "]"; -?> - - - - - - - - - -- cgit v1.2.3