channel promotion id edit fix

This commit is contained in:
merdan 2021-11-09 23:14:11 +05:00
parent a315ff01a9
commit 1e4b44fd2c
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@
<select v-validate="'required'" class="control" id="root_category_id" name="root_category_id" data-vv-as="&quot;{{ __('admin::app.settings.channels.root-category') }}&quot;">
@foreach (app('Webkul\Category\Repositories\CategoryRepository')->getRootCategories() as $category)
<option value="{{ $category->id }}" {{ $selectedOption == $category->id ? 'selected' : '' }}>
{{ $category->id }} - {{ $category->name }}
{{ $category->name }}
</option>
@endforeach
</select>
@ -104,7 +104,7 @@
<?php $selectedOption = old('promotion_category_id') ?: $channel->promotion_category_id ?>
@foreach (app('Sarga\Shop\Repositories\CategoryRepository')->getDescriptionCategories() as $category)
<option value="{{ $category->id }}" {{ old('promotion_category_id') == $category->id ? 'selected' : '' }}>
{{ $category->name }}
{{ $category->id }} - {{ $category->name }}
</option>
@endforeach
</select>