Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
f839aeb4
Commit
f839aeb4
authored
5 years ago
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front agenda
parent
764b6717
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
3 deletions
+83
-3
app/Http/Controllers/Webprofile/Front/AgendaController.php
+80
-0
resources/views/webprofile/front/jollyany/archive.blade.php
+1
-1
resources/views/webprofile/front/jollyany/en/archive.blade.php
+1
-1
routes/webprofile/front.php
+1
-1
No files found.
app/Http/Controllers/Webprofile/Front/AgendaController.php
0 → 100644
View file @
f839aeb4
<?php
namespace
App\Http\Controllers\Webprofile\Front
;
use
App\Http\Controllers\Controller
;
use
App\Models\Webprofile\Design
;
use
App\Models\Webprofile\Categories
;
use
App\Models\Webprofile\Information
;
use
App\Models\Webprofile\Menu
;
use
App\Models\Webprofile\Posts
;
use
Session
;
class
AgendaController
extends
Controller
{
public
function
index
()
{
$setting
=
webprofilesetting
();
if
(
!
Session
::
has
(
'selected_language'
))
{
session
([
'selected_language'
=>
'id'
]);
}
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
}
public
function
getDataId
(
$setting
)
{
$setting
=
webprofilesetting
();
$data
=
Information
::
where
(
'info_status'
,
'1'
)
->
orderBy
(
'event_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
];
return
$data
;
}
public
function
getDataEn
(
$setting
)
{
$setting
=
webprofilesetting
();
$data
=
Information
::
where
(
'info_status'
,
'1'
)
->
orderBy
(
'event_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
with
([
'rEn'
])
->
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
];
return
$data
;
}
}
This diff is collapsed.
Click to expand it.
resources/views/webprofile/front/jollyany/archive.blade.php
View file @
f839aeb4
...
...
@@ -53,7 +53,7 @@
<div class="
news
-
text
">
<strong> {!! InseoHelper::tglbulanindo2(
$value->event_date
) !!}</strong> —
{!! strip_tags(substr(html_entity_decode(
$value->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 250)) !!}
<br><a target="
_blank
" href="
{
!!
url
(
'info/'
.
$value
->
slug
)
!!
}
">
<br><a
class="
pull
-
right
" style="
padding
-
right
:
20
px
;
"
target="
_blank
" href="
{
!!
url
(
'info/'
.
$value
->
slug
)
!!
}
">
Selengkapnya »»</a>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/webprofile/front/jollyany/en/archive.blade.php
View file @
f839aeb4
...
...
@@ -53,7 +53,7 @@
<div class="
news
-
text
">
<strong> {!! InseoHelper::tglbulanindo2(
$value->event_date
) !!}</strong> —
{!! strip_tags(substr(html_entity_decode(
$value->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 250)) !!}
<br><a target="
_blank
" href="
{
!!
url
(
'info/'
.
$value
->
slug
)
!!
}
">
<br><a
class="
pull
-
right
" style="
padding
-
right
:
20
px
;
"
target="
_blank
" href="
{
!!
url
(
'info/'
.
$value
->
slug
)
!!
}
">
Read more »»</a>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
routes/webprofile/front.php
View file @
f839aeb4
...
...
@@ -6,7 +6,7 @@ Route::group(['namespace' => 'Webprofile\Front'], function () {
Route
::
get
(
'archive'
,
'ArchiveController@index'
)
->
name
(
'archive'
);
Route
::
get
(
'category/{id}'
,
'CategoryController@index'
)
->
name
(
'category'
);
Route
::
get
(
'information/{id}'
,
'InformationController@index'
)
->
name
(
'infomation'
);
Route
::
get
(
'agenda'
,
'
FrontController@agenda
'
)
->
name
(
'agenda'
);
Route
::
get
(
'agenda'
,
'
AgendaController@index
'
)
->
name
(
'agenda'
);
Route
::
get
(
'error'
,
'FrontController@error'
)
->
name
(
'error'
);
Route
::
get
(
'download'
,
'FrontController@download'
)
->
name
(
'download'
);
Route
::
get
(
'downloadlink/{data}'
,
'FrontController@downloadFile'
)
->
name
(
'downloadFile'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment