git add .
git commit "fix: city selection, comment user display, and back button bug"
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
|
||||
<h4>
|
||||
</h4>
|
||||
</h4>
|
||||
|
||||
<span>
|
||||
{{Auth::user()->email}}
|
||||
|
||||
@@ -34,7 +34,13 @@
|
||||
<div class="comment-header">
|
||||
<div>
|
||||
<h4>
|
||||
{{ $comment->tour->title ?? 'مورد حذف شده' }}
|
||||
@if($comment->tour_id)
|
||||
{{ $comment->tour->title ?? 'مورد حذف شده' }}
|
||||
@elseif($comment->flight_id)
|
||||
{{ $comment->flight->airline ?? 'مورد حذف شده' }}
|
||||
@else
|
||||
مورد حذف شده
|
||||
@endif
|
||||
</h4>
|
||||
<span>
|
||||
{{ $comment->created_at->format('Y/m/d') }}
|
||||
|
||||
@@ -35,7 +35,11 @@
|
||||
@if($favorite->favoritable_type == 'App\Models\Tour')
|
||||
|
||||
<h3>
|
||||
{{ $favorite->favoritable?->title ?? 'مورد حذف شده' }} </h3>
|
||||
{{ $favorite->favoritable?->title ?? 'مورد حذف شده' }}
|
||||
</h3>
|
||||
<h3>
|
||||
{{ $favorite->favoritable?->summary ?? 'مورد حذف شده' }}
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
تور
|
||||
@@ -44,7 +48,10 @@
|
||||
@elseif($favorite->favoritable_type == 'App\Models\Flight')
|
||||
|
||||
<h3>
|
||||
{{ $favorite->favoritable->name }}
|
||||
{{ $favorite->favoritable->airline }}
|
||||
</h3>
|
||||
<h3>
|
||||
{{ $favorite->favoritable->flight_number }}
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -632,9 +632,8 @@
|
||||
.append('<option value="">در حال دریافت شهرها...</option>');
|
||||
|
||||
$.ajax({
|
||||
url: "{{ route('users.cities.province', ':province') }}"
|
||||
url: "{{ route('cities.province', ':province') }}"
|
||||
.replace(':province', provinceId),
|
||||
|
||||
type: 'GET',
|
||||
|
||||
success: function (cities) {
|
||||
@@ -660,13 +659,9 @@
|
||||
},
|
||||
|
||||
error: function () {
|
||||
|
||||
citySelect.empty();
|
||||
|
||||
citySelect.append(
|
||||
'<option value="">خطا در دریافت شهرها</option>'
|
||||
);
|
||||
|
||||
citySelect.append('<option value="">خطا در دریافت شهرها</option>');
|
||||
citySelect.prop('disabled', false);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user