40 lines
1.7 KiB
PHP
40 lines
1.7 KiB
PHP
|
@extends('layouts.admin_layout')
|
||
|
@section('content')
|
||
|
<div class="container">
|
||
|
<h2>Уровни образования</h2>
|
||
|
<br>
|
||
|
<a href="{{ route('education_levels.create') }}" class="btn btn-primary">Создать Уровень образования</a>
|
||
|
<br>
|
||
|
<br>
|
||
|
<table class="table">
|
||
|
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
|
||
|
<tr>
|
||
|
<th scope="col">Название</th>
|
||
|
<th scope="col">Описание</th>
|
||
|
<th scope="col">URL</th>
|
||
|
<th scope="col">действия</th>
|
||
|
<th scope="col"></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach($levels as $level)
|
||
|
<tr class="">
|
||
|
<td><a href="{{ route('education_levels.show', $level) }}">{{ $level->name }}</a></td>
|
||
|
<td>{{ Str::words($level->description, 10, '...') }}</td>
|
||
|
<td>{{ $level->slug }}</td>
|
||
|
<td>
|
||
|
<a href="{{ route("education_levels.edit", $level) }}"
|
||
|
class="btn btn-secondary">редактировать</a>
|
||
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
||
|
href="{{ route('education_levels.destroy', $level) }}"
|
||
|
class="btn btn-danger">удалить</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<br>
|
||
|
<br>
|
||
|
</div>
|
||
|
@endsection
|