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

42 lines
1.7 KiB
PHP
Raw Normal View History

2024-02-16 10:43:55 +03:00
@extends('layouts.admin_layout')
@section('content')
<div class="container">
2024-02-17 12:31:22 +03:00
<h2>Предметы</h2>
2024-02-16 10:43:55 +03:00
<br>
2024-02-17 11:30:32 +03:00
<a href="{{ route('subjects.create') }}" class="btn btn-primary">Создать предмет</a>
2024-02-16 10:43:55 +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>
<th scope="col">URL</th>
<th scope="col">действия</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
2024-02-17 11:30:32 +03:00
@foreach($subjects as $subject)
2024-02-16 10:43:55 +03:00
<tr class="">
2024-02-17 11:30:32 +03:00
<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>
2024-02-16 10:43:55 +03:00
<td>
2024-02-17 11:30:32 +03:00
<a href="{{ route("subjects.edit", $subject) }}"
2024-02-16 10:43:55 +03:00
class="btn btn-secondary">редактировать</a>
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
2024-02-17 11:30:32 +03:00
href="{{ route('subjects.destroy', $subject) }}"
2024-02-16 10:43:55 +03:00
class="btn btn-danger">удалить</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<br>
<br>
</div>
@endsection