Removed unused getProviders() function

Removed unused getProviders() function
This commit is contained in:
cp6 2022-10-31 15:19:27 +11:00
parent 09307828a1
commit f7cdaeb342

View File

@ -56,19 +56,4 @@ class ProvidersController extends Controller
->with('success', 'Provider was deleted Successfully.'); ->with('success', 'Provider was deleted Successfully.');
} }
public function getProviders(Request $request)
{
if ($request->ajax()) {
$data = Providers::latest()->get();
$dt = Datatables::of($data)
->addIndexColumn()
->addColumn('action', function ($row) {
$actionBtn = '<a href="javascript:void(0)" class="edit btn btn-success btn-sm">Edit</a> <a href="javascript:void(0)" class="delete btn btn-danger btn-sm">Delete</a>';
return $actionBtn;
})
->rawColumns(['action'])
->make(true);
}
}
} }