fixes
This commit is contained in:
28
app/Http/Controllers/Admin/Shop/CustomerOrderController.php
Normal file
28
app/Http/Controllers/Admin/Shop/CustomerOrderController.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Admin\Shop;
|
||||
|
||||
use App\Datatables\Admin\Shop\CustomerOrdersDataTable;
|
||||
use App\Repositories\Shop\Orders;
|
||||
|
||||
class CustomerOrderController extends Controller
|
||||
{
|
||||
public function index(CustomerOrdersDataTable $dataTable)
|
||||
{
|
||||
return $dataTable->render('Admin.Shop.CustomerOrders.list');
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$data = [
|
||||
'order' => Orders::get($id),
|
||||
];
|
||||
|
||||
return view('Admin.Shop.CustomerOrders.view', $data);
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
return Orders::destroy($id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user