applicant-site/resources/views/admin/catalog/direction/subject/index.blade.php

42 lines
1.7 KiB
PHP

@extends('layouts.admin_layout')
@section('content')
<div class="container">
<h2>Тип Экзамена</h2>
<br>
<a href="{{ route('subjects.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">URL</th>
<th scope="col">действия</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach($subjects as $subject)
<tr class="">
<td>{{ $subject->position }}</td>
<td><a href="{{ route('subjects.show', $subject) }}">{{ $subject->name }}</a></td>
<td>{{ Str::words($subject->description, 10, '...') }}</td>
<td>{{ $subject->slug }}</td>
<td>
<a href="{{ route("subjects.edit", $subject) }}"
class="btn btn-secondary">редактировать</a>
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('subjects.destroy', $subject) }}"
class="btn btn-danger">удалить</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<br>
<br>
</div>
@endsection