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

35 lines
1.3 KiB
PHP
Raw Normal View History

2021-04-16 01:00:00 +02:00
@extends('layouts.sidebar')
@section('content')
<h2 class="mb-4"><i class="bi bi-pen"> Edit Link</i></h2>
<form action="{{ route('editLink', $id) }}" method="post">
@csrf
<div class="form-group col-lg-8">
<label>Link</label>
2022-07-07 12:41:24 +02:00
<input type="text" name="link" value="{{ $link }}" class="form-control" placeholder="https://google.com" required>
2021-04-16 01:00:00 +02:00
</div>
2021-07-06 10:52:07 +02:00
<div class="form-group col-lg-8">
<label>Title</label>
<input type="text" name="title" value="{{ $title }}" class="form-control" placeholder="Google">
</div>
2021-04-16 01:00:00 +02:00
<div class="form-group col-lg-8">
<label for="exampleFormControlSelect1">Button</label>
<select class="form-control" name="button">
@foreach($buttons as $button)
2021-07-06 10:52:07 +02:00
<option <?= ($buttonId === $button->id) ? 'selected' : '' ?>> {{ $button->name }} </option>
2021-04-16 01:00:00 +02:00
@endforeach
</select>
</div>
2021-07-06 10:52:07 +02:00
<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>
2021-04-16 01:00:00 +02:00
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
</form>
@endsection