25 lines
601 B
PHP
25 lines
601 B
PHP
<?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]);
|
|
}
|
|
}
|