{{-- Name: admin.index.blade Author: JH2 Created: 2015-10-13 --}} @extends('app') @section('_pageTitle', Lang::get('admin.index.pageTitle')) @section('header-title', Lang::get('admin.index.pageTitle')) @section('main-left') @include('home.partials.list', [ 'content_id' => 'home_sendout_list_6585', 'header_title' => Lang::get('admin.sendout_overview'), 'data_sendouts' => Sendout::where('start_time', '<', \Carbon\Carbon::today()->addDays(7))->orderBy('start_time', 'desc')->limit(7)->get(), ]) {{-- @include('company.partials.list', [ 'content_id' => 'company_333325', 'header_title' => Lang::get('admin.index.activeCompanies'), 'data' => Company::whereHas('users', function($query){ $query->where('last_activity', '>', \Carbon\Carbon::now()->subMinutes(60)); })->where('id', '<>', Auth::user()->company->id)->orderBy('created_at', 'DESC')->limit(5)->get(), 'paginate' => true, 'filter' => false ]) --}} @include('company.partials.list', [ 'content_id' => 'company_333325', 'header_title' => Lang::get('admin.index.newCompanies'), 'data' => Company::active()->orderBy('created_at', 'DESC')->limit(5)->get(), 'paginate' => true, 'filter' => false ]) {{-- // TODO Do we want this block? If so, we need to implement it somehow. The // current implementation does not work since we moved all statistics // to another database. As of now there is no way to select a result // based on the amount of sendouts. @include('company.partials.list', [ 'content_id' => 'admin_company_7695', 'header_title' => Lang::get('admin.company.list'), 'data' => Company::where('package_id', '<>', 1)->limit(5)->get(), 'paginate' => true, 'filter' => false ]) --}} @stop @section('main-right') @include('partials.stats', [ 'content_id' => 'company_summary_325651', 'header_title' => Lang::get('company.globalstats'), ]) @include('admin.partials.fun-stats', [ 'content_id' => 'admin_3159', 'header_title' => Lang::get('admin.funStats.title'), ]) @stop