Add new version in repository
This commit is contained in:
57
app/Http/Controllers/Admin/Shop/TaxController.php
Normal file
57
app/Http/Controllers/Admin/Shop/TaxController.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Admin\Shop;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
|
||||
use App\Repositories\Shop\Taxes;
|
||||
|
||||
class TaxController extends Controller
|
||||
{
|
||||
public function index(TaxesDataTable $dataTable)
|
||||
{
|
||||
return $dataTable->render('Admin.Shop.Taxes.list');
|
||||
}
|
||||
|
||||
public function getDatatable(Request $request)
|
||||
{
|
||||
return Taxes::getTables($request->all());
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
$data = [];
|
||||
$data['groups'] = TagGroups::getOptions();
|
||||
return view('Admin.Shop.Taxes.create', $data);
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
$ret = Taxes::store($request->all());
|
||||
return redirect()->route('Admin.Shop.Taxes.index');
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$data = Taxes::get($id);
|
||||
return view('Admin.Shop.Taxes.view', $data);
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
{
|
||||
$data = Taxes::get($id);
|
||||
$data['groups'] = TagGroups::getOptions();
|
||||
return view('Admin.Shop.Taxes.edit', $data);
|
||||
}
|
||||
|
||||
public function update(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
return Taxes::destroy($id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user