cleaning day
This commit is contained in:
@@ -5,7 +5,6 @@ namespace App\Http\Controllers\Admin\Botanic;
|
||||
use App\Datatables\Botanic\SpeciesDataTable;
|
||||
use App\Repositories\Botanic\Genres;
|
||||
use App\Repositories\Botanic\Species;
|
||||
use App\Repositories\Shop\TagGroups;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class SpecieController extends Controller
|
||||
@@ -22,8 +21,7 @@ class SpecieController extends Controller
|
||||
|
||||
public function create()
|
||||
{
|
||||
$data['genres'] = Genres::getOptions();
|
||||
$data['tags_list'] = TagGroups::getTreeTags();
|
||||
$data = Genres::init();
|
||||
|
||||
return view('Admin.Botanic.Species.create', $data);
|
||||
}
|
||||
@@ -36,18 +34,10 @@ class SpecieController extends Controller
|
||||
return redirect()->route('Admin.Botanic.Species.index');
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$data = Species::get($id);
|
||||
|
||||
return view('Admin.Botanic.Species.view', $data);
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
{
|
||||
$data = Genres::init();
|
||||
$data['specie'] = Species::getFull($id);
|
||||
$data['genres'] = Genres::getOptions();
|
||||
$data['tags_list'] = TagGroups::getTreeTags();
|
||||
|
||||
return view('Admin.Botanic.Species.edit', $data);
|
||||
}
|
||||
@@ -60,8 +50,10 @@ class SpecieController extends Controller
|
||||
public function getImages(Request $request, $id = false, $can_edit = true)
|
||||
{
|
||||
$id = $id ? $id : $request->input('id');
|
||||
$data['images'] = Species::getImages($id);
|
||||
$data['can_edit'] = $can_edit;
|
||||
$data = [
|
||||
'images' => Species::getImages($id),
|
||||
'can_edit' => $can_edit,
|
||||
];
|
||||
|
||||
return view('components.uploader.mini-gallery-items', $data);
|
||||
}
|
||||
@@ -73,9 +65,4 @@ class SpecieController extends Controller
|
||||
|
||||
return Species::deleteImage($id, $index);
|
||||
}
|
||||
|
||||
public function exportExcel()
|
||||
{
|
||||
return Species::exportExcel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user