43 lines
1.8 KiB
PHP
43 lines
1.8 KiB
PHP
@extends('layouts.admin-layout')
|
|
@section('content')
|
|
<div class="container">
|
|
<h2>Учебные заведения</h2>
|
|
<br>
|
|
<a href="{{ route('educational-institutions.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>
|
|
<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>
|
|
<td>{{ $educationalInstitution->name }}</td>
|
|
<td>{{ $educationalInstitution->description }}</td>
|
|
<td><a href="{{ route("educational-institutions.edit", $educationalInstitution) }}"
|
|
class="btn btn-secondary">редактировать</a>
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
|
href="{{ route('educational-institutions.destroy', $educationalInstitution) }}"
|
|
class="btn btn-danger">
|
|
удалить
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<br>
|
|
</div>
|
|
|
|
@endsection
|