title: Check old data is null or not or check by isset() from input laravel Blade
body: <p>How can I check old data is available or not after validation from controller? 
  i used this but it shows error</p>
  
  <pre><code>@if(\Illuminate\Http\Request::old('status')!=null)
      &lt;option style="display: none" value="{{old('status')}}" hidden&gt;{{old('status')}}&lt;/option&gt;
  @endif
  </code></pre>
  
  <p>also used this one </p>
  
  <pre><code>@if(isset(old('status')))
      &lt;option style="display: none" value="{{old('status')}}" hidden&gt;{{old('status')}}&lt;/option&gt;
  @endif
  </code></pre>
  
  <p>full form is</p>
  
  <pre><code>&lt;form action="{{route('add-expense-store')}}" method="post" class="new-added-form"&gt;
      {{ @csrf_field() }}
      &lt;div class="row"&gt;
          &lt;div class="col-xl-8 col-lg-8 col-12 form-group"&gt;
              &lt;label&gt;Expense Type&lt;/label&gt;
              &lt;select class="select2" name="type"&gt;
                  &lt;option value=""&gt;Please Select&lt;/option&gt;
                  {{--&lt;option value="Teacher's Salary"&gt;Teacher's Salary&lt;/option&gt;
                  &lt;option value="Staff's Salary"&gt;Staff's Salary&lt;/option&gt;--}}
                  &lt;option value="Transport"&gt;Transport&lt;/option&gt;
                  &lt;option value="Mobile Bill"&gt;Mobile Bill&lt;/option&gt;
                  &lt;option value="Utility Bill"&gt;Utility Bill&lt;/option&gt;
                  &lt;option value="Stationary"&gt;Stationary&lt;/option&gt;
                  &lt;option value="Print &amp; Press"&gt;Print &amp; Press&lt;/option&gt;
                  &lt;option value="Photocopy &amp; Compose"&gt;Photocopy &amp; Compose&lt;/option&gt;
                  &lt;option value="Entertainment &amp; Hospitality"&gt;Entertainment &amp; Hospitality&lt;/option&gt;
                  &lt;option value="Donation"&gt;Donation&lt;/option&gt;
                  &lt;option value="Program"&gt;Program&lt;/option&gt;
                  &lt;option value="Personal or Owner"&gt;Personal or Owner&lt;/option&gt;
              &lt;/select&gt;
          &lt;/div&gt;
          &lt;div class="col-xl-4 col-lg-4 col-12 form-group"&gt;
              &lt;label&gt;Status&lt;/label&gt;
              &lt;select class="select2" name="status"&gt;
                  @if(isset(old('status')))
                      &lt;option style="display: none" value="{{old('status')}}" hidden&gt;{{old('status')}}&lt;/option&gt;
                  @endif
                  &lt;option value=""&gt;Please Select&lt;/option&gt;
                  &lt;option value="Paid"&gt;Paid&lt;/option&gt;
                  &lt;option value="Due"&gt;Due&lt;/option&gt;
              &lt;/select&gt;
          &lt;/div&gt;
          &lt;div class="col-xl-6 col-lg-6 col-12 form-group"&gt;
              &lt;label&gt;Holder Name&lt;/label&gt;
              &lt;input type="text" placeholder="" class="form-control" name="holder_name"
                     value="{{ old('holder_name') }}"&gt;
          &lt;/div&gt;
          &lt;div class="col-xl-6 col-lg-6 col-12 form-group"&gt;
              &lt;label&gt;Phone&lt;/label&gt;
              &lt;input type="number" placeholder="" class="form-control" name="phone" {{ old('phone') }}&gt;
          &lt;/div&gt;
          &lt;div class="col-12 form-group mg-t-8"&gt;
              &lt;button type="submit" class="btn-fill-lg btn-gradient-yellow btn-hover-bluedark float-right"&gt;Save
              &lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>controller</p>
  
  <pre><code>$this-&gt;validate($request, [
        'type' =&gt; 'required',
        'status' =&gt; 'required'
  ]);
  </code></pre>
  
  <p>both are getting error. How can I check old value us available or not in blade?</p>
  
  <p>Now I include my form data. here I wants to hidden if old value is not found. please help with this one. check isset old data in blade.</p>