65 lines
1.8 KiB
PHP
65 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
class Home extends BaseController
|
|
{
|
|
public function index(): string
|
|
{
|
|
|
|
// $appConfig = config('Cache');
|
|
// var_dump($appConfig->redis['host']);
|
|
// exit();
|
|
|
|
$siteData =[];
|
|
$out = $this->APIcall('GET','http://10.10.10.35:8805/blogdata/oluameye',[]);
|
|
$siteData['blogdata'] = $out['payload']['blogdata'];
|
|
$siteData['blog_media_url'] = $out['payload']['image_url'];
|
|
$siteData['recent_works'] = $this->recentWorks();
|
|
return view('view_home', $siteData);
|
|
}
|
|
|
|
private function recentWorks(){
|
|
return [
|
|
[
|
|
'title'=>'Ecommerce',
|
|
'category'=>'ecommerce',
|
|
'banner'=>'./assets/images/1.jpg',
|
|
'description'=> 'Ecommerce'
|
|
],
|
|
[
|
|
'title'=>'Mobility',
|
|
'category'=>'mobility',
|
|
'banner'=>'./assets/images/2.jpg',
|
|
'description'=> 'Optimizing Mobility'
|
|
],
|
|
[
|
|
'title'=>'Healthcare',
|
|
'category'=>'healthcare',
|
|
'banner'=>'./assets/images/3.jpg',
|
|
'description'=> 'Personal & Practices'
|
|
],
|
|
[
|
|
'title'=>'Engineering',
|
|
'category'=>'engineering',
|
|
'banner'=>'./assets/images/4.jpg',
|
|
'description'=> 'Robotics & Automation'
|
|
],
|
|
[
|
|
'title'=>'Marketing',
|
|
'category'=>'branding',
|
|
'banner'=>'./assets/images/5.jpg',
|
|
'description'=> 'Marketing'
|
|
],
|
|
[
|
|
'title'=>'Research',
|
|
'category'=>'research',
|
|
'banner'=>'./assets/images/6.jpg',
|
|
'description'=> 'Research'
|
|
],
|
|
|
|
];
|
|
|
|
}
|
|
}
|