2024-02-12 15:02:31 +03:00
|
|
|
@extends('layouts.admin_layout')
|
2024-02-07 10:18:46 +03:00
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<h2>Учебные заведения</h2>
|
|
|
|
<br>
|
2024-02-12 14:55:17 +03:00
|
|
|
<a href="{{ route('educational_institutions.create') }}" class="btn btn-primary">Создать учебное заведение</a>
|
2024-02-07 10:18:46 +03:00
|
|
|
<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 14:55:17 +03:00
|
|
|
<th scope="col">URL</th>
|
2024-02-07 10:18:46 +03:00
|
|
|
<th scope="col">действия</th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="accordion" id="accordionExample">
|
|
|
|
@foreach($educationalInstitutions as $educationalInstitution)
|
|
|
|
<tr class="">
|
|
|
|
<th scope="row">{{ $educationalInstitution->position }}</th>
|
2024-02-12 14:55:17 +03:00
|
|
|
<td>
|
|
|
|
<a href="{{ route('educational_institutions.show', $educationalInstitution) }}">{{ $educationalInstitution->name }}</a>
|
|
|
|
</td>
|
2024-02-07 19:27:25 +03:00
|
|
|
<td>{{ Str::words($educationalInstitution->description, 10, '...') }}</td>
|
2024-02-12 14:55:17 +03:00
|
|
|
<th scope="row">{{ $educationalInstitution->slug }}</th>
|
|
|
|
<td class="col-3"><a href="{{ route("educational_institutions.edit", $educationalInstitution) }}"
|
|
|
|
class="btn btn-secondary">редактировать</a>
|
2024-02-07 10:18:46 +03:00
|
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
2024-02-12 14:55:17 +03:00
|
|
|
href="{{ route('educational_institutions.destroy', $educationalInstitution) }}"
|
2024-02-07 10:18:46 +03:00
|
|
|
class="btn btn-danger">
|
|
|
|
удалить
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
@endsection
|