Skip to content

Commit

Permalink
Issue bagisto#7368 Resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
gitesh-webkul committed Mar 23, 2023
1 parent 3a40a19 commit d024936
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
<label for="marketing_template_id" class="required">{{ __('admin::app.marketing.campaigns.email-template') }}</label>
<select v-validate="'required'" class="control" id="marketing_template_id" name="marketing_template_id" data-vv-as="&quot;{{ __('admin::app.marketing.campaigns.email-template') }}&quot;">
@foreach (app('Webkul\Marketing\Repositories\TemplateRepository')->all() as $template)
@if ( $template->status == 'inactive')
@continue
@endif

<option value="{{ $template->id }}" {{ old('marketing_template_id') == $template->id ? 'selected' : '' }}>
{{ $template->name }}
</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@

<select v-validate="'required'" class="control" id="marketing_template_id" name="marketing_template_id" data-vv-as="&quot;{{ __('admin::app.marketing.campaigns.email-template') }}&quot;">
@foreach (app('Webkul\Marketing\Repositories\TemplateRepository')->all() as $template)
@if ( $template->status == 'inactive')
@continue
@endif

<option value="{{ $template->id }}" {{ $selectedOption == $template->id ? 'selected' : '' }}>
{{ $template->name }}
</option>
Expand Down

0 comments on commit d024936

Please sign in to comment.