LaravelTest
29 строк · 769.0 Байт
1@extends('layouts.main')
2
3@section('content')
4<div class="card-header d-flex">
5<div class="m-3">
6<a href="{{ route('categories.edit', $category->id) }}" class="btn btn-primary">Редактировать</a>
7</div>
8<div class="mt-3">
9<form action="{{route('categories.destroy', $category->id)}} " method="POST">
10@csrf
11@method('DELETE')
12<input type="submit" class="btn btn-danger" value="Удалить">
13</form>
14</div>
15</div>
16
17<table id="example" class="table table-striped table-bordered" style="width:100%">
18
19<tbody>
20<tr>
21<td>ID</td>
22<td>{{ $category->id }}</td>
23</tr>
24<tr>
25<td>Наименование</td>
26<td>{{$category->title}}</td>
27</tr>
28</tbody>
29@endsection