Skip to content

Commit

Permalink
Update edit-link.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Aug 2, 2022
1 parent 6380be8 commit d308d30
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions resources/views/studio/edit-link.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@
<label for="exampleFormControlSelect1">Button</label>
<select class="form-control" name="button">
<option style="background-color:#1e90ff;color:#fff"> {{ $buttonName }} </option>
@foreach($buttons as $button)
@if ($button->name != "custom")@if ($loop->first)<option style="background-color:#ffe8e4;"> custom </option>@endif @endif
@if ($button->name != "custom_website")@if ($loop->first)<option style="background-color:#ffe8e4;"> custom_website </option>@endif @endif
@endforeach

@if ($buttonName != "custom")<option style="background-color:#ffe8e4;"> custom </option>@endif
@if ($buttonName != "custom_website")<option style="background-color:#ffe8e4;"> custom_website </option>@endif
@foreach($buttons as $button)
@if (!in_array($button->name, ['custom', 'custom_website', 'heading', 'space']))
@if ($button->name != $buttonName)
<option> {{ $button->name }} </option>
@endif
@endif
@endforeach
@foreach($buttons as $button)
@if ($button->name != "heading")@if ($loop->first)<option style="background-color:#ebebeb;"> heading </option>@endif @endif
@if ($button->name != "space")@if ($loop->first)<option style="background-color:#ebebeb;"> space </option>@endif @endif
@endforeach
@if ($buttonName != "heading")<option style="background-color:#ebebeb;"> heading </option>@endif
@if ($buttonName != "space")<option style="background-color:#ebebeb;"> space </option>@endif

</select>
</div>

Expand Down

0 comments on commit d308d30

Please sign in to comment.