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