changed route name and table data to show correct info
This commit is contained in:
parent
578dd8d522
commit
b46f8f7b0a
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
@section("content")
|
@section("content")
|
||||||
<h1>Rediger Link:</h1>
|
<h1>Rediger Link:</h1>
|
||||||
<form method="post" action="{{ route("external-links.update", ['name' => $link->name]) }}">
|
<form method="post" action="{{ route("external-links.edit", ['external_link' => $link]) }}">
|
||||||
@csrf
|
@csrf
|
||||||
<label for="title">Titel:</label>
|
<label for="title">Titel:</label>
|
||||||
<input type="text" name="title" id="title" required>
|
<input type="text" name="title" id="title" required>
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
@foreach($links as $link)
|
@foreach($links as $link)
|
||||||
<tr>
|
<tr>
|
||||||
<th>{Titel}</th>
|
<th>{{$link->name}}</th>
|
||||||
<th>{Link}</th>
|
<th><a href="{{$link->link}}">{{$link->link}}</th>
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
|
||||||
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
<td><a href=""><img class="w-100" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue