2021-04-16 01:00:00 +02:00
|
|
|
@extends('layouts.sidebar')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<h2 class="mb-4"><i class="bi bi-plus"> Add Link</i></h2>
|
|
|
|
|
|
|
|
<form action="{{ route('addLink') }}" method="post">
|
|
|
|
@csrf
|
|
|
|
<div class="form-group col-lg-8">
|
2022-03-18 12:04:13 +01:00
|
|
|
<label>Link*</label>
|
2022-07-07 12:38:19 +02:00
|
|
|
<input type="text" name="link" class="form-control" placeholder="https://google.com" required>
|
2021-04-16 01:00:00 +02:00
|
|
|
</div>
|
2021-07-06 10:51:16 +02:00
|
|
|
<div class="form-group col-lg-8">
|
|
|
|
<label>Title</label>
|
2022-03-18 12:04:13 +01:00
|
|
|
<input type="text" name="title" class="form-control" placeholder="Internal name (optional)">
|
2021-07-06 10:51:16 +02:00
|
|
|
</div>
|
2021-04-16 01:00:00 +02:00
|
|
|
<div class="form-group col-lg-8">
|
2022-03-18 12:04:13 +01:00
|
|
|
<label for="exampleFormControlSelect1">Button*</label>
|
2021-04-16 01:00:00 +02:00
|
|
|
<select class="form-control" name="button">
|
|
|
|
@foreach($buttons as $button)
|
|
|
|
<option> {{ $button->name }} </option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
2022-03-18 12:04:13 +01:00
|
|
|
<br>
|
|
|
|
<label>* Required fields</label><br>
|
2021-04-16 01:00:00 +02:00
|
|
|
</div>
|
2022-05-04 11:03:24 +02:00
|
|
|
<div class="row"><button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button><a style="color:white;background-color:#f8b739;" class="mt-3 ml-3 btn" href="{{ url('/studio/links') }}">See all links</a></div>
|
2021-04-16 01:00:00 +02:00
|
|
|
</form>
|
|
|
|
|
2022-03-18 14:59:45 +01:00
|
|
|
<br><br><details>
|
|
|
|
<summary>More information</summary>
|
|
|
|
<pre style="color: grey;">
|
|
|
|
The 'Custom' button allows you to add a custom link, where the text on the button is determined with the link title set above.
|
|
|
|
The 'Custom_website' button functions similar to the Custom button, with the addition of a function that requests the favicon from the chosen URL and uses it as the button icon.
|
2022-05-06 15:26:39 +02:00
|
|
|
|
|
|
|
The 'Space' button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space's distance.
|
|
|
|
The 'Heading' button will be replaced with a sub-heading, where the title defines the text on that heading.
|
2022-03-18 14:59:45 +01:00
|
|
|
</pre>
|
|
|
|
</details>
|
|
|
|
|
2021-04-16 01:00:00 +02:00
|
|
|
@endsection
|