Cetaklabel/Http/Controllers/ApprovalController.php

91 lines
1.9 KiB
PHP
Raw Normal View History

2023-07-21 09:37:19 +00:00
<?php
namespace Modules\Cetaklabel\Http\Controllers;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Auth;
use Modules\Cetaklabel\DataTables\ApprovalDataTable;
use Modules\Cetaklabel\Entities\Approval;
class ApprovalController extends Controller
{
public function __construct()
{
$this->middleware(function ($request, $next) {
$this->user = Auth::guard('web')->user();
return $next($request);
});
}
/**
* Display a listing of the resource.
* @return Renderable
*/
public function index(ApprovalDataTable $dataTable)
{
return $dataTable->render('cetaklabel::app.approval.index');
}
/**
* Show the form for creating a new resource.
* @return Renderable
*/
public function create()
{
return view('cetaklabel::create');
}
/**
* Store a newly created resource in storage.
* @param Request $request
* @return Renderable
*/
public function store(Request $request)
{
//
}
/**
* Show the specified resource.
* @param int $id
* @return Renderable
*/
public function show($id)
{
return view('cetaklabel::show');
}
/**
* Show the form for editing the specified resource.
* @param int $id
* @return Renderable
*/
public function edit($id)
{
return view('cetaklabel::edit');
}
/**
* Update the specified resource in storage.
* @param Request $request
* @param int $id
* @return Renderable
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
* @param int $id
* @return Renderable
*/
public function destroy($id)
{
//
}
}