vscode-blade-formatter
vscode-blade-formatter copied to clipboard
[Formatting Bug]:
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