diff --git a/app/Console/Commands/checkdb.php b/app/Console/Commands/checkdb.php deleted file mode 100644 index 7fc6851b..00000000 --- a/app/Console/Commands/checkdb.php +++ /dev/null @@ -1,132 +0,0 @@ -get(); - foreach ($varieties as $variety) { - $specie_name = trim($variety->specie_name); - /* - $specie = Specie::firstOrCreate(['name' => $specie_name]); - if ($specie) { - $variety->specie_id = $specie->id; - $variety->save(); - } - */ - dump($specie_name); - } -/* - - $species = Specie::all(); - foreach ($species as $specie) { - $specie->name = trim($specie->name); - $specie->save(); - } - - $varieties = Variety::all(); - foreach ($varieties as $variety) { - $variety->name = trim($variety->name); - $variety->save(); - } -*/ -/* - $varieties = Variety::all(); - foreach ($varieties as $variety) { - $specie_name = $variety->specie; - dump($specie_name); - if (!empty($specie_name)) { - $specie = Specie::byName($specie_name)->first(); - if (isset($specie->name)) - { - dump($specie->name); - $variety->specie_id = $specie->id; - $variety->save(); - } else { - dump("non trouvé"); - } - } else { - dump("Aucune espèce"); - } - } -*/ -/* - $species = Specie::all(); - foreach ($species as $specie) { - $genre_name = $specie->genre; - dump($genre_name); - if (!empty($genre_name)) { - $genre = Genre::byName($genre_name)->first(); - if (isset($genre->name)) - { - dump($genre->name); - $specie->genre_id = $genre->id; - $specie->save(); - } else { - dump("non trouvé"); - } - } else { - dump("Aucun genre"); - } - } -*/ -/* - $genres = Genre::all(); - foreach ($genres as $genre) { - $family_name = $genre->family; - dump($family_name); - if (!empty($family_name)) { - $family = Family::byName($family_name)->first(); - if (isset($family->name)) - { - dump($family->name); - $genre->family_id = $family->id; - $genre->save(); - } else { - dump("non trouvé"); - } - } else { - dump("Aucune famille"); - } - } - */ - } -} diff --git a/app/Console/Commands/migrate.php b/app/Console/Commands/migrate.php deleted file mode 100644 index 773a786c..00000000 --- a/app/Console/Commands/migrate.php +++ /dev/null @@ -1,117 +0,0 @@ -name = trim($specie->name); - $specie->save(); - } - - $varieties = Variety::all(); - foreach ($varieties as $variety) { - $variety->name = trim($variety->name); - $variety->save(); - } - -/* - $varieties = Variety::all(); - foreach ($varieties as $variety) { - $specie_name = $variety->specie; - dump($specie_name); - if (!empty($specie_name)) { - $specie = Specie::byName($specie_name)->first(); - if (isset($specie->name)) - { - dump($specie->name); - $variety->specie_id = $specie->id; - $variety->save(); - } else { - dump("non trouvé"); - } - } else { - dump("Aucune espèce"); - } - } -*/ -/* - $species = Specie::all(); - foreach ($species as $specie) { - $genre_name = $specie->genre; - dump($genre_name); - if (!empty($genre_name)) { - $genre = Genre::byName($genre_name)->first(); - if (isset($genre->name)) - { - dump($genre->name); - $specie->genre_id = $genre->id; - $specie->save(); - } else { - dump("non trouvé"); - } - } else { - dump("Aucun genre"); - } - } -*/ -/* - $genres = Genre::all(); - foreach ($genres as $genre) { - $family_name = $genre->family; - dump($family_name); - if (!empty($family_name)) { - $family = Family::byName($family_name)->first(); - if (isset($family->name)) - { - dump($family->name); - $genre->family_id = $family->id; - $genre->save(); - } else { - dump("non trouvé"); - } - } else { - dump("Aucune famille"); - } - } - */ - } -} diff --git a/app/Exports/Botanic/Families.php b/app/Exports/Botanic/FamiliesExport.php similarity index 100% rename from app/Exports/Botanic/Families.php rename to app/Exports/Botanic/FamiliesExport.php diff --git a/app/Exports/Botanic/Genres.php b/app/Exports/Botanic/GenresExport.php similarity index 100% rename from app/Exports/Botanic/Genres.php rename to app/Exports/Botanic/GenresExport.php diff --git a/app/Exports/Botanic/Species.php b/app/Exports/Botanic/SpeciesExport.php similarity index 100% rename from app/Exports/Botanic/Species.php rename to app/Exports/Botanic/SpeciesExport.php diff --git a/app/Exports/Botanic/Varieties.php b/app/Exports/Botanic/VarietiesExport.php similarity index 100% rename from app/Exports/Botanic/Varieties.php rename to app/Exports/Botanic/VarietiesExport.php diff --git a/app/Http/Controllers/Shop/Admin/ArticleAttributeFamilyController.php b/app/Http/Controllers/Shop/Admin/ArticleAttributeFamilyController.php deleted file mode 100644 index 98a0a7bb..00000000 --- a/app/Http/Controllers/Shop/Admin/ArticleAttributeFamilyController.php +++ /dev/null @@ -1,56 +0,0 @@ -render('Shop.Admin.ArticleAttributeFamilies.list'); - } - - public function getDatatable(Request $request) - { - return ArticleAttributeFamilies::getTables($request->all()); - } - - public function create() - { - return view('Shop.Admin.ArticleAttributeFamilies.create'); - } - - public function store(Request $request) - { - $ret = ArticleAttributeFamilies::store($request->all()); - return redirect()->route('Shop.Admin.ArticleAttributeFamilies.index'); - } - - public function show($id) - { - $data = ArticleAttributeFamilies::get($id); - return view('Shop.Admin.ArticleAttributeFamilies.view', $data); - } - - public function edit($id) - { - $data = ArticleAttributeFamilies::get($id); - return view('Shop.Admin.ArticleAttributeFamilies.edit', $data); - } - - public function update(Request $request) - { - // - } - - public function destroy($id) - { - return ArticleAttributeFamilies::destroy($id); - } - -} diff --git a/app/Http/Controllers/Shop/Admin/HomeController.php b/app/Http/Controllers/Shop/Admin/HomeController.php index 9d7a6ccb..9507f89b 100644 --- a/app/Http/Controllers/Shop/Admin/HomeController.php +++ b/app/Http/Controllers/Shop/Admin/HomeController.php @@ -1,6 +1,6 @@ render('Shop.Admin.PriceFamilies.list'); + } + + public function getDatatable(Request $request) + { + return PriceFamilies::getTables($request->all()); + } + + public function create() + { + return view('Shop.Admin.PriceFamilies.create'); + } + + public function store(Request $request) + { + $ret = PriceFamilies::store($request->all()); + return redirect()->route('Shop.Admin.PriceFamilies.index'); + } + + public function show($id) + { + $data = PriceFamilies::get($id); + return view('Shop.Admin.PriceFamilies.view', $data); + } + + public function edit($id) + { + $data = PriceFamilies::get($id); + return view('Shop.Admin.PriceFamilies.edit', $data); + } + + public function update(Request $request) + { + // + } + + public function destroy($id) + { + return PriceFamilies::destroy($id); + } + +} diff --git a/app/Http/Controllers/Shop/Admin/PriceFamilyValueController.php b/app/Http/Controllers/Shop/Admin/PriceFamilyValueController.php new file mode 100644 index 00000000..62801e47 --- /dev/null +++ b/app/Http/Controllers/Shop/Admin/PriceFamilyValueController.php @@ -0,0 +1,64 @@ +render('Shop.Admin.PriceFamilyValues.list', $data); + } + + public function getDatatable(Request $request) + { + return PriceFamilyValues::getTables($request->all()); + } + + public function getOptionsByFamily(Request $request) + { + $id = $request->input('family_id'); + return response()->json(PriceFamilyValues::getSelectByFamily($id)); + } + + public function create() + { + return view('Shop.Admin.PriceFamilyValues.create'); + } + + public function store(Request $request) + { + $ret = PriceFamilyValues::store($request->all()); + return redirect()->route('Shop.Admin.PriceFamilyValues.index'); + } + + public function show($id) + { + $data = PriceFamilyValues::get($id); + return view('Shop.Admin.PriceFamilyValues.view', $data); + } + + public function edit($id) + { + $data = PriceFamilyValues::get($id); + return view('Shop.Admin.PriceFamilyValues.edit', $data); + } + + public function update(Request $request) + { + // + } + + public function destroy($id) + { + return PriceFamilyValues::destroy($id); + } + +} diff --git a/app/Http/Controllers/Shop/Admin/PriceGenericController.php b/app/Http/Controllers/Shop/Admin/PriceGenericController.php index 283df252..a4252822 100644 --- a/app/Http/Controllers/Shop/Admin/PriceGenericController.php +++ b/app/Http/Controllers/Shop/Admin/PriceGenericController.php @@ -9,49 +9,52 @@ use App\Models\Shop\PriceGeneric; use App\Repositories\Shop\PriceGenerics; use App\Repositories\Shop\PriceGenericCategories; use App\Repositories\Shop\Taxes; +use App\Repositories\Shop\Unities; use App\DataTables\Shop\PriceGenericsDataTable; class PriceGenericController extends Controller { - public function index(PriceGenericsDataTable $dataTable) - { - return $dataTable->render('Shop.Admin.PriceGenerics.list'); - } + public function index(PriceGenericsDataTable $dataTable) + { + return $dataTable->render('Shop.Admin.PriceGenerics.list'); + } - public function getDatatable(Request $request) - { - return PriceGenerics::getTables($request->all()); - } + public function getDatatable(Request $request) + { + return PriceGenerics::getTables($request->all()); + } - public function create() - { - $data['taxes'] = Taxes::getOptions(); - $data['categories'] = PriceGenericCategories::getOptions(); - return view('Shop.Admin.PriceGenerics.create',$data); - } + public function create() + { + $data['unities'] = Unities::getOptions(); + $data['taxes'] = Taxes::getOptions(); + $data['categories'] = PriceGenericCategories::getOptions(); + return view('Shop.Admin.PriceGenerics.create',$data); + } - public function edit($id) - { - $data['generic'] = PriceGenerics::get($id)->toArray(); - $data['taxes'] = Taxes::getOptions(); - $data['categories'] = PriceGenericCategories::getOptions(); - return view('Shop.Admin.PriceGenerics.edit', $data); - } + public function edit($id) + { + $data['generic'] = PriceGenerics::get($id)->toArray(); + $data['unities'] = Unities::getOptions(); + $data['taxes'] = Taxes::getOptions(); + $data['categories'] = PriceGenericCategories::getOptions(); + return view('Shop.Admin.PriceGenerics.edit', $data); + } - public function store(Request $request) - { - $ret = PriceGenerics::store($request->all()); - return redirect()->route('Shop.Admin.PriceGenerics.index'); - } + public function store(Request $request) + { + $ret = PriceGenerics::store($request->all()); + return redirect()->route('Shop.Admin.PriceGenerics.index'); + } - public function show($id) - { - $data = PriceGenerics::get($id); - return view('Shop.Admin.PriceGenerics.view', $data); - } + public function show($id) + { + $data = PriceGenerics::get($id); + return view('Shop.Admin.PriceGenerics.view', $data); + } - public function destroy($id) - { - return PriceGenerics::destroy($id); - } + public function destroy($id) + { + return PriceGenerics::destroy($id); + } } diff --git a/app/Http/Controllers/Shop/Admin/UnityController.php b/app/Http/Controllers/Shop/Admin/UnityController.php new file mode 100644 index 00000000..d3988574 --- /dev/null +++ b/app/Http/Controllers/Shop/Admin/UnityController.php @@ -0,0 +1,64 @@ +render('Shop.Admin.UnityValues.list', $data); + } + + public function getDatatable(Request $request) + { + return UnityValues::getTables($request->all()); + } + + public function getOptionsByFamily(Request $request) + { + $id = $request->input('family_id'); + return response()->json(UnityValues::getSelectByFamily($id)); + } + + public function create() + { + return view('Shop.Admin.UnityValues.create'); + } + + public function store(Request $request) + { + $ret = UnityValues::store($request->all()); + return redirect()->route('Shop.Admin.UnityValues.index'); + } + + public function show($id) + { + $data = UnityValues::get($id); + return view('Shop.Admin.UnityValues.view', $data); + } + + public function edit($id) + { + $data = UnityValues::get($id); + return view('Shop.Admin.UnityValues.edit', $data); + } + + public function update(Request $request) + { + // + } + + public function destroy($id) + { + return UnityValues::destroy($id); + } + +} diff --git a/app/Menu/Shop.php b/app/Menu/Shop.php index 1e35c72f..ec30e15c 100644 --- a/app/Menu/Shop.php +++ b/app/Menu/Shop.php @@ -19,14 +19,14 @@ class Shop ->activeIfRoute(['Shop.Admin.Categories.*'])->order(2); $menu->addTo('shop', 'Familles d\'articles', [ 'route' => 'Shop.Admin.ArticleFamilies.index', 'permission' => 'backend_access' ]) ->activeIfRoute(['Shop.Admin.ArticleFamilies.*'])->order(3); - $menu->addTo('shop', 'Familles d\'attributs', [ 'route' => 'Shop.Admin.ArticleAttributeFamilies.index', 'permission' => 'backend_access' ]) - ->activeIfRoute(['Shop.Admin.ArticleAttributeFamilies.*'])->order(4); +/* $menu->addTo('shop', 'Attributs', [ 'route' => 'Shop.Admin.ArticleAttributeValues.index', 'permission' => 'backend_access' ]) - ->activeIfRoute(['Shop.Admin.ArticleAttributeValues.*'])->order(5); + ->activeIfRoute(['Shop.Admin.ArticleAttributeValues.*'])->order(4); +*/ $menu->addTo('shop', 'Familles de tags', [ 'route' => 'Shop.Admin.TagGroups.index', 'permission' => 'backend_access' ]) - ->activeIfRoute(['Shop.Admin.TagGroups.*'])->order(6); + ->activeIfRoute(['Shop.Admin.TagGroups.*'])->order(5); $menu->addTo('shop', 'Tags', [ 'route' => 'Shop.Admin.Tags.index', 'permission' => 'backend_access' ]) - ->activeIfRoute(['Shop.Admin.Tags.*'])->order(7); + ->activeIfRoute(['Shop.Admin.Tags.*'])->order(6); /* $menu->addTo('shop', 'Réductions', [ 'route' => 'Shop.Admin.ArticleAttributeValues.index', 'permission' => 'backend_access' ]) diff --git a/app/Models/Shop/Price.php b/app/Models/Shop/Price.php index b6758c1d..75acd42c 100644 --- a/app/Models/Shop/Price.php +++ b/app/Models/Shop/Price.php @@ -22,9 +22,14 @@ class Price extends Model return $this->belongsTo('App\Models\Shop\PriceFamily'); } - public function price() + public function generic() { - return $this->morphTo(); + return $this->belongsTo('App\Models\Shop\PriceGeneric', 'price_generic_id'); + } + + public function generic_prices() + { + } public function scopeByArticle($query, $id) @@ -37,4 +42,14 @@ class Price extends Model return $query->where('price_family_id', $id); } + public function scopeGeneric($query) + { + return $query->whereNotNull('price_generic_id'); + } + + public function scopeNotGeneric($query) + { + return $query->whereNull('price_generic_id'); + } + } \ No newline at end of file diff --git a/app/Models/Shop/PriceFamilyValue.php b/app/Models/Shop/PriceFamilyValue.php index b5446b63..64684d0c 100644 --- a/app/Models/Shop/PriceFamilyValue.php +++ b/app/Models/Shop/PriceFamilyValue.php @@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model; class PriceFamilyValue extends Model { protected $guarded = ['id']; - protected $table = 'shop_price_familiy_values'; + protected $table = 'shop_price_family_values'; public function price_family() { diff --git a/app/Models/Shop/PriceGeneric.php b/app/Models/Shop/PriceGeneric.php index 0ae25e7e..82a96dfa 100644 --- a/app/Models/Shop/PriceGeneric.php +++ b/app/Models/Shop/PriceGeneric.php @@ -7,39 +7,34 @@ use Znck\Eloquent\Traits\BelongsToThrough; class PriceGeneric extends Model { - use BelongsToThrough; + use BelongsToThrough; - protected $guarded = ['id']; - protected $table = 'shop_price_generics'; + protected $guarded = ['id']; + protected $table = 'shop_price_generics'; - public function category() - { - return $this->hasOne('App\Models\Shop\PriceGenericCategory','id','category_id'); - } + public function category() + { + return $this->hasOne('App\Models\Shop\PriceGenericCategory','id','category_id'); + } public function prices() { - return $this->hasMany('App\Models\Shop\Price','price_id')->where('price_type','App\Models\Shop\PriceGeneric'); + return $this->hasMany('App\Models\Shop\PriceGenericValue','price_generic_id')->whereNotNull('price_generic_id'); } - public function values() - { - return $this->hasMany('App\Models\Shop\PriceGenericValue'); - } + public function priceByUnit() + { + return $this->hasOne('App\Models\Shop\PriceGenericValue')->orderBy('quantity','asc'); + } - public function priceByUnit() - { - return $this->hasOne('App\Models\Shop\PriceGenericValue')->orderBy('quantity','asc'); - } + public function articles() + { + return $this->hasManyThrough('App\Models\Shop\Article','App\Models\Shop\Price'); + } - public function articles() - { - return $this->hasManyThrough('App\Models\Shop\Article','App\Models\Shop\Price'); - } - - public function scopeByCategory($query, $id) - { - return $query->where('category_id', $id); - } + public function scopeByCategory($query, $id) + { + return $query->where('category_id', $id); + } } \ No newline at end of file diff --git a/app/Models/Shop/Tag.php b/app/Models/Shop/Tag.php index cc884350..e69a78a4 100644 --- a/app/Models/Shop/Tag.php +++ b/app/Models/Shop/Tag.php @@ -6,21 +6,21 @@ use Illuminate\Database\Eloquent\Model; class Tag extends Model { - protected $guarded = ['id']; + protected $guarded = ['id']; - public function group() - { + public function group() + { return $this->hasOne('App\Models\Shop\TagGroup','id','tag_group_id'); - } + } - public function scopeByGroup($query, $id) - { - return $query->where('tag_group_id', $id); - } + public function scopeByGroup($query, $id) + { + return $query->where('tag_group_id', $id); + } - public function getNameAttribute($value) - { - return json_decode($value)->fr; - } + public function getNameAttribute($value) + { + return json_decode($value)->fr; + } } diff --git a/app/Models/Shop/TagGroup.php b/app/Models/Shop/TagGroup.php index 01e07219..c478345b 100644 --- a/app/Models/Shop/TagGroup.php +++ b/app/Models/Shop/TagGroup.php @@ -6,12 +6,11 @@ use Illuminate\Database\Eloquent\Model; class TagGroup extends Model { - protected $guarded = ['id']; - protected $table = 'tag_groups'; + protected $guarded = ['id']; + protected $table = 'tag_groups'; public function tags() - { - return $this->hasMany('App\Models\Shop\Tag'); - } - + { + return $this->hasMany('App\Models\Shop\Tag'); + } } diff --git a/app/Models/Shop/Unity.php b/app/Models/Shop/Unity.php new file mode 100644 index 00000000..dbdaa5b4 --- /dev/null +++ b/app/Models/Shop/Unity.php @@ -0,0 +1,13 @@ +with('price')->get()->toArray(); - $data = []; - foreach ($prices as $price) - { - if ($price['price_type'] == 'App\Models\Shop\ArticlePrice') - { - $data[] = $price['price']; - } else { - $values = PriceGenericValues::getByPriceGeneric($price['price']['id'])->toArray(); - foreach ($values as $value) - { - $data[] = $value; - } - } - } - return $data; - } + public static function getByArticle($id) + { + $data['prices'] = Price::byArticle($id)->notGeneric()->get()->toArray(); + $data['generics'] = Price::byArticle($id)->generic()->with(['generic.prices','generic.category'])->get()->toArray(); + return $data; + } - public static function getDatatable() - { - $model = Price::orderBy('name'); - return Datatables::of($model)->make(true); - } + public static function getDatatable() + { + $model = Price::orderBy('name'); + return Datatables::of($model)->make(true); + } - public static function getAll() - { - return Price::orderBy('name','asc')->get(); - } + public static function getAll() + { + return Price::orderBy('name','asc')->get(); + } - public static function get($id) - { - return Price::find($id); - } + public static function get($id) + { + return Price::find($id); + } - public static function store($data) - { - $id = isset($data['id']) ? $data['id'] : false; - $item = $id ? self::update($data) : self::create($data); - return $item->id; - } + public static function store($data) + { + $id = isset($data['id']) ? $data['id'] : false; + $item = $id ? self::update($data) : self::create($data); + return $item->id; + } - public static function create($data) - { - return Price::create($data); - } + public static function create($data) + { + return Price::create($data); + } - public static function update($data) - { - return Price::find($id)->update($data); - } + public static function update($data) + { + return Price::find($id)->update($data); + } - public static function destroy($id) - { - return Price::destroy($id); - } + public static function destroy($id) + { + return Price::destroy($id); + } } diff --git a/app/Repositories/Shop/Unities.php b/app/Repositories/Shop/Unities.php new file mode 100644 index 00000000..0e756f57 --- /dev/null +++ b/app/Repositories/Shop/Unities.php @@ -0,0 +1,58 @@ +make(true); + } + + public static function getOptions() + { + return Unity::orderBy('value','asc')->get()->pluck('value','id')->toArray(); + } + + public static function getAll() + { + return Unity::orderBy('value','asc')->get(); + } + + public static function get($id) + { + return Unity::find($id); + } + + public static function store($data) + { + $id = isset($data['id']) ? $data['id'] : false; + $item = $id ? self::update($data) : self::create($data); + return $item->id; + } + + public static function create($data) + { + return Unity::create($data); + } + + public static function update($data) + { + return Unity::find($id)->update($data); + } + + public static function destroy($id) + { + return Unity::destroy($id); + } + +} diff --git a/app/Twiggy.php b/app/Twiggy.php deleted file mode 100644 index f79f51db..00000000 --- a/app/Twiggy.php +++ /dev/null @@ -1,111 +0,0 @@ -get('menu_admin')->asUl(); - } - - public function pretty_date($date) - { - $time = strtotime($date); - $now = time(); - $ago = $now - $time; - $futur = 0; - - if ($ago < 0) { - $ago = (-1 * $ago); - $futur = 1; - } - - if ($ago < 60) { - $when = round($ago); - $s = ($when == 1) ? "seconde" : "secondes"; - $txt = "$when $s"; - } elseif ($ago < 3600) { - $when = round($ago / 60); - $m = ($when == 1) ? "minute" : "minutes"; - $txt = "$when $m"; - } elseif ($ago >= 3600 && $ago < 86400) { - $when = round($ago / 60 / 60); - $h = ($when == 1) ? "heure" : "heures"; - $txt = "$when $h"; - } elseif ($ago >= 86400 && $ago < 2629743.83) { - $when = round($ago / 60 / 60 / 24); - $d = ($when == 1) ? "jour" : "jours"; - $txt = "$when $d"; - } elseif ($ago >= 2629743.83 && $ago < 31556926) { - $when = round($ago / 60 / 60 / 24 / 30.4375); - $m = "mois"; - $txt = "$when $m"; - } else { - $when = round($ago / 60 / 60 / 24 / 365); - $y = ($when == 1) ? "an" : "ans"; - $txt = "$when $y"; - } - - if ($futur) { - $txt = "dans " . $txt; - } else { - $txt = "il y a " . $txt; - } - return $txt; - } -} diff --git a/composer.json b/composer.json index 9fd56af1..c2050e37 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,7 @@ "laravel/scout": "^7.2", "laravel/ui": "^1.0", "laravelcollective/html": "^6.0", + "lavary/laravel-menu": "1.8.1", "league/climate": "^3.5", "league/period": "^4.9", "lorisleiva/laravel-deployer": "^0.3.2", @@ -74,7 +75,7 @@ "smajohusic/laravel-mail-logger": "^1.0", "soved/laravel-gdpr": "^1.5", "spatie/laravel-activitylog": "^3.6", - "spatie/laravel-backup": "^6.2", + "spatie/laravel-backup": "^6.7", "spatie/laravel-medialibrary": "^7.0", "staudenmeir/belongs-to-through": "^2.5", "staudenmeir/eloquent-has-many-deep": "^1.8", @@ -102,7 +103,6 @@ "nunomaduro/larastan": "^0.5.2", "nunomaduro/phpinsights": "^1.13", "phpunit/phpunit": "^8.0", - "sayeed/custom-migrate": "^1.0", "theseer/phpdox": "^0.12.0", "wnx/laravel-stats": "^2.0" }, diff --git a/resources/views/Shop/Admin/ArticleAttributeFamilies/create.blade.php b/resources/views/Shop/Admin/ArticleAttributeFamilies/create.blade.php deleted file mode 100644 index 78075320..00000000 --- a/resources/views/Shop/Admin/ArticleAttributeFamilies/create.blade.php +++ /dev/null @@ -1,28 +0,0 @@ -@extends('layout.index', [ - 'title' => __('article_attribute_families.title'), - 'subtitle' => __('article_attribute_families.create.title'), - 'breadcrumb' => [__('article_attribute_families.title'), __('article_attribute_families.create.title')] -]) - -@include('boilerplate::load.fileinput') - -@section('content') - - {{ Form::open(['route' => 'Shop.Admin.ArticleAttributeFamilies.store', 'id' => 'article-attribute-family-form', 'autocomplete' => 'off']) }} - -
| + {{ $generic['category']['name'] ?? null }} + | + @foreach ($generic['prices'] as $price) ++ {{ $price['quantity'] ?? null }} {{ $price['unity_id'] ?? null }} + | + @endforeach + +
|---|---|
| + {{ $generic['name'] ?? null }} + | + @foreach ($generic['prices'] as $price) ++ {{ $price['price_taxed'] ?? null }} + | + @endforeach +