Created
August 6, 2018 11:30
-
-
Save mitrallex/c987c3637acb1293309a88c17641723d to your computer and use it in GitHub Desktop.
laravel-google-recaptcha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('content') | |
<div class="row justify-content-center"> | |
<div class="col-10"> | |
<div class="card"> | |
<div class="card-header"> | |
Feedbacks list | |
</div> | |
<div class="card-body"> | |
<table class="table table-striped table-hover"> | |
<thead> | |
<tr> | |
<th scope="col">#</th> | |
<th scope="col">Name</th> | |
<th scope="col">Email</th> | |
<th scope="col">Message</th> | |
<th scope="col">Action</th> | |
</tr> | |
</thead> | |
<tbody> | |
@forelse($feedbacks as $feedback) | |
<tr> | |
<th scope="row">{{ $feedback->id }}</th> | |
<td>{{ $feedback->name }}</td> | |
<td>{{ $feedback->email }}</td> | |
<td>{{ $feedback->message }}</td> | |
<td> | |
<a href="{{ action('FeedbackController@destroy', $feedback->id) }}" class="btn btn-outline-danger btn-sm"> | |
Delete | |
</a> | |
</td> | |
</tr> | |
@empty | |
<tr class="table-warning"> | |
<td class="text-center" colspan="5"> | |
There are no feedbacks yet. | |
</td> | |
</tr> | |
@endforelse | |
</tbody> | |
</table> | |
{{ $feedbacks->links() }} | |
</div> | |
</div> | |
</div> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment