2021-04-16 01:00:00 +02:00
|
|
|
@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>
|
2021-07-06 10:52:40 +02:00
|
|
|
<th scope="col">Title</th>
|
2021-04-16 01:00:00 +02:00
|
|
|
<th scope="col">Click</th>
|
2021-07-06 10:52:40 +02:00
|
|
|
<th scope="col">Order ⏶</th>
|
|
|
|
<th scope="col">Up Link ⏶</th>
|
|
|
|
<th scope="col">Edit</th>
|
2021-04-16 01:00:00 +02:00
|
|
|
<th scope="col">Delete</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($links as $link)
|
|
|
|
<tr>
|
2021-07-06 12:20:58 +02:00
|
|
|
<td title="{{ $link->link }}">{{ Str::limit($link->link, 30) }}</td>
|
|
|
|
<td title="{{ $link->title }}">{{ Str::limit($link->title, 30) }}</td>
|
2021-07-06 12:50:38 +02:00
|
|
|
<td class="text-right">{{ $link->click_number }}</td>
|
|
|
|
<td class="text-right">{{ $link->order }}</td>
|
2021-04-16 01:00:00 +02:00
|
|
|
<td><a href="{{ route('upLink', ['up' => $link->up_link, 'id' => $link->id]) }}" class="text-primary">{{ $link->up_link }}</a></td>
|
2021-07-06 10:52:40 +02:00
|
|
|
<td><a href="{{ route('editLink', $link->id ) }}">Edit</a></td>
|
2021-04-16 01:00:00 +02:00
|
|
|
<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
|