update studio edit link blade

This commit is contained in:
aprillio 2021-07-06 15:52:07 +07:00
parent d9a27466e9
commit 8889acbf3a

View File

@ -10,14 +10,24 @@
<label>Link</label> <label>Link</label>
<input type="text" name="link" value="{{ $link }}" class="form-control" placeholder="https://google.com"> <input type="text" name="link" value="{{ $link }}" class="form-control" placeholder="https://google.com">
</div> </div>
<div class="form-group col-lg-8">
<label>Title</label>
<input type="text" name="title" value="{{ $title }}" class="form-control" placeholder="Google">
</div>
<div class="form-group col-lg-8"> <div class="form-group col-lg-8">
<label for="exampleFormControlSelect1">Button</label> <label for="exampleFormControlSelect1">Button</label>
<select class="form-control" name="button"> <select class="form-control" name="button">
@foreach($buttons as $button) @foreach($buttons as $button)
<option> {{ $button->name }} </option> <option <?= ($buttonId === $button->id) ? 'selected' : '' ?>> {{ $button->name }} </option>
@endforeach @endforeach
</select> </select>
</div> </div>
<div class="form-group col-lg-8">
<label>Order</label>
<input type="number" name="order" value="{{ $order }}" class="form-control" placeholder="use for ordering links">
</div>
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button> <button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
</form> </form>