2020-05-20 23:29:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Controllers\Admin\Mounts;
|
|
|
|
|
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
2020-05-21 00:00:53 +00:00
|
|
|
use Pterodactyl\Repositories\Eloquent\MountRepository;
|
2020-05-20 23:29:03 +00:00
|
|
|
|
|
|
|
class MountController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
2020-05-21 00:00:53 +00:00
|
|
|
* @var \Pterodactyl\Repositories\Eloquent\MountRepository
|
2020-05-20 23:29:03 +00:00
|
|
|
*/
|
|
|
|
protected $repository;
|
|
|
|
|
|
|
|
/**
|
2020-05-21 00:00:53 +00:00
|
|
|
* MountController constructor.
|
2020-05-20 23:29:03 +00:00
|
|
|
*
|
2020-05-21 00:00:53 +00:00
|
|
|
* @param \Pterodactyl\Repositories\Eloquent\MountRepository $repository
|
2020-05-20 23:29:03 +00:00
|
|
|
*/
|
|
|
|
public function __construct(
|
2020-05-21 00:00:53 +00:00
|
|
|
MountRepository $repository
|
2020-05-20 23:29:03 +00:00
|
|
|
) {
|
|
|
|
$this->repository = $repository;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the mount overview page.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\View\View
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
return view('admin.mounts.index', [
|
2020-05-21 00:00:53 +00:00
|
|
|
'mounts' => $this->repository->getAllWithDetails(),
|
2020-05-20 23:29:03 +00:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|