diff --git a/resources/views/account/favorites.blade.php b/resources/views/account/favorites.blade.php index 9d6f483..113e3cf 100644 --- a/resources/views/account/favorites.blade.php +++ b/resources/views/account/favorites.blade.php @@ -1,3 +1,53 @@ -
- -
+@extends('layouts.app') + +@section('content') +
+

علاقه‌مندی‌های من

+ + @if($favorites->count()) +
+ @foreach($favorites as $favorite) + @php $item = $favorite->favoritable; @endphp + +
+
+
+ @if($favorite->favoritable_type === \App\Models\Tour::class) +
{{ $item?->title ?? 'تور' }}
+

+ {{ $item?->summary ?? '' }} +

+ @elseif($favorite->favoritable_type === \App\Models\Flight::class) +
+ {{ $item?->origin ?? '-' }} → {{ $item?->destination ?? '-' }} +
+ @else +
مورد ناشناخته
+ @endif +
+ + +
+
+ @endforeach +
+ +
+ {{ $favorites->links() }} +
+ @else +
+ هنوز هیچ موردی به علاقه‌مندی‌ها اضافه نکرده‌اید. +
+ @endif +
+@endsection