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

46 lines
2.1 KiB
PHP
Raw Normal View History

2024-02-26 11:34:33 +03:00
@extends('layouts.admin_layout')
@section('content')
<div class="container">
<h2>Срок обучения</h2>
<br>
<a href="{{ route('periods.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>
<th scope="col">действия</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach($periods as $period)
<tr class="">
<td>{{ $period->position }}</td>
<td>{{ Str::words($period->description, 10, '...') }}</td>
<td><a href="{{ route('education_forms.show', $period->educationForm) }}">{{ $period->educationForm->name }}</a></td>
<td><a href="{{ route('directions.show', $period->direction) }}">{{ $period->direction->name }}</a></td>
<td>{{ $period->period }}</td>
<td>
<a href="{{ route("periods.show", $period) }}"
class="btn btn-info">посмотреть</a>
<a href="{{ route("periods.edit", $period) }}"
class="btn btn-secondary">редактировать</a>
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('periods.destroy', $period) }}"
class="btn btn-danger">удалить</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<br>
<br>
</div>
@endsection