Untitled
unknown
plain_text
2 years ago
1.3 kB
7
Indexable
@extends('layouts.app')
@section('content')
<h1>{{ $product->title }}</h1>
<p>{{ $product->description }}</p>
<!-- Display comments for this product -->
@include('comments._comment_form')
@foreach ($product->comments as $comment)
@include('comments._comment', ['comment' => $comment])
@endforeach
@endsection
<div class="card mb-3">
<div class="card-body">
<h5 class="card-title">{{ $comment->name }}</h5>
<p class="card-text">{{ $comment->text }}</p>
<!-- Add additional comment information here -->
</div>
</div>
@extends('layouts.app')
@section('content')
<h1>Admin Panel - Comments</h1>
<div class="row">
@foreach ($comments as $comment)
@include('comments._comment', ['comment' => $comment])
<!-- Add approval form for each comment -->
<form action="{{ route('admin.comments.approve', $comment) }}" method="POST">
@csrf
@method('PUT')
<button type="submit" class="btn btn-primary">Approve</button>
</form>
@endforeach
</div>
@endsection
<!-- This blade file can be empty or you can add specific content for approval form -->
Editor is loading...
Leave a Comment