Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $select_stats = DB::table('visitor')->whereBetween('visit_date', array(date('Y-m-01'), date('Y-m-t')))->get();
- $get_count = DB::table('visitor')->whereBetween('visit_date', array(date('Y-m-01'), date('Y-m-t')))->count();
- foreach($select_stats as $statics) {
- //change our object to an array
- $statics = array();
- }
- return View::make('admin.home.index')->with('stats', $select_stats)->with('count', $get_count);
- @foreach($stats as $stat)
- ['{{ date("d/m/Y", strtotime($stat->date)) }}', {{ $count }}],
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement