Botanic release
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\DataTables;
|
namespace App\DataTables\Botanic;
|
||||||
|
|
||||||
use Yajra\DataTables\Html\Column;
|
use Yajra\DataTables\Html\Column;
|
||||||
use App\DataTables\ParentDataTable as DataTable;
|
use App\DataTables\ParentDataTable as DataTable;
|
||||||
use App\Models\Shop\Family;
|
use App\Models\Botanic\Family;
|
||||||
|
|
||||||
class FamiliesDataTable extends DataTable
|
class FamiliesDataTable extends DataTable
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\DataTables;
|
namespace App\DataTables\Botanic;
|
||||||
|
|
||||||
use Yajra\DataTables\Html\Column;
|
use Yajra\DataTables\Html\Column;
|
||||||
use App\DataTables\ParentDataTable as DataTable;
|
use App\DataTables\ParentDataTable as DataTable;
|
||||||
use App\Models\Shop\Genre;
|
use App\Models\Botanic\Genre;
|
||||||
|
|
||||||
class GenresDataTable extends DataTable
|
class GenresDataTable extends DataTable
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\DataTables;
|
namespace App\DataTables\Botanic;
|
||||||
|
|
||||||
use Yajra\DataTables\Html\Column;
|
use Yajra\DataTables\Html\Column;
|
||||||
use App\DataTables\ParentDataTable as DataTable;
|
use App\DataTables\ParentDataTable as DataTable;
|
||||||
use App\Models\Shop\Specie;
|
use App\Models\Botanic\Specie;
|
||||||
|
|
||||||
class SpeciesDataTable extends DataTable
|
class SpeciesDataTable extends DataTable
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\DataTables;
|
namespace App\DataTables\Botanic;
|
||||||
|
|
||||||
use Yajra\DataTables\Html\Column;
|
use Yajra\DataTables\Html\Column;
|
||||||
use App\DataTables\ParentDataTable as DataTable;
|
use App\DataTables\ParentDataTable as DataTable;
|
||||||
use App\Models\Shop\Variety;
|
use App\Models\Botanic\Variety;
|
||||||
|
|
||||||
class VarietiesDataTable extends DataTable
|
class VarietiesDataTable extends DataTable
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ use Illuminate\Http\Request;
|
|||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
|
||||||
use App\Repositories\Botanic\Families;
|
use App\Repositories\Botanic\Families;
|
||||||
use App\DataTables\FamiliesDataTable;
|
use App\DataTables\Botanic\FamiliesDataTable;
|
||||||
|
|
||||||
class FamilyController extends Controller
|
class FamilyController extends Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use App\Http\Controllers\Controller;
|
|||||||
|
|
||||||
use App\Repositories\Botanic\Genres;
|
use App\Repositories\Botanic\Genres;
|
||||||
use App\Repositories\Botanic\Families;
|
use App\Repositories\Botanic\Families;
|
||||||
use App\DataTables\GenresDataTable;
|
use App\DataTables\Botanic\GenresDataTable;
|
||||||
|
|
||||||
class GenreController extends Controller
|
class GenreController extends Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use App\Http\Controllers\Controller;
|
|||||||
|
|
||||||
use App\Repositories\Botanic\Species;
|
use App\Repositories\Botanic\Species;
|
||||||
use App\Repositories\Botanic\Genres;
|
use App\Repositories\Botanic\Genres;
|
||||||
use App\DataTables\SpeciesDataTable;
|
use App\DataTables\Botanic\SpeciesDataTable;
|
||||||
|
|
||||||
class SpecieController extends Controller
|
class SpecieController extends Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use App\Http\Controllers\Controller;
|
|||||||
|
|
||||||
use App\Repositories\Botanic\Varieties;
|
use App\Repositories\Botanic\Varieties;
|
||||||
use App\Repositories\Botanic\Species;
|
use App\Repositories\Botanic\Species;
|
||||||
use App\DataTables\VarietiesDataTable;
|
use App\DataTables\Botanic\VarietiesDataTable;
|
||||||
|
|
||||||
class VarietyController extends Controller
|
class VarietyController extends Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,18 +9,18 @@ class Botanic
|
|||||||
{
|
{
|
||||||
public function make(Builder $menu)
|
public function make(Builder $menu)
|
||||||
{
|
{
|
||||||
$menu->add('Botanique', [ 'permission' => 'backend', 'icon' => 'envira' ])
|
$menu->add('Botanique', [ 'permission' => 'backend', 'icon' => 'leaf' ])
|
||||||
->id('botanic')
|
->id('botanic')
|
||||||
->activeIfRoute('botanic')
|
->activeIfRoute('botanic')
|
||||||
->order(2);
|
->order(2);
|
||||||
|
|
||||||
$menu->addTo('Botanic', 'Familles', [ 'route' => 'Botanic.Admin.Families.index', 'permission' => 'backend' ])
|
$menu->addTo('botanic', 'Familles', [ 'route' => 'Botanic.Admin.Families.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Botanic.Admin.Families.index'])->order(1);
|
->activeIfRoute(['Botanic.Admin.Families.index'])->order(1);
|
||||||
$menu->addTo('Botanic', 'Genres', [ 'route' => 'Botanic.Admin.Genres.index', 'permission' => 'backend' ])
|
$menu->addTo('botanic', 'Genres', [ 'route' => 'Botanic.Admin.Genres.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Botanic.Admin.Genres.index'])->order(2);
|
->activeIfRoute(['Botanic.Admin.Genres.index'])->order(2);
|
||||||
$menu->addTo('Botanic', 'Espèces', [ 'route' => 'Botanic.Admin.Species.index', 'permission' => 'backend' ])
|
$menu->addTo('botanic', 'Espèces', [ 'route' => 'Botanic.Admin.Species.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Botanic.Admin.Species.index'])->order(3);
|
->activeIfRoute(['Botanic.Admin.Species.index'])->order(3);
|
||||||
$menu->addTo('Botanic', 'Variétés', [ 'route' => 'Botanic.Admin.Varieties.index', 'permission' => 'backend' ])
|
$menu->addTo('botanic', 'Variétés', [ 'route' => 'Botanic.Admin.Varieties.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Botanic.Admin.Varieties.index'])->order(4);
|
->activeIfRoute(['Botanic.Admin.Varieties.index'])->order(4);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ class Shop
|
|||||||
->activeIfRoute('shop')
|
->activeIfRoute('shop')
|
||||||
->order(1);
|
->order(1);
|
||||||
|
|
||||||
$menu->addTo('shop', 'Categories', [ 'route' => 'Shop.Admin.Sections.index', 'permission' => 'backend' ])
|
$menu->addTo('shop', 'Categories', [ 'route' => 'Shop.Admin.Categories.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Shop.Admin.Sections.index'])->order(5);
|
->activeIfRoute(['Shop.Admin.Categories.index'])->order(1);
|
||||||
$menu->addTo('shop', 'Produits', [ 'route' => 'Shop.Admin.Products.index', 'permission' => 'backend' ])
|
$menu->addTo('shop', 'Articles', [ 'route' => 'Shop.Admin.Articles.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Shop.Admin.Products.index'])->order(6);
|
->activeIfRoute(['Shop.Admin.Articles.index'])->order(2);
|
||||||
$menu->addTo('shop', 'Commandes', [ 'route' => 'Shop.Admin.Orders.index', 'permission' => 'backend' ])
|
$menu->addTo('shop', 'Commandes', [ 'route' => 'Shop.Admin.Orders.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Shop.Admin.Orders.index'])->order(7);
|
->activeIfRoute(['Shop.Admin.Orders.index'])->order(3);
|
||||||
$menu->addTo('shop', 'Factures', [ 'route' => 'Shop.Admin.Invoices.index', 'permission' => 'backend' ])
|
$menu->addTo('shop', 'Factures', [ 'route' => 'Shop.Admin.Invoices.index', 'permission' => 'backend' ])
|
||||||
->activeIfRoute(['Shop.Admin.Invoices.index'])->order(8);
|
->activeIfRoute(['Shop.Admin.Invoices.index'])->order(4);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user