FEATURE #1421: add widget area overview
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Admin;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Requests;
|
||||
use App\Models\WidgetArea;
|
||||
|
||||
class WidgetAreaOverview extends Controller
|
||||
{
|
||||
/**
|
||||
* List of all widget area. Displayed paginated
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function getOverview()
|
||||
{
|
||||
// get widget areas ordered by created_at
|
||||
$areas = WidgetArea::orderBy('created_at', 'DESC')
|
||||
->paginate(25);
|
||||
|
||||
return view('admin.widgets.area.overview', ['areas' => $areas]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user