feat: make images dynamic across pages

This commit is contained in:
2026-08-22 10:55:13 +03:30
parent 27958474a4
commit 5f596c3ea3
12 changed files with 548 additions and 60 deletions
@@ -9,7 +9,7 @@
<img src="<?php echo e(getFileUrl($flight->images->first()->file_id)); ?>" alt="<?php echo e($flight->flight_number); ?>">
<?php endif; ?>
<?php else: ?>
<img src="<?php echo e(asset('assets/img/flight/single-1.jpg')); ?>" alt="<?php echo e($flight->flight_number); ?>">
<img src="<?php echo e(asset('assets/Admin/images/tour/single-2.jpg')); ?>" alt="<?php echo e($flight->flight_number); ?>">
<?php endif; ?>
</div>
<div class="listing-header">
@@ -253,7 +253,11 @@
<?php $__empty_1 = true; $__currentLoopData = $flight->comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<div class="listing-review-item">
<div class="listing-review-author">
<img src="<?php echo e(asset('assets/img/account/DefaultAvatar.jpg')); ?>" alt="user">
<?php if($comment->user?->avatar?->file): ?>
<img src="<?php echo e(getFileUrl($comment->user->avatar->file_id)); ?>" alt="user">
<?php else: ?>
<img src="<?php echo e(asset('assets/img/account/DefaultAvatar.jpg')); ?>" alt="user">
<?php endif; ?>
<div class="listing-review-author-info">
<div>
<h6><?php echo e($comment->guest_name ?? $comment->user?->first_name); ?></h6>