mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-25 00:35:21 +01:00
62c9baba23
Added the long planned button editor. This solution does not look optimal, but works... mostly. This solution is implemented with JavaScript and the current versions code is very unorganized mostly uncommented and the HTML is still mostly done with inline code. I hope I will fix this in future revisions. To learn more about the new button editor, read: https://littlelink-custom.com/blog/upcoming-features/ https://littlelink-custom.com/blog/progress-of-the-new-button-editor/
45 lines
1.7 KiB
PHP
Executable File
45 lines
1.7 KiB
PHP
Executable File
@extends('layouts.sidebar')
|
|
|
|
@section('content')
|
|
|
|
<h2 class="mb-4"><i class="bi bi-link-45deg"> Links</i></h2>
|
|
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Link</th>
|
|
<th scope="col">Title</th>
|
|
<th scope="col">Click</th>
|
|
<th scope="col">Order ⏶</th>
|
|
<th scope="col">Pin Link ⏶</th>
|
|
<th scope="col">Edit</th>
|
|
<th scope="col">Button Editor<span style="color:tomato"> beta</span></th>
|
|
<th scope="col">Delete</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($links as $link)
|
|
<tr>
|
|
<td title="{{ $link->link }}">{{ Str::limit($link->link, 30) }}</td>
|
|
<td title="{{ $link->title }}">{{ Str::limit($link->title, 30) }}</td>
|
|
<td class="text-right">{{ $link->click_number }}</td>
|
|
<td class="text-right">{{ $link->order }}</td>
|
|
<td><a href="{{ route('upLink', ['up' => $link->up_link, 'id' => $link->id]) }}" class="text-primary">{{ $link->up_link }}</a></td>
|
|
<td><a href="{{ route('editLink', $link->id ) }}">Edit</a></td>
|
|
@if($link->button_id == 1 or $link->button_id == 2)
|
|
<td><a href="{{ route('editCSS', $link->id ) }}" class="text-success">Customize Button</a></td>
|
|
@else
|
|
<td><a> - </a></td>
|
|
@endif
|
|
<td><a href="{{ route('deleteLink', $link->id ) }}" class="text-danger">Delete</a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<ul class="pagination justify-content-center">
|
|
{!! $links ?? ''->links() !!}
|
|
</ul>
|
|
|
|
@endsection
|