Big update for category controller - for admin panel

This commit is contained in:
2022-02-15 15:26:10 +01:00
parent 982438a26e
commit 38e5a8f485
19 changed files with 363 additions and 14 deletions

View File

@@ -0,0 +1,14 @@
@extends('layout.app')
@section('title', 'Login')
@section('main')
<form method="POST" action="{{ route('admin.category.destroy', compact('category')) }}">
@method('DELETE')
@csrf
Czy jesteś pewien, że chcesz usunąć kategorię "{{ $category->name .' - '. $category->slug }}"?
<input type="submit" value="Tak, usuń!">
</form>
<div>
<a href="{{ route('admin.category.edit', compact('category')) }}"><< Cofnij</a>
</div>
@endsection