2022-11-18 09:16:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
2022-11-18 10:50:28 +00:00
|
|
|
use App\Models\Module;
|
2022-11-18 09:16:30 +00:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
class ModuleController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Display a listing of the resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2022-11-18 10:50:28 +00:00
|
|
|
public function index(Module $module)
|
2022-11-18 09:16:30 +00:00
|
|
|
{
|
2022-11-18 10:50:28 +00:00
|
|
|
$modules = $module->paginate(100);
|
|
|
|
|
|
|
|
return view('admin.modules.index', compact('modules'));
|
2022-11-18 09:16:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for creating a new resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function create()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Store a newly created resource in storage.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Http\Request $request
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function store(Request $request)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display the specified resource.
|
|
|
|
*
|
2022-11-18 10:50:28 +00:00
|
|
|
* @param \App\Models\Module $module
|
2022-11-18 09:16:30 +00:00
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2022-11-18 10:50:28 +00:00
|
|
|
public function show(Module $module)
|
2022-11-18 09:16:30 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for editing the specified resource.
|
|
|
|
*
|
2022-11-18 10:50:28 +00:00
|
|
|
* @param \App\Models\Module $module
|
2022-11-18 09:16:30 +00:00
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2022-11-18 10:50:28 +00:00
|
|
|
public function edit(Module $module)
|
2022-11-18 09:16:30 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update the specified resource in storage.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Http\Request $request
|
2022-11-18 10:50:28 +00:00
|
|
|
* @param \App\Models\Module $module
|
2022-11-18 09:16:30 +00:00
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2022-11-18 10:50:28 +00:00
|
|
|
public function update(Request $request, Module $module)
|
2022-11-18 09:16:30 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove the specified resource from storage.
|
|
|
|
*
|
2022-11-18 10:50:28 +00:00
|
|
|
* @param \App\Models\Module $module
|
2022-11-18 09:16:30 +00:00
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2022-11-18 10:50:28 +00:00
|
|
|
public function destroy(Module $module)
|
2022-11-18 09:16:30 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|