Added place edit function
This commit is contained in:
@@ -26,11 +26,6 @@
|
||||
</div>
|
||||
@endif
|
||||
<div class="table-responsive">
|
||||
@if(session('success'))
|
||||
<div class="alert alert-success border-2 fw-bold mb-4" style="border-color: #0f5132 !important;">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
<table class="table table-hover mb-0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
@@ -61,7 +56,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="d-flex justify-left gap-2">
|
||||
<a href="#" class="btn btn-outline-secondary">Редактировать</a>
|
||||
<a href="{{ route('places.edit', $place->id) }}" class="btn btn-outline-secondary">Редактировать</a>
|
||||
<form action="{{ route('places.delete', $place->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Удалить эту локацию?')">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
@@ -81,7 +76,6 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="d-flex justify-left mt-4">
|
||||
{{ $places->links() }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user