2022-11-08 16:11:59 +01:00
|
|
|
<label for='button' class='form-label'>Select a predefined site</label>
|
2022-11-11 15:37:13 +01:00
|
|
|
<?php use App\Models\Button; $button = Button::find($button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
|
2022-11-08 16:11:59 +01:00
|
|
|
|
|
|
|
<select name='button' class='form-control'>
|
2022-11-11 15:37:13 +01:00
|
|
|
@if($buttonName != 0)<option value='{{$buttonName}}'>{{ucfirst($buttonName)}}</option>@endif
|
2022-11-08 16:11:59 +01:00
|
|
|
@foreach ($buttons as $b)
|
2022-12-10 15:05:13 +01:00
|
|
|
@if(!in_array($b["name"], ["custom_website", "custom", "custom", "heading", "space", "text", "icon", $buttonName]))
|
2022-11-08 16:11:59 +01:00
|
|
|
<option class='button button-{{$b["name"]}}' value='{{$b["name"]}}' {{ $b["selected"] == true ? "selected" : ""}}>{{$b["title"]}}</option>
|
2022-11-09 19:45:28 +01:00
|
|
|
@endif
|
2022-11-08 16:11:59 +01:00
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label for='title' class='form-label'>Custom Title</label>
|
|
|
|
<input type='text' name='title' value='{{$link_title}}' class='form-control' />
|
2022-11-14 11:47:33 +01:00
|
|
|
<span class='small text-muted'>Leave blank for default title</span><br>
|
2022-11-08 16:11:59 +01:00
|
|
|
|
|
|
|
<label for='link' class='form-label'>URL</label>
|
|
|
|
<input type='url' name='link' value='{{$link_url}}' class='form-control' required />
|
2022-11-14 11:46:22 +01:00
|
|
|
<span class='small text-muted'>Enter the link URL</span>
|
2022-11-08 16:11:59 +01:00
|
|
|
|