refactor: manage page titles with blade sections
This commit is contained in:
@@ -25,7 +25,7 @@ class FavoriteController extends Controller
|
|||||||
'flight.airport.city',
|
'flight.airport.city',
|
||||||
])
|
])
|
||||||
->orderByDesc('created_at')
|
->orderByDesc('created_at')
|
||||||
->get();
|
->paginate(3);
|
||||||
return view('account.favorite-list', compact('title','favorites'));
|
return view('account.favorite-list', compact('title','favorites'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
@extends('account.layouts.app')
|
@extends('account.layouts.app')
|
||||||
|
|
||||||
|
@section('title' , 'کامنت های من')
|
||||||
|
|
||||||
@section('account-content')
|
@section('account-content')
|
||||||
<div class="user-profile-wrapper">
|
<div class="user-profile-wrapper">
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
@extends('account.layouts.app')
|
@extends('account.layouts.app')
|
||||||
|
|
||||||
|
@section('title' , 'ویرایش پروفایل')
|
||||||
|
|
||||||
@section('account-content')
|
@section('account-content')
|
||||||
<div class="user-profile-wrapper">
|
<div class="user-profile-wrapper">
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
@extends('account.layouts.app')
|
@extends('account.layouts.app')
|
||||||
|
|
||||||
|
@section('title' , 'علاقه مندی های من')
|
||||||
|
|
||||||
@section('account-content')
|
@section('account-content')
|
||||||
<div class="user-profile-wrapper">
|
<div class="user-profile-wrapper">
|
||||||
|
|
||||||
@@ -144,14 +146,13 @@
|
|||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (method_exists($favorites, 'hasPages') && $favorites->hasPages())
|
@if ($favorites->hasPages())
|
||||||
<div class="pagination-area my-4">
|
<div class="pagination-area my-4">
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
{{ $favorites->links() }}
|
{{ $favorites->links() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user