applicant-site/resources/views/admin/documents/index.blade.php

36 lines
1.5 KiB
PHP
Raw Normal View History

@extends('layouts.admin_layout')
2024-01-26 11:15:11 +03:00
@section('content')
<div class="container">
<h2>Документы</h2>
2024-01-26 11:15:11 +03:00
<br>
<a href="{{ route('documents.create') }}" class="btn btn-primary">Добавить документ</a>
2024-01-26 11:15:11 +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>
2024-01-26 11:15:11 +03:00
<th scope="col">действия</th>
</tr>
</thead>
<tbody>
@foreach($documents as $document)
2024-01-26 11:15:11 +03:00
<tr>
<td>{{ $document->admission->name }}</td>
<td><a href="{{ route('documents.show', $document) }}">{{ $document->name }}</a></td>
<td><a href="{{ route("documents.edit", $document) }}" class="btn btn-secondary">редактировать</a>
2024-01-26 11:15:11 +03:00
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
href="{{ route('documents.destroy', $document) }}" class="btn btn-danger">
2024-01-26 11:15:11 +03:00
удалить
</a>
</td>
@endforeach
</tbody>
</table>
<br>
<br>
</div>
@endsection