2017-09-14 22:21:00 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Modules;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
use App\Traits\Modules;
|
|
|
|
use Illuminate\Routing\Route;
|
|
|
|
|
|
|
|
class Home extends Controller
|
|
|
|
{
|
|
|
|
use Modules;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display a listing of the resource.
|
|
|
|
*
|
|
|
|
* @return Response
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2017-11-02 02:00:54 +03:00
|
|
|
$this->checkApiToken();
|
|
|
|
|
2017-12-06 21:29:43 +03:00
|
|
|
$data = [
|
|
|
|
'query' => [
|
|
|
|
'limit' => 4
|
|
|
|
]
|
|
|
|
];
|
|
|
|
|
|
|
|
$paid = $this->getPaidModules($data);
|
|
|
|
$new = $this->getNewModules($data);
|
|
|
|
$free = $this->getFreeModules($data);
|
2017-09-14 22:21:00 +03:00
|
|
|
|
|
|
|
return view('modules.home.index', compact('paid', 'new', 'free'));
|
|
|
|
}
|
|
|
|
}
|