Home > Software engineering >  Exception in UI \ view in section that is in comment - HTML PHP Laravel
Exception in UI \ view in section that is in comment - HTML PHP Laravel

Time:08-22

I have a question, and I am new to laravel and html. I have a view, and in the view I have a certain code that is in comment. when I try to load the page it throws exception on this part of code, But why? If I remove the code completely it worked, so why the page loads the comments?

this the code:

 <!--  <td> Removed in and not to use
                    <input type="text"  name="dsp_fee_pct" value="{{$dsp_account['dsp_fee_pct']}}" id="dsp_fee_pct">
                    <span >%</span>
                </td> -->

and this is the exception: enter image description here

CodePudding user response:

Try comment like this :

{{--  <td>
          <input type="text"  name="dsp_fee_pct" value="{{$dsp_account['dsp_fee_pct']}}" id="dsp_fee_pct">
          <span >%</span>
      </td> --}}

or change :

value="{{ $dsp_account['dsp_fee_pct'] ?? ''}}"

CodePudding user response:

thanks this solved it:

<!-- this code is in comment and  Removed in
              {{--  <td> 
                    <input type="text"  name="dsp_fee_pct" value="{{$dsp_account['dsp_fee_pct']}}" id="dsp_fee_pct">
                    <span >%</span>
                </td> --}} -->
  • Related