Commit a109dba3 by Bagus Pambudi

fix bug agenda information

parent 89b45315
......@@ -301,7 +301,7 @@ class PostController extends Controller
'categories' => $categories,
'setting' => $setting,
];
return view('webprofile.backend.posts.edit', $data)->withTitle(trans('feature.edit_post'));
}
......
......@@ -49,7 +49,7 @@ class AgendaController extends Controller
$data = Agenda::where('slug', $title)->first();
$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();
$agendas = Agenda::where('info_status', '1')->orderBy('event_date', 'desc')->limit('5')->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();
......@@ -66,7 +66,7 @@ class AgendaController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'agendas' => $agendas,
'footer' => $footer,
];
......@@ -79,7 +79,7 @@ class AgendaController extends Controller
$data = Agenda::where('slug', $title)->first();
$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();
$agendas = Agenda::with(['rEn'])->where('info_status', '1')->orderBy('event_date', 'desc')->limit('5')->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();
......@@ -96,7 +96,7 @@ class AgendaController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'agendas' => $agendas,
'footer' => $footer,
];
......@@ -109,7 +109,7 @@ class AgendaController extends Controller
$data = Agenda::where('slug', $title)->first();
$resend = Posts::with(['rDe'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rDe'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rDe'])->where('is_active', '1')->get();
$agendas = Agenda::with(['rDe'])->where('info_status', '1')->orderBy('event_date', 'desc')->limit('5')->get();
$menu = Menu::with(['rDe'])->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();
......@@ -126,7 +126,7 @@ class AgendaController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'agendas' => $agendas,
'footer' => $footer,
];
......@@ -139,7 +139,7 @@ class AgendaController extends Controller
$data = Agenda::where('slug', $title)->first();
$resend = Posts::with(['rSa'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rSa'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rSa'])->where('is_active', '1')->get();
$agendas = Agenda::with(['rSa'])->where('info_status', '1')->orderBy('event_date', 'desc')->limit('5')->get();
$menu = Menu::with(['rSa'])->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();
......@@ -156,7 +156,7 @@ class AgendaController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'agendas' => $agendas,
'footer' => $footer,
];
......@@ -169,7 +169,7 @@ class AgendaController extends Controller
$data = Agenda::where('slug', $title)->first();
$resend = Posts::with(['rZh'])->where('post_status', '1')->orderby('post_date', 'desc')->limit('5')->get();
$hot = Posts::with(['rZh'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$categories = Categories::with(['rZh'])->where('is_active', '1')->get();
$agendas = Agenda::with(['rZh'])->where('info_status', '1')->orderBy('event_date', 'desc')->limit('5')->get();
$menu = Menu::with(['rZh'])->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();
......@@ -186,7 +186,7 @@ class AgendaController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'agendas' => $agendas,
'footer' => $footer,
];
......
......@@ -167,7 +167,7 @@
<label class="col-md-3 col-xs-12 control-label">@lang('label.date')</label>
<div class="col-md-12">
<div class="input-group">
{{ Form::text('post_date', date('Y-m-d'), array('class' => 'form-control datepicker')) }}
{{ Form::text('post_date', $data->post_date, array('class' => 'form-control datepicker')) }}
</div>
</div>
</div>
......
......@@ -39,7 +39,21 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.widget')
{{-- @include('webprofile.front.jollyany.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>Semua Agenda</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($agendas as $value)
<li><a class="unesa-link" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->title !!}</a></li>
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -36,7 +36,23 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.ar.widget')
{{-- @include('webprofile.front.jollyany.ar.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>كل جدول الأعمال</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($agendas as $value)
@if($value->rSa)
<li><a class="unesa-link" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->rSa->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -15,12 +15,12 @@
<div class="col-lg-12">
<h2 style='text-transform: capitalize;'>{!! $title !!}</h2>
<ul class="breadcrumb pull-right">
@if ($title != 'Agenda')
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">Pengumuman</li>
@if ($title != 'جدول أعمال')
<li><a href="{{'/'}}" style="text-transform: capitalize;">مسكن</a></li>
<li style="text-transform: capitalize;">معلومة</li>
@else
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">agenda</li>
<li><a href="{{'/'}}" style="text-transform: capitalize;">مسكن</a></li>
<li style="text-transform: capitalize;">جدول أعمال</li>
@endif
</ul>
</div>
......@@ -38,7 +38,7 @@
<div class="">
<div class="flexslider">
@foreach($data as $value)
@if ($title != 'Agenda')
@if ($title != 'جدول أعمال')
<div class="row">
<div class="headline">
<h2><a target="_blank" href="{!! url('information/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
......
......@@ -36,7 +36,22 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.ar.widget')
{{-- @include('webprofile.front.jollyany.ar.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>كل المعلومات</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($informations as $value)
@if($value->rSa)
<li><a class="unesa-link" href="{!! url('information/'.$value->slug) !!}">{!! $value->rSa->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -36,7 +36,24 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.de.widget')
{{-- @include('webprofile.front.jollyany.de.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>alle Tagesordnung</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($agendas as $value)
@if($value->rDe)
<li><a class="unesa-link" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->rDe->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -16,10 +16,10 @@
<h2 style='text-transform: capitalize;'>{!! $title !!}</h2>
<ul class="breadcrumb pull-right">
@if ($title != 'Agenda')
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">Pengumuman</li>
<li><a href="{{'/'}}" style="text-transform: capitalize;">Heim</a></li>
<li style="text-transform: capitalize;">information</li>
@else
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li><a href="{{'/'}}" style="text-transform: capitalize;">Heim</a></li>
<li style="text-transform: capitalize;">agenda</li>
@endif
</ul>
......
......@@ -4,7 +4,7 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Bekanntmachung - {!! $data->title !!}</h2>
<h2>Information - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
......@@ -36,7 +36,22 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.de.widget')
{{-- @include('webprofile.front.jollyany.de.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>alle Informationen</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($informations as $value)
@if($value->rDe)
<li><a class="unesa-link" href="{!! url('information/'.$value->slug) !!}">{!! $value->rDe->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -36,7 +36,23 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.en.widget')
{{-- @include('webprofile.front.jollyany.en.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>All Agenda</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($agendas as $value)
@if($value->rEn)
<li><a class="unesa-link" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->rEn->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -36,7 +36,23 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.zh.widget')
{{--@include('webprofile.front.jollyany.zh.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>所有议程</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($agendas as $value)
@if($value->rZh)
<li><a class="unesa-link" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->rZh->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
......@@ -15,12 +15,12 @@
<div class="col-lg-12">
<h2 style='text-transform: capitalize;'>{!! $title !!}</h2>
<ul class="breadcrumb pull-right">
@if ($title != 'Agenda')
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">Pengumuman</li>
@if ($title != '议程')
<li><a href="{{'/'}}" style="text-transform: capitalize;"></a></li>
<li style="text-transform: capitalize;">信息</li>
@else
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">agenda</li>
<li><a href="{{'/'}}" style="text-transform: capitalize;"></a></li>
<li style="text-transform: capitalize;">议程</li>
@endif
</ul>
</div>
......@@ -38,7 +38,7 @@
<div class="">
<div class="flexslider">
@foreach($data as $value)
@if ($title != 'Agenda')
@if ($title != '议程')
<div class="row">
<div class="headline">
<h2><a target="_blank" href="{!! url('information/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
......
......@@ -4,7 +4,7 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>公告 - {!! $data->title !!}</h2>
<h2>信息 - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
......@@ -36,7 +36,24 @@
</div>
</div>
</div>
@include('webprofile.front.jollyany.zh.widget')
{{--
@include('webprofile.front.jollyany.zh.widget')--}}
<div id="sidebar" class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="widget">
<div class="title"><h2>
<h2>信息</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($informations as $value)
@if($value->rZh)
<li><a class="unesa-link" href="{!! url('information/'.$value->slug) !!}">{!! $value->rZh->title !!}</a></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
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