public function renderType($type, $limit = null, $paginate = true, $pagination = 10)
{
$history = History::with('user');
$history = $this->checkType($history, $type);
$history = $this->buildPagination($history, $limit, $paginate, $pagination);
if (!$history->count()) {
return trans("history.backend.none_for_type");
}
return $this->buildList($history, $paginate);
}