Skip to content

Commit d308d30

Browse files
committed
Update edit-link.blade.php
1 parent 6380be8 commit d308d30

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

resources/views/studio/edit-link.blade.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,19 @@
1818
<label for="exampleFormControlSelect1">Button</label>
1919
<select class="form-control" name="button">
2020
<option style="background-color:#1e90ff;color:#fff"> {{ $buttonName }} </option>
21-
@foreach($buttons as $button)
22-
@if ($button->name != "custom")@if ($loop->first)<option style="background-color:#ffe8e4;"> custom </option>@endif @endif
23-
@if ($button->name != "custom_website")@if ($loop->first)<option style="background-color:#ffe8e4;"> custom_website </option>@endif @endif
24-
@endforeach
21+
22+
@if ($buttonName != "custom")<option style="background-color:#ffe8e4;"> custom </option>@endif
23+
@if ($buttonName != "custom_website")<option style="background-color:#ffe8e4;"> custom_website </option>@endif
2524
@foreach($buttons as $button)
2625
@if (!in_array($button->name, ['custom', 'custom_website', 'heading', 'space']))
2726
@if ($button->name != $buttonName)
2827
<option> {{ $button->name }} </option>
2928
@endif
3029
@endif
3130
@endforeach
32-
@foreach($buttons as $button)
33-
@if ($button->name != "heading")@if ($loop->first)<option style="background-color:#ebebeb;"> heading </option>@endif @endif
34-
@if ($button->name != "space")@if ($loop->first)<option style="background-color:#ebebeb;"> space </option>@endif @endif
35-
@endforeach
31+
@if ($buttonName != "heading")<option style="background-color:#ebebeb;"> heading </option>@endif
32+
@if ($buttonName != "space")<option style="background-color:#ebebeb;"> space </option>@endif
33+
3634
</select>
3735
</div>
3836

0 commit comments

Comments
 (0)