25 lines
630 B
PHP
25 lines
630 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Admin\ActionLog;
|
|
|
|
use App\Cms\Repositories\ActionLog\Actions;
|
|
use App\Http\Controllers\Admin\Controller;
|
|
use Illuminate\Support\Facades\Input;
|
|
|
|
class Overview extends Controller
|
|
{
|
|
/**
|
|
* Get overview of logged actions
|
|
*
|
|
* @param Actions $repository
|
|
*
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
*/
|
|
public function index(Actions $repository)
|
|
{
|
|
list($user, $actions) = $repository->getLoggedActions(Input::get('userId'));
|
|
|
|
return view('admin.actionLog.overview', ['actions' => $actions, 'user' => $user]);
|
|
}
|
|
}
|