diff --git a/app/Http/Controllers/Account/FavoriteController.php b/app/Http/Controllers/Account/FavoriteController.php index 35a99cf..5356bf4 100644 --- a/app/Http/Controllers/Account/FavoriteController.php +++ b/app/Http/Controllers/Account/FavoriteController.php @@ -25,7 +25,7 @@ class FavoriteController extends Controller 'flight.airport.city', ]) ->orderByDesc('created_at') - ->get(); + ->paginate(3); return view('account.favorite-list', compact('title','favorites')); } diff --git a/resources/views/account/comments.blade.php b/resources/views/account/comments.blade.php index 43a11a1..f713a9d 100644 --- a/resources/views/account/comments.blade.php +++ b/resources/views/account/comments.blade.php @@ -1,5 +1,7 @@ @extends('account.layouts.app') +@section('title' , 'کامنت های من') + @section('account-content')
diff --git a/resources/views/account/edit-profile.blade.php b/resources/views/account/edit-profile.blade.php index b1834e5..8649f1f 100644 --- a/resources/views/account/edit-profile.blade.php +++ b/resources/views/account/edit-profile.blade.php @@ -1,5 +1,7 @@ @extends('account.layouts.app') +@section('title' , 'ویرایش پروفایل') + @section('account-content')
diff --git a/resources/views/account/favorite-list.blade.php b/resources/views/account/favorite-list.blade.php index a9fe42f..e1cd86e 100644 --- a/resources/views/account/favorite-list.blade.php +++ b/resources/views/account/favorite-list.blade.php @@ -1,5 +1,7 @@ @extends('account.layouts.app') +@section('title' , 'علاقه مندی های من') + @section('account-content') - @if (method_exists($favorites, 'hasPages') && $favorites->hasPages()) + @if ($favorites->hasPages())
{{ $favorites->links() }}
@endif -