resim 1
resim 2
web.php
Route::get('profile', ['as' => 'xxxx.pages.home.profile', 'uses' => 'xxxxProfileController@index']);
Route::get('profile/activity', ['as' => 'xxxx.pages.home.profile.activity', 'uses' => 'xxxxProfileController@activity']);
Route:
ost('profile/details/update', ['as' => 'xxxx.pages.home.profile.update.details', 'uses' => 'xxxxProfileController@updateDetails']);Route:
ost('profile/password/update', ['as' => 'xxxx.pages.home.profile.update.password', 'uses' => 'xxxxProfileController@updatePassword']);Route:
ost('profile/avatar/update', ['as' => 'xxxx.pages.home.profile.update.avatar', 'uses' => 'xxxxProfileController@updateAvatar']);//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ProfileController php
<?php
namespace VanguardLTEHttpControllersWebFrontendxxxx;
use VanguardLTEHttpControllersController;
use VanguardLTEModelSliderModel;
class ProfileController extends Controller
{
public function index()
{
$data = [];
$title = 'xxxxxxxxxx';
$description = 'Description';
$menuDisplay = true;
$slider = [];
$query = SliderModel::where(['status' => 1])->select('image', 'link')->get();
if ($query)
{
$slider = $query;
}
$data = [
'title' => $title,
'description' => $description,
'slider' => $slider,
'menuDisplay' => $menuDisplay
];
return view('xxxx.pages.home.profile', $data);
}
}
Profile.blade.php
@extends('xxxx.layouts.app')
@section('page-title', $title)
@section('description', $description)
@section('styles')
@endsection
@section('content')
<div class="home_4cdc7">
<div class="home-container_b2d9b container_01a5e">
@include('xxxx.pages.home.slider')