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

36 lines
1.2 KiB
PHP
Raw Normal View History

2024-04-23 14:23:21 +03:00
@extends('layouts.admin_layout')
@section('content')
<div class="container">
<h2>Обр. связь</h2>
<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>
</tr>
</thead>
<tbody>
@foreach($feedbacks as $feedback)
<tr class="">
<td>{{ $feedback->contact }}</a></td>
<td>{{ $feedback->text }}</a></td>
<td>{{ $feedback->status->name }}</a></td>
<td>{{ $feedback->created_at }}</a></td>
<td><a href="{{ route("feedback.edit", $feedback) }}"
class="btn btn-secondary">редактировать</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<br>
<br>
</div>
@endsection