<div class="col-md-6">
    <div class="form-group has-success" style="margin-bottom: 15px">
        <label class="control-label">By Project</label>
        <div class="input-group">
            <div class="input-group-addon">
                <i class="fa fa-product-hunt"></i>
            </div>
            <select id="multipro" class="form-control chosen-select" name="multipro_id"
            onchange="updateStatus(this.value)">
            <option value="search"><b>Select Project</b></option>
            <option value="all">All</option>
            @foreach ($multi_projects as $pro)
            @php
         $id=   Crypt::encrypt( $pro->id );
            @endphp
                @if (old('multipro_id') ==  $id)
                    <option selected="" value="{{  $id}}">{{ $pro->name }}
                    </option>
                @else
                    <option value="{{  $id }}">{{ $pro->name }} </option>
                @endif
            @endforeach

        </select>


            @if ($errors->has('multipro_id'))
                <span class="help-block">
                    <strong>{{ $errors->first('multipro_id') }}</strong>
                </span>
            @endif

        </div>
    </div>
</div>