947d2425d9
git commit "fix: city selection, comment user display, and back button bug"
106 lines
3.4 KiB
PHP
106 lines
3.4 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="theme-page-section theme-page-section-lg">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
|
|
|
@include('account.layout.app')
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="account-content">
|
|
|
|
<h2 class="account-title">
|
|
علاقهمندیهای من
|
|
</h2>
|
|
|
|
@if($favorites->count())
|
|
|
|
<div class="favorite-list">
|
|
|
|
@foreach($favorites as $favorite)
|
|
|
|
<div class="favorite-card">
|
|
|
|
<div class="favorite-info">
|
|
|
|
@if($favorite->favoritable_type == 'App\Models\Tour')
|
|
|
|
<h3>
|
|
{{ $favorite->favoritable?->title ?? 'مورد حذف شده' }}
|
|
</h3>
|
|
<h3>
|
|
{{ $favorite->favoritable?->summary ?? 'مورد حذف شده' }}
|
|
</h3>
|
|
|
|
<p>
|
|
تور
|
|
</p>
|
|
|
|
@elseif($favorite->favoritable_type == 'App\Models\Flight')
|
|
|
|
<h3>
|
|
{{ $favorite->favoritable->airline }}
|
|
</h3>
|
|
<h3>
|
|
{{ $favorite->favoritable->flight_number }}
|
|
</h3>
|
|
|
|
<p>
|
|
پرواز
|
|
</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<form action="{{route('users.favorite.destroy',$favorite)}}" method="POST">
|
|
|
|
@csrf
|
|
@method('DELETE')
|
|
|
|
<button class="remove-favorite">
|
|
|
|
<i class="fa fa-trash"></i>
|
|
حذف
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="empty-favorite">
|
|
|
|
<i class="fa fa-heart"></i>
|
|
|
|
<p>
|
|
هنوز چیزی به علاقهمندیها اضافه نکردهاید.
|
|
</p>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|