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

60 lines
2.7 KiB
PHP
Raw Normal View History

2024-02-12 15:02:31 +03:00
@extends('layouts.admin_layout')
2024-02-10 11:23:38 +03:00
@section('content')
<div class="container">
<h2>Направления</h2>
<br>
2024-03-14 16:12:44 +03:00
<div class="d-grid gap-2 d-md-flex justify-content-between">
<a href="{{ route('directions.create') }}" class="btn btn-primary">Создать Направление</a>
<a href="{{ route('export_excel') }}" class="btn btn-info">Импорт xls</a>
</div>
2024-02-10 11:23:38 +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>
2024-02-10 11:23:38 +03:00
<th scope="col">Кафедра</th>
2024-02-14 16:16:44 +03:00
<th scope="col">Уровень образования</th>
2024-02-10 11:23:38 +03:00
<th scope="col">действия</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach($directions as $direction)
<tr class="">
<th scope="row">{{ $direction->position }}</th>
<td><a href="{{ route('directions.show', $direction) }}">{{ $direction->name }}</a>
<br>
<p @style(['font-size: 0.7em', 'color: grey'])>
@foreach($direction->directionProfiles as $directionProfile)
2024-03-14 16:12:44 +03:00
{{ $directionProfile->name }} <br>
@endforeach
</p>
</td>
2024-02-10 11:23:38 +03:00
<td>{{ Str::words($direction->description, 10, '...') }}</td>
<td>{{ $direction->slug }}</td>
2024-02-10 11:23:38 +03:00
<td>{{ $direction->department->name }}</td>
2024-02-14 16:16:44 +03:00
<td>{{ $direction->educationLevel->name }}</td>
2024-02-10 11:23:38 +03:00
<td>
<a href="{{ route("directions.edit", $direction) }}"
class="btn btn-secondary">редактировать</a>
2024-03-04 09:53:33 +03:00
<a rel="nofollow" data-method="post"
href="{{ route('directions.duplication', $direction->id) }}"
class="btn btn-warning">Дублировать</a>
2024-02-10 11:23:38 +03:00
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('directions.destroy', $direction) }}"
class="btn btn-danger">удалить</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<br>
<br>
</div>
@endsection