27 lines
616 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\Modules;
2019-11-16 10:21:14 +03:00
use App\Abstracts\Http\Controller;
use App\Models\Module\Module;
2019-11-16 10:21:14 +03:00
use App\Traits\Modules;
class My extends Controller
{
use Modules;
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$purchased = $this->getMyModules();
$modules = $this->getInstalledModules();
2021-04-16 00:59:43 +03:00
$installed = Module::where('company_id', '=', company_id())->pluck('enabled', 'alias')->toArray();
2020-11-06 00:43:46 +03:00
return $this->response('modules.my.index', compact('purchased', 'modules', 'installed'));
}
}