/fonts
, либо ../fonts
@foreach($reviews as $review)
<li>
<h6 class="comment-name">{{ $review->user->name }}</h6>
<div class="content">
<p>{{ $review->content }}</p>
<div class="comment-content-right">
<a href="#" onclick="openReplyModal({{ $review->id }})">Ответить</a>
</div>
</div>
</li>
@endforeach
<div id="modal-reply">
<form>
<input type="hidden" name="review_id" id="review-id-field">
<div class="modal-body">
<textarea name="content"></textarea>
</div>
</form>
</div>
function openReplyModal(reviewId) {
document.getElementById('review-id-field').value = reviewId;
// Bootstrap 4
$('#modal-reply').modal('show');
// Bootstrap 5
const modal = new bootstrap.Modal(document.getElementById('modal-reply'), {});
modal.show();
}
\Auth::user()
// или
$request->user()
<input type=hidden name=user_id value={{ ID редактируемого юзера }}>
<!-- список товаров -->
<input type=checkbox name="products[]" value={{ ID товара }}>
<input type=checkbox name="products[]" value={{ ID товара }}>
<input type=checkbox name="products[]" value={{ ID товара }}>
$userId = $request->get('user_id');
$user = User::findOrFail($userId);
$products = $request->get('products', []);
$user->saveProducts($products);
/images
/content
/gallery
/1.jpg
/2.jpg
/3.jpg
/slider
/1.jpg
/2.jpg
/3.jpg
<div class="slider">
{% for i in 1..3 %}
<div class="slide">
<img src="/images/content/slider/{{ i }}.jpg">
</div>
{% endfor %}
</div>
tabNavs[j].classList.add("active");
tabPanes[j].classList.add("active");
$table->integer('year')->nullable()->default(null)->change();
Film::whereYear('Не указано')->update(['year' => null])