vscode-blade-formatter icon indicating copy to clipboard operation
vscode-blade-formatter copied to clipboard

[Formatting Bug]:

Open AIVAN22 opened this issue 1 year ago • 0 comments

Platform

Linux

Template before formatting

<label>Title</label>\
        @if (isset($editpost))
            <input type="hidden" name="id" value="{{ $editpost->id }}" />
        @endif
does not read the if? //<input type="text" value="{{ if(isset($editpost)) ? $editpost->title : ''}}">
        

        <button type="submit"
            class="bg-blue-500 ml-3 rounded-full text-xs font-semibold text-white uppercase py-3 px-5">Edit</button>
    </form>

Template after formatting

<label>Title</label>\
        @if (isset($editpost))
            <input type="hidden" name="id" value="{{ $editpost->id }}" />
        @endif
       Same error <input type="text" value="{{ if(isset($editpost)) ? $editpost->title : ''}}">
        

        <button type="submit"
            class="bg-blue-500 ml-3 rounded-full text-xs font-semibold text-white uppercase py-3 px-5">Edit</button>
    </form>

Expected Behaviour

should have read the if statement

Relevant log output

No response

AIVAN22 avatar Jan 19 '24 10:01 AIVAN22