2024-02-10 11:23:38 +03:00
|
|
|
@extends('layouts.admin-layout')
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<h2>Направления</h2>
|
|
|
|
<br>
|
|
|
|
<a href="{{ route('directions.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">Описание</th>
|
2024-02-12 10:58:48 +03:00
|
|
|
<th scope="col">URL</th>
|
2024-02-10 11:23:38 +03:00
|
|
|
<th scope="col">Кафедра</th>
|
|
|
|
<th scope="col">действия</th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($directions as $direction)
|
|
|
|
<tr class="">
|
|
|
|
<th scope="row">{{ $direction->position }}</th>
|
|
|
|
<td><a href="{{ route('directions.show', $direction) }}">{{ $direction->name }}</a></td>
|
|
|
|
<td>{{ Str::words($direction->description, 10, '...') }}</td>
|
2024-02-12 10:58:48 +03:00
|
|
|
<td>{{ $direction->slug }}</td>
|
2024-02-10 11:23:38 +03:00
|
|
|
<td>{{ $direction->department->name }}</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route("directions.edit", $direction) }}"
|
|
|
|
class="btn btn-secondary">редактировать</a>
|
|
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
|
|
|
href="{{ route('directions.destroy', $direction) }}"
|
|
|
|
class="btn btn-danger">удалить</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
@endsection
|