2024-02-07 16:30:49 +03:00
|
|
|
@extends('layouts.admin-layout')
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<h2>Факультеты</h2>
|
|
|
|
<br>
|
|
|
|
<a href="{{ route('faculties.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 14:55:17 +03:00
|
|
|
<th scope="col">URL</th>
|
2024-02-07 16:30:49 +03:00
|
|
|
<th scope="col">Учебное заведение</th>
|
|
|
|
<th scope="col">действия</th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($faculties as $faculty)
|
|
|
|
<tr class="">
|
|
|
|
<th scope="row">{{ $faculty->position }}</th>
|
2024-02-08 16:01:40 +03:00
|
|
|
<td><a href="{{ route('faculties.show', $faculty) }}">{{ $faculty->name }}</a></td>
|
|
|
|
<td>{{ Str::words($faculty->description, 10, '...') }}</td>
|
2024-02-12 14:55:17 +03:00
|
|
|
<td>{{ Str::words($faculty->slug, 10, '...') }}</td>
|
2024-02-07 16:30:49 +03:00
|
|
|
<td>{{ $faculty->educationalInstitution->name }}</td>
|
|
|
|
<td><a href="{{ route("faculties.edit", $faculty) }}"
|
|
|
|
class="btn btn-secondary">редактировать</a>
|
|
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
|
|
|
href="{{ route('faculties.destroy', $faculty) }}"
|
|
|
|
class="btn btn-danger">
|
|
|
|
удалить
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endsection
|