diff --git a/app/Http/Controllers/Admin/Data/ShopController.php b/app/Http/Controllers/Admin/Data/ShopController.php index ec79f31b9f..0083087cbe 100644 --- a/app/Http/Controllers/Admin/Data/ShopController.php +++ b/app/Http/Controllers/Admin/Data/ShopController.php @@ -3,7 +3,6 @@ namespace App\Http\Controllers\Admin\Data; use App\Http\Controllers\Controller; -use App\Models\Currency\Currency; use App\Models\Item\Item; use App\Models\Shop\Shop; use App\Models\Shop\ShopStock; @@ -45,7 +44,6 @@ public function getCreateShop() { return view('admin.shops.create_edit_shop', [ 'shop' => new Shop, - 'items' => Item::orderBy('name')->pluck('name', 'id'), 'coupons' => $coupons, ]); } @@ -70,8 +68,6 @@ public function getEditShop($id) { return view('admin.shops.create_edit_shop', [ 'shop' => $shop, - 'items' => Item::orderBy('name')->pluck('name', 'id'), - 'currencies' => Currency::orderBy('name')->pluck('name', 'id'), 'coupons' => $coupons, ]); } @@ -118,7 +114,6 @@ public function getCreateShopStock($id) { return view('admin.shops._stock_modal', [ 'shop' => $shop, - 'currencies' => Currency::orderBy('name')->pluck('name', 'id'), 'stock' => new ShopStock, ]); } diff --git a/resources/views/admin/shops/create_edit_shop.blade.php b/resources/views/admin/shops/create_edit_shop.blade.php index 95a701e18e..4a6374a9e0 100644 --- a/resources/views/admin/shops/create_edit_shop.blade.php +++ b/resources/views/admin/shops/create_edit_shop.blade.php @@ -212,14 +212,6 @@ @endforeach @endif - -
- {!! Form::label('item_id', 'Item', ['class' => 'col-form-label']) !!} -
- {!! Form::select('item_id[]', $items, null, ['class' => 'form-control', 'placeholder' => 'Select Item']) !!} -
- Remove -
@endsection @section('scripts')