laravel-blade-snippets-vscode
laravel-blade-snippets-vscode copied to clipboard
Not formatting @for and @php and also javascript in <script> tag correctly.
@php $units = get_unit_data(); $rows = 5; if(!empty($installation_data)){ $default = array_pop($installation_data); $rows = count($installation_data); $last_index = ''; if(!empty(old('price'))){ $last_index = count(old('price')); $last_index -= 1; } } @endphp
@for ($i = 0; $i < $rows; $i++)
and also for javascript i have to manually format it everytime. Otherwise it is working fine.
Try to use @for loop like this:
@foreach(range(0, $rows) as $i)
Your HTML Code
@endforeach
Any news on this? I also opened this issue #127 but no solution as of now.