my-projects-website/app/application/resources/views/admin/projects/feedbacks/index.blade.php

38 lines
1.7 KiB
PHP

@section('meta_title', __('admin-sections.Feedback'))
@section('h1', __('admin-sections.Feedback'))
<x-admin.layout>
<div class="card border-0 shadow mb-4">
<div class="card-body">
<div class="table-responsive">
<table class="table table-centered table-nowrap mb-0 rounded">
<thead class="thead-light">
<tr>
<th class="border-0">{{ __('admin-sections.Project') }}</th>
<th class="border-0" style="width: 100%;">{{ __('site.attributes.message') }}</th>
<th class="border-0">{{ __('site.attributes.name') }}</th>
<th class="border-0">{{ __('site.attributes.email') }}</th>
</tr>
</thead>
<tbody>
@foreach($feedbacks as $feedback)
<tr>
<td>{{ $feedback->project->name }}</td>
<td>{!! $feedback->message !!}</td>
<td>
<p>{{ $feedback->name }}</p>
<p><strong>IP:</strong> {{ $feedback->ip }}</p>
<p><strong>UserAgent:</strong> {{ $feedback->user_agent }}</p>
</td>
<td>{{ $feedback->email }}</td>
</tr>
@endforeach
</tbody>
</table>
<div class="card-footer border-0">
{{ $feedbacks->links() }}
</div>
</div>
</div>
</div>
</x-admin.layout>