Updated project for admin panel

This commit is contained in:
2022-02-15 22:35:59 +01:00
parent 984d2eeae6
commit 282e5ccc46
13 changed files with 371 additions and 14 deletions

View File

@@ -1,11 +1,11 @@
<div class="projects">
<header><h1>Projekty</h1></header>
<a href="{{ route('admin.category.create') }}">
<a href="{{ route('admin.project.create') }}">
<button>Utwórz nowy projekt</button>
</a>
<ul class="project_items">
@foreach ($projects as $project)
<li class="project_element">{{ $project->title }} | <a href="{{ route('admin.category.edit', ['category' => $project->id]) }}">Edytuj</a></li>
<li class="project_element">{{ $project->title }} | <a href="{{ route('admin.project.edit', compact('project')) }}">Edytuj</a></li>
@endforeach
<ul>
</div>