Commit 46465ada by Aan Choesni Herlingga

show front index with translation

parent 86720494
......@@ -28,7 +28,7 @@ class HomeController extends Controller
public function changeLocale(Request $request)
{
$language = $request->language ?? 'en';
$language = $request->language == 'en' ? 'en' : 'id';
session(['selected_language' => $language]);
return redirect()->back();
......
<?php
namespace App\Http\Controllers\Webprofile\Front;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Gallery;
use App\Models\Webprofile\Information;
use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts;
use App\Models\Webprofile\Slider;
use Session;
class FrontController 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'] . '.index', $data);
} else if (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting);
return view('webprofile.front.' . $setting['theme'] . '.en.index', $data);
}
}
private function getDataId($setting)
{
$posts = Posts::where('post_status', '1')->orderby('post_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();
$info = Information::where('info_status', '1')->where('event_date', '>=', Date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$quote = Design::where('name_design', 'quote')->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();
$body = Design::where('name_design', 'body')->get();
$data = [
'posts' => $posts,
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
'quote' => $quote,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'body' => $body,
'setting' => $setting,
];
return $data;
}
private function getDataEn($setting)
{
$posts = Posts::with(['rEn'])->where('post_status', '1')->orderby('post_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();
$info = Information::with(['rEn'])->where('info_status', '1')->where('event_date', '>=', Date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::with(['rEn'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$quote = Design::where('name_design', 'quote')->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();
$body = Design::where('name_design', 'body')->get();
$data = [
'posts' => $posts,
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
'quote' => $quote,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'body' => $body,
'setting' => $setting,
];
return $data;
}
}
......@@ -58,6 +58,10 @@ class RouteServiceProvider extends ServiceProvider
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/webprofile/backend.php'));
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/webprofile/front.php'));
}
/**
......
......@@ -67,8 +67,8 @@
</li>
<li class="pull-right">
<div style = "padding-top: 15px;">
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'id' => 'pages', 'files' => true)) !!}
{!! Form::select('language', ['id'=>'Indonesia', 'en'=>'English'], Session::get('selected_language'), ['onChange'=>'this.form.submit();']) !!}
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'id' => 'pages')) !!}
{!! Form::select('language', ['en'=>'English', 'id'=>'Indonesia'], Session::get('selected_language'), ['onChange'=>'this.form.submit();']) !!}
<button type="submit" style="display: none;">simpan</button>
{!! Form::close() !!}
</div>
......
@extends('webprofile.front.jollyany.master')
@section('slider')
<section class="slider-wrapper">
<div class="tp-banner-container">
<div class="tp-banner" >
<ul><!-- SLIDE -->
@foreach($slider as $value)
<li data-transition="fade" data-slotamount="7" data-masterspeed="1500" >
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/slider/' . $value->slider }}" data-bgfit="cover" data-bgposition="center center" data-bgrepeat="no-repeat" alt="{!! $value->title !!}">
@else
<img src="{{ url('/storage/slider/' . $value->slider) }}" data-bgfit="cover" data-bgposition="center center" data-bgrepeat="no-repeat" alt="{!! $value->title !!}">
@endif
</li>
@endforeach
</ul>
<div class="tp-bannertimer"></div>
</div>
</div>
</section><!-- end slider-wrapper -->
@endsection
@section('content')
<section class="blog-wrapper">
<div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="title">
<h2>Latest News
<div style="font-size:12px; float:right"><a href="{!! url('archive') !!}" class="btn btn-box"><i class="fa fa-chevron-circle-right"></i> See full news</a></div>
</h2>
</div><!-- end title -->
<div class="row">
<div class="blog-masonry">
<?php $e=1; ?>
@foreach($posts as $value)
<div class="col-lg-6 @if($e%2 != 0) first @else last @endif">
<div class="blog-carousel">
<div class="entry">
@if($value->thumbnail)
<center><img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/posts/{!! $value->thumbnail !!}" alt="" class="img-responsive" style="height: 150px; width: auto;"></center>
@endif
</div>
<div class="blog-carousel-header">
<h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></h3>
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
@if($value->comment_status)
<span><i class="fa fa-comment"></i> <a href="#">{!! $value->comment_count !!} Comments</a></span>
@endif
<span><i class="fa fa-eye"></i> <a href="#">{!! $value->viewer !!} Views</a></span>
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
{{-- <p>{!! substr(html_entity_decode($value->content),0 , 250) !!}</p> --}}
<p>{!! strip_tags(substr(html_entity_decode($value->rEn->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
{{-- <p>{!! $value->content !!}</p> --}}
</div><!-- end blog-carousel-desc -->
</div><!-- end blog-carousel -->
</div><!-- end col-lg-4 -->
<?php $e++; ?>
@endforeach
</div><!-- end blog-masonry -->
<div class="clearfix"></div>
<hr>
<div class="pagination_wrapper">
<!-- Pagination Normal -->
<ul class="pagination">
{!! $posts->render() !!}
</ul>
</div><!-- end pagination_wrapper -->
</div><!-- end row -->
</div><!-- end content -->
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title">
<h2>AGENDA</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($info as $value)
<li>
<a href="{!! url('info/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->rEn->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('agenda') !!}" class="btn btn-primary">See Full Agenda</a>
</div><!-- end widget -->
<div class="widget">
<div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#recent" data-toggle="tab">Newest</a></li>
<li><a href="#new" data-toggle="tab">Popular</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="recent">
<ul class="recent_posts_widget">
@foreach($resend as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">@if($value->thumbnail)<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/posts/{!! $value->thumbnail !!}" alt="" />@endif{!! $value->rEn->title !!}</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
<div class="tab-pane" id="new">
<ul class="recent_posts_widget">
@foreach($hot as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">@if($value->thumbnail)<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/posts/{!! $value->thumbnail !!}" alt="" />@endif{!! $value->rEn->title !!}</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
</div><!-- end tab content -->
</div><!-- end tab pane -->
</div><!-- end widget -->
@foreach ($widget_right as $vwidget_right)
<div class="widget">
<div class="title">
<h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title -->
{!! $vwidget_right->value_design !!}
</div><!-- end widget -->
@endforeach
</div><!-- end content -->
</div><!-- end container -->
</section><!--end white-wrapper -->
{{-- Label Body Tambahan --}}
@if ($body->count() != 0)
<section class="panel-wrapper jt-shadow" style="padding-bottom: 25px;">
@foreach ($body as $value)
<div class="container">
<div class="general-title">
<h2>{!! $value->title_design !!}</h2>
<hr>
</div>
</div>
<!-- end container -->
{!! $value->value_design !!}
@endforeach
<div class="clearfix"></div>
</section>
@endif
{{-- Label Gallery --}}
{{-- @if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow">
<div class="container">
<div class="general-title">
<h2>Galeri</h2>
<hr>
</div>
</div>
<!-- end container -->
<div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;">
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[0]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[0]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[0]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@if(isset($gallery[1]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(379px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[1]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[1]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[1]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
@if(isset($gallery[2]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(758px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[2]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[2]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[2]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
@if(isset($gallery[3]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(1137px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[3]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[3]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[3]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
</div>
<div class="clearfix"></div>
</section>
@endif --}}
<section class="make-bg-full">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
@foreach ($quote as $value)
<div class="item @if($value->urutan == 1) active @endif">
<div class="calloutbox-full-mini nocontainer">
<div class="long-twitter">
<p class="lead">
{!! $value->value_design !!}
<div style="text-align: center; font-size: 14pt;">{!! $value->title_design !!}</div>
</p>
</div>
</div>
</div>
@endforeach
</div>
<br>
<br>
<!-- Indicators -->
<ol class="carousel-indicators">
@for($i=0; $i<$quote->count(); $i++)
<li data-target="#myCarousel" data-slide-to="{!! $i !!}" @if($i==0) class="active" @endif></li>
@endfor
</ol>
</div>
</section><!-- make bg -->
@endsection
\ No newline at end of file
@foreach ($menu as $value)
@if(!$value->parent)
@if($value->url)
<li><a href="{!! url((string)$value->url) !!}">{!! $value->rEn->name !!}</a></li>
@else
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rEn->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rEn->name !!}</a></li>
@else
<li class="dropdown-submenu">
<a href="#">{!! $valuec->name !!}</a>
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rEn->name !!}</a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
@extends('webprofile.front.jollyany.master')
@section('slider')
<section class="slider-wrapper">
<div class="tp-banner-container">
<div class="tp-banner" >
<ul><!-- SLIDE -->
@foreach($slider as $value)
<li data-transition="fade" data-slotamount="7" data-masterspeed="1500" >
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/slider/' . $value->slider }}" data-bgfit="cover" data-bgposition="center center" data-bgrepeat="no-repeat" alt="{!! $value->title !!}">
@else
<img src="{{ url('/storage/slider/' . $value->slider) }}" data-bgfit="cover" data-bgposition="center center" data-bgrepeat="no-repeat" alt="{!! $value->title !!}">
@endif
</li>
@endforeach
</ul>
<div class="tp-bannertimer"></div>
</div>
</div>
</section><!-- end slider-wrapper -->
@endsection
@section('content')
<section class="blog-wrapper">
<div class="container">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="title">
<h2>Berita Terbaru
<div style="font-size:12px; float:right"><a href="{!! url('archive') !!}" class="btn btn-box"><i class="fa fa-chevron-circle-right"></i> lihat berita selengkapnya</a></div>
</h2>
</div><!-- end title -->
<div class="row">
<div class="blog-masonry">
<?php $e=1; ?>
@foreach($posts as $value)
<div class="col-lg-6 @if($e%2 != 0) first @else last @endif">
<div class="blog-carousel">
<div class="entry">
@if($value->thumbnail)
<center><img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/posts/{!! $value->thumbnail !!}" alt="" class="img-responsive" style="height: 150px; width: auto;"></center>
@endif
</div>
<div class="blog-carousel-header">
<h3><a title="{!! $value->title !!}" href="{!! url('post/'.$value->slug) !!}">{!! $value->title !!}</a></h3>
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i> {!! InseoHelper::tglbulanindo2($value->post_date) !!}</span>
@if($value->comment_status)
<span><i class="fa fa-comment"></i> <a href="#">{!! $value->comment_count !!} Comments</a></span>
@endif
<span><i class="fa fa-eye"></i> <a href="#">{!! $value->viewer !!} Views</a></span>
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
{{-- <p>{!! substr(html_entity_decode($value->content),0 , 250) !!}</p> --}}
<p>{!! strip_tags(substr(html_entity_decode($value->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</p>
{{-- <p>{!! $value->content !!}</p> --}}
</div><!-- end blog-carousel-desc -->
</div><!-- end blog-carousel -->
</div><!-- end col-lg-4 -->
<?php $e++; ?>
@endforeach
</div><!-- end blog-masonry -->
<div class="clearfix"></div>
<hr>
<div class="pagination_wrapper">
<!-- Pagination Normal -->
<ul class="pagination">
{!! $posts->render() !!}
</ul>
</div><!-- end pagination_wrapper -->
</div><!-- end row -->
</div><!-- end content -->
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title">
<h2>AGENDA</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($info as $value)
<li>
<a href="{!! url('info/'.$value->slug) !!}"><img src="https://www.unesa.ac.id/assets/demos/logounesa.png" alt="">{!! $value->title !!}</a>
<a class="readmore" href="#">{!! InseoHelper::tglbulanindo2($value->event_date) !!}</a>
</li>
@endforeach
</ul>
<a href="{!! url('agenda') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div id="tabbed_widget" class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#recent" data-toggle="tab">Terbaru</a></li>
<li><a href="#new" data-toggle="tab">Populer</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="recent">
<ul class="recent_posts_widget">
@foreach($resend as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">@if($value->thumbnail)<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/posts/{!! $value->thumbnail !!}" alt="" />@endif{!! $value->title !!}</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
<div class="tab-pane" id="new">
<ul class="recent_posts_widget">
@foreach($hot as $value)
<li>
<a href="{!! url('post/'.$value->slug) !!}">@if($value->thumbnail)<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/posts/{!! $value->thumbnail !!}" alt="" />@endif{!! $value->title !!}</a>
<a class="readmore" href="{!! url('post/'.$value->slug) !!}">{!! InseoHelper::tglbulanindo2($value->post_date) !!}</a>
</li>
@endforeach
</ul><!-- recent posts -->
</div>
</div><!-- end tab content -->
</div><!-- end tab pane -->
</div><!-- end widget -->
@foreach ($widget_right as $vwidget_right)
<div class="widget">
<div class="title">
<h2>{!! $vwidget_right->title_design !!}</h2>
</div><!-- end title -->
{!! $vwidget_right->value_design !!}
</div><!-- end widget -->
@endforeach
</div><!-- end content -->
</div><!-- end container -->
</section><!--end white-wrapper -->
{{-- Label Body Tambahan --}}
@if ($body->count() != 0)
<section class="panel-wrapper jt-shadow" style="padding-bottom: 25px;">
@foreach ($body as $value)
<div class="container">
<div class="general-title">
<h2>{!! $value->title_design !!}</h2>
<hr>
</div>
</div>
<!-- end container -->
{!! $value->value_design !!}
@endforeach
<div class="clearfix"></div>
</section>
@endif
{{-- Label Gallery --}}
{{-- @if ($gallery->count() != 0)
<section class="panel-wrapper jt-shadow">
<div class="container">
<div class="general-title">
<h2>Galeri</h2>
<hr>
</div>
</div>
<!-- end container -->
<div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;">
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[0]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[0]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[0]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@if(isset($gallery[1]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(379px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[1]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[1]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[1]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
@if(isset($gallery[2]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(758px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[2]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[2]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[2]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
@if(isset($gallery[3]))
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(1137px, 30px); width: 379px;">
<div class="entry">
<img src="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[3]->images !!}" alt="" class="img-responsive">
<div class="magnifier">
<div class="buttons">
<a class="st btn btn-default" rel="bookmark" href="https://statik.unesa.ac.id/profileunesa_konten_statik/uploads/{!! Session::get('ss_setting')['statik_konten'] !!}/gallery/{!! $gallery[3]->images !!}" target="_blank">
View
</a>
<h3>{!! $gallery[3]->title !!}</h3>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
</div>
<div class="clearfix"></div>
</section>
@endif --}}
<section class="make-bg-full">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
@foreach ($quote as $value)
<div class="item @if($value->urutan == 1) active @endif">
<div class="calloutbox-full-mini nocontainer">
<div class="long-twitter">
<p class="lead">
{!! $value->value_design !!}
<div style="text-align: center; font-size: 14pt;">{!! $value->title_design !!}</div>
</p>
</div>
</div>
</div>
@endforeach
</div>
<br>
<br>
<!-- Indicators -->
<ol class="carousel-indicators">
@for($i=0; $i<$quote->count(); $i++)
<li data-target="#myCarousel" data-slide-to="{!! $i !!}" @if($i==0) class="active" @endif></li>
@endfor
</ol>
</div>
</section><!-- make bg -->
@endsection
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>{{$setting['web_title']}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<!-- Bootstrap Styles -->
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/bootstrap.css" rel="stylesheet">
<style media="screen">
a.navbar-brand {
background: url({!! $setting['logo'] !!}) no-repeat scroll left top rgba(0, 0, 0, 0);
/* height: 55px;
width: auto; */
}
a {
color: #428bca;
text-decoration: none;
background: transparent;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
</style>
<!-- Styles -->
<link rel='stylesheet' type='text/css' href='https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/{!! $setting['style'] !!}' />
<!-- Flex Slider -->
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/flexslider.css" rel="stylesheet">
<!-- Carousel Slider -->
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/owl-carousel.css" rel="stylesheet">
<!-- CSS Animations -->
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/animate.min.css" rel="stylesheet">
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/prettyPhoto.css" rel="stylesheet">
<!-- Google Fonts -->
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lato:400,300,400italic,300italic,700,700italic,900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Exo:400,300,600,500,400italic,700italic,800,900' rel='stylesheet' type='text/css'>
<!-- SLIDER ROYAL CSS SETTINGS -->
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/royalslider/royalslider.css" rel="stylesheet">
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/royalslider/skins/default-inverted/rs-default-inverted.css" rel="stylesheet">
<!-- SLIDER REVOLUTION 4.x CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/css/settings.css" media="screen" />
@yield('assets')
</head>
<body>
<div id="topbar" class="clearfix">
<div class="container">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="social-icons">
</div><!-- end social icons -->
</div><!-- end columns -->
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
<div class="topmenu">
<span class="topbar-cart"><i class="fa fa-globe"></i> <a href="https://www.unesa.ac.id" target="_blank">UNESA</a></span>
<div class="ua-lang pull-right hidden-sm" style="padding-top: 7px;">
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline', 'id'=>'en')) !!}
<input type="hidden" value="en" name="language">
<a href="javascript:;" onclick="document.getElementById('en').submit();"><img src="https://www.unesa.ac.id/assets2/images/en.png"></a>
{!! Form::close() !!}
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline', 'id'=>'id')) !!}
<input type="hidden" value="id" name="language">
<a href="javascript:;" onclick="document.getElementById('id').submit();"><img src="https://www.unesa.ac.id/assets2/images/id.png"></a>
{!! Form::close() !!}
</div>
</div><!-- end top menu -->
<div class="callus">
<span class="topbar-email"><i class="fa fa-envelope"></i> <a href="mailto:{!! $setting['email'] !!}">{!! $setting['email'] !!}</a></span>
</div><!-- end callus -->
</div><!-- end columns -->
</div><!-- end container -->
</div><!-- end topbar -->
<header id="header-style-1">
<div class="container">
<nav class="navbar yamm navbar-default">
<div class="navbar-header">
<button type="button" data-toggle="collapse" data-target="#navbar-collapse-1" class="navbar-toggle">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="{!! url("/") !!}" class="navbar-brand">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
</div><!-- end navbar-header -->
<div id="navbar-collapse-1" class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
@if (Session::get('selected_language') == 'id')
@include('webprofile.front.jollyany.menu')
@endif
@if (Session::get('selected_language') == 'en')
@include('webprofile.front.jollyany.en.menu')
@endif
</ul><!-- end navbar-nav -->
</div><!-- #navbar-collapse-1 -->
</nav><!-- end navbar yamm navbar-default -->
</div><!-- end container -->
</header><!-- end header-style-1 -->
@yield('slider')
@yield('content')
{{-- @yield('footer') --}}
{{-- @include('webprofile.front.footer') --}}
<div id="copyrights">
<div class="container">
<div id="global-footer" style="text-align:center; line-height:15px"><br>
<a href="/"><img src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/images/unesa-bawah.png" alt="Surabaya State University" width="105" height="49"><br>Copyright © {!! Date('Y') !!} {{$setting['web_title']}}. Supported By PPTI Universitas Negeri Surabaya</a>
</div>
</div><!-- end container -->
</div>
<div class="dmtop">Scroll to Top</div>
<!-- Main Scripts-->
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/jquery.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/bootstrap.min.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/menu.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/owl.carousel.min.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/jquery.parallax-1.1.3.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/jquery.simple-text-rotator.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/wow.min.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/jquery.fitvids.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/custom.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/jquery.isotope.min.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/custom-portfolio.js"></script>
<!-- SLIDER REVOLUTION 4.x SCRIPTS -->
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
@yield('scripts')
<script src="https://www.unesa.ac.id/assets/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript">
(function($) {
"use strict";
jQuery('a[data-gal]').each(function() {
jQuery(this).attr('rel', jQuery(this).data('gal'));
});
jQuery("a[data-gal^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',slideshow:false,overlay_gallery: false,theme:'light_square',social_tools:false,deeplinking:false});
})(jQuery);
</script>
<script type="text/javascript">
var revapi;
jQuery(document).ready(function() {
revapi = jQuery('.tp-banner').revolution(
{
delay:9000,
startwidth:1686,
startheight:500,
hideThumbs:10,
fullWidth:"on",
forceFullWidth:"on"
});
}); //ready
</script>
<script>
(function($) {
"use strict";
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$("body").fitVids();
});
})(jQuery);
</script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/js/jquery.flexslider.js"></script>
<script type="text/javascript">
(function($) {
"use strict";
$(window).load(function(){
$('.flexslider').flexslider({
animation: "fade",
controlNav: false,
start: function(slider){
$('body').removeClass('loading');
}
});
});
})(jQuery);
</script>
<!-- Demo Switcher JS -->
<script type="text/javascript" src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/fswit.js"></script>
<script src="https://statik.unesa.ac.id/profileunesa_konten_statik/front/switcher/js/bootstrap-select.js"></script>
</body>
</html>
@foreach ($menu as $value)
@if(!$value->parent)
@if($value->url)
<li><a href="{!! url((string)$value->url) !!}">{!! $value->name !!}</a></li>
@else
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec)
@if($valuec->parent == $value->id)
@if($valuec->url)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->name !!}</a></li>
@else
<li class="dropdown-submenu">
<a href="#">{!! $valuec->name !!}</a>
<ul class="dropdown-menu">
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->name !!}</a></li>
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
......@@ -11,10 +11,6 @@
|
*/
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::post('/change-language', 'HomeController@changeLocale')->name('language');
......
<?php
Route::group(['namespace' => 'Webprofile\Front'], function () {
Route::get('/', 'FrontController@index');
Route::get('page/{id}', 'FrontController@page')->name('page');
Route::get('post/{id}', 'FrontController@post')->name('post');
Route::get('archive', 'FrontController@archive')->name('archive');
Route::get('category/{id}','FrontController@category')->name('category');
Route::get('info/{id}', 'FrontController@info')->name('infomation');
Route::get('agenda', 'FrontController@agenda')->name('agenda');
Route::get('error', 'FrontController@error')->name('error');
Route::get('download', 'FrontController@download')->name('download');
Route::get('downloadlink/{data}', 'FrontController@downloadFile')->name('downloadFile');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment