From b7cfa8a8b66015967f2735029d9125343c8b53da Mon Sep 17 00:00:00 2001 From: mina-esn Date: Sat, 22 Aug 2026 10:25:44 +0330 Subject: [PATCH] feat(favorites): make images dynamic in user favorites section --- .../views/account/favorite-list.blade.php | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/resources/views/account/favorite-list.blade.php b/resources/views/account/favorite-list.blade.php index e1cd86e..5312568 100644 --- a/resources/views/account/favorite-list.blade.php +++ b/resources/views/account/favorite-list.blade.php @@ -42,9 +42,15 @@
تور - {{ $favorite->tour->title }} + @if($favorite->tour->coverImage?->file) + {{ $favorite->tour->title }} + @else + {{  $favorite->tour->title }} + @endif
@csrf @@ -88,9 +94,15 @@
پرواز - {{ $favorite->flight->flight_number }} + @if($favorite->flight->coverImage?->file_id) + {{ $favorite->flight->flight_number }} + @else + {{ $favorite->flight->title }} + @endif @csrf