Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions app/Http/Controllers/Admin/Data/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
]);
}
Expand All @@ -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,
]);
}
Expand Down Expand Up @@ -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,
]);
}
Expand Down
8 changes: 0 additions & 8 deletions resources/views/admin/shops/create_edit_shop.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,6 @@
@endforeach
</div>
@endif

<div class="feature-row mb-2 hide">
{!! Form::label('item_id', 'Item', ['class' => 'col-form-label']) !!}
<div class="col-4">
{!! Form::select('item_id[]', $items, null, ['class' => 'form-control', 'placeholder' => 'Select Item']) !!}
</div>
<a href="#" class="remove-feature btn btn-danger">Remove</a>
</div>
@endsection

@section('scripts')
Expand Down