feat: add profile image editing and update profile validation

This commit is contained in:
2026-08-22 08:15:01 +03:30
parent aea4d96693
commit b0bf4838ba
12 changed files with 556 additions and 28 deletions
@@ -3,10 +3,10 @@
<?php if($flight->images && $flight->images->count() > 0): ?>
<?php if($flight->images->count() > 1): ?>
<?php $__currentLoopData = $flight->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<img src="<?php echo e(asset($image->path)); ?>" alt="<?php echo e($flight->flight_number); ?>">
<img src="<?php echo e(getFileUrl($image->file_id)); ?>" alt="<?php echo e($flight->flight_number); ?>">
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<img src="<?php echo e(asset($flight->images->first()->path)); ?>" alt="<?php echo e($flight->flight_number); ?>">
<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); ?>">