First of all, hello, and forgive me in a slightly worse English language
index.blade.php
<div class="col-sm-6 col-xs-12">
<div class="toolbar-tools pull-right">
<ul class="nav navbar-right">
@if(Entrust::can('add_post'))
<li>
@foreach($main_title_options as $option)
<a href="{{ url('admin/post/create') }}" @if(isset($_GET['main_title']) && $_GET['main_title'] == $option->value)>
<i class="fa fa-plus"></i>
{{ trans('labels.create_' . $option->value ) }}
@else
{{ trans('labels.create_posts') }}
@endif
@endforeach
</a>
</li>
@endif
</ul>
</div>
</div>
main_title.blade.php
<div class="form-group">
<label for="main_title">{{ trans('labels.main_title') }}</label>
<select v-model="post.main_title | mainTitle" name="main_title"
id="main_title"
class="form-control">
@foreach($main_title_options as $option)
<option {{ old('main_title') == $option->value ? 'selected="selected"' : '' }} value="{{ $option->value }}">
{{ trans('labels.'.$option->value) }}
</option>
@endforeach
</select>
</div>
I want to, for example, if I come with http://nesto.test/admin/post?main_title=post, automatically select value is 'post', and if I come with http://nesto.test/admin/post?main_title=manifestacion , automatically select value will be 'manifestation'
I hope you understand what I want, thank you in advance