Commit c517769f by Bagus Pambudi

agenda

parent 872601ca
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_KEY=base64:s8Ig1mW5Z73iyqD3l9sXbNsqzHIwUPlp7qKy/GVwWiE=
APP_DEBUG=true
APP_URL=http://localhost
......
<?php
namespace App\Http\Controllers\Webprofile\Backend;
use App\Http\Controllers\Controller;
use App\Models\Webprofile\Categories;
use App\Repositories\Webprofile\De\AgendaRepository as DeAgendaRepository;
use App\Repositories\Webprofile\En\AgendaRepository as EnAgendaRepository;
use App\Repositories\Webprofile\AgendaRepository;
use App\Repositories\Webprofile\Sa\AgendaRepository as SaAgendaRepository;
use App\Repositories\Webprofile\Zh\AgendaRepository as ZhAgendaRepository;
use Illuminate\Http\Request;
use Statickidz\GoogleTranslate;
class AgendaController extends Controller
{
private $repo;
private $repoEn;
private $repoDe;
private $repoSa;
private $repoZh;
private $SOURCE = 'id';
private $TARGET = 'en';
private $TARGETDE = 'de';
private $TARGETSA = 'ar';
private $TARGETZH = 'zh';
public function __construct(
AgendaRepository $repo,
EnAgendaRepository $repoEn,
DeAgendaRepository $repoDe,
SaAgendaRepository $repoSa,
ZhAgendaRepository $repoZh
) {
$this->repo = $repo;
$this->repoEn = $repoEn;
$this->repoDe = $repoDe;
$this->repoSa = $repoSa;
$this->repoZh = $repoZh;
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(Request $request)
{
if ($request->ajax()) {
$data = $this->repo->get(['rEn']);
return $this->repo->datatable($data);
}
return view('webprofile.backend.agendas.index')->withTitle(trans('feature.agenda'));
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$categories = Categories::pluck('name', 'id');
$data = [
'categories' => $categories,
];
return view('webprofile.backend.agendas.create', $data)->withTitle(trans('feature.create_agenda'));
}
/**
* Store a newly created resource in storage.
*
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$data = $request->except('_token');
array_key_exists('info_status', $data) ? $data['info_status'] = 1 : $data['info_status'] = 0;
$data['slug'] = str_slug($request->input('title'));
$save = $this->repo->store($data);
if (webprofilesetting()['auto_translate'] == 1) {
// save translate
$this->createEn($data, $save);
$this->createDe($data, $save);
$this->createSa($data, $save);
$this->createZh($data, $save);
}
return redirect()->route('agendas.index');
}
private function createEn($data, $agenda)
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, $data['title']);
if (strip_tags($data['content']) == null) {
$data['content'] = 'kosong';
}
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content']));
$dataEn['agenda_id'] = $agenda->id;
$dataEn['title'] = $title;
$dataEn['content'] = $content;
$this->repoEn->store($dataEn);
}
private function createDe($data, $agenda)
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, $data['title']);
if (strip_tags($data['content']) == null) {
$data['content'] = 'kosong';
}
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content']));
$dataDe['agenda_id'] = $agenda->id;
$dataDe['title'] = $title;
$dataDe['content'] = $content;
$this->repoDe->store($dataDe);
}
private function createSa($data, $agenda)
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, $data['title']);
if (strip_tags($data['content']) == null) {
$data['content'] = 'kosong';
}
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content']));
$dataSa['agenda_id'] = $agenda->id;
$dataSa['title'] = $title;
$dataSa['content'] = $content;
$this->repoSa->store($dataSa);
}
private function createZh($data, $agenda)
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, $data['title']);
if (strip_tags($data['content']) == null) {
$data['content'] = 'kosong';
}
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content']));
$dataZh['agenda_id'] = $agenda->id;
$dataZh['title'] = $title;
$dataZh['content'] = $content;
$this->repoZh->store($dataZh);
}
/**
* Display the specified resource.
*
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public function show($id)
{
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$data = $this->repo->findId($id, ['rEn', 'rDe', 'rSa', 'rZh']);
$categories = Categories::pluck('name', 'id');
$data = [
'data' => $data,
'categories' => $categories,
];
return view('webprofile.backend.agendas.edit', $data)->withTitle(trans('feature.edit_agenda'));
}
/**
* Update the specified resource in storage.
*
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$data = $request->except(['_token', 'id', 'title_en', 'content_en', 'title_de', 'content_de', 'title_sa', 'content_sa', 'title_zh', 'content_zh']);
$dataEn = $request->except(['_token', 'id']);
array_key_exists('info_status', $data) ? $data['info_status'] = 1 : $data['info_status'] = 0;
$data['slug'] = str_slug($request->input('title'));
$agenda = $this->repo->findId($id, ['rEn', 'rDe', 'rSa','rZh']);
$edit = $this->repo->update($data, $agenda);
$this->updateEn($dataEn, $agenda);
$this->updateDe($dataEn, $agenda);
$this->updateSa($dataEn, $agenda);
$this->updateZh($dataEn, $agenda);
return redirect()->route('agendas.index');
}
public function updateEn($data, $agenda)
{
$dataEn['title'] = $data['title_en'];
$dataEn['content'] = $data['content_en'];
$this->repoEn->update($dataEn, $agenda);
}
public function updateDe($data, $agenda)
{
$dataDe['title'] = $data['title_de'];
$dataDe['content'] = $data['content_de'];
$this->repoDe->update($dataDe, $agenda);
}
public function updateSa($data, $agenda)
{
$dataSa['title'] = $data['title_sa'];
$dataSa['content'] = $data['content_sa'];
$this->repoSa->update($dataSa, $agenda);
}
public function updateZh($data, $agenda)
{
$dataZh['title'] = $data['title_zh'];
$dataZh['content'] = $data['content_zh'];
$this->repoZh->update($dataZh, $agenda);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
*
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$data = $this->repo->findId($id, ['rEn', 'rDe', 'rSa', 'rZh']);
$this->repo->destroy($data);
if ($data->rEn) {
$this->repoEn->destroy($data->rEn);
}
if ($data->rDe) {
$this->repoDe->destroy($data->rDe);
}
if ($data->rSa) {
$this->repoSa->destroy($data->rSa);
}
if ($data->rZh) {
$this->repoZh->destroy($data->rZh);
}
return response()->json(['done']);
}
}
......@@ -5,14 +5,14 @@ namespace App\Http\Controllers\Webprofile\Front;
use App\Http\Controllers\Controller;
use App\Models\Webprofile\Categories;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Information;
use App\Models\Webprofile\Agenda;
use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts;
use Session;
class AgendaController extends Controller
{
public function index()
public function index($title)
{
$setting = webprofilesetting();
......@@ -21,32 +21,32 @@ class AgendaController extends Controller
}
if (Session::get('selected_language') == 'id') {
$data = $this->getDataId($setting);
$data = $this->getDataId($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.archive', $data)->withTitle('Agenda');
return view('webprofile.front.'.$setting['theme'].'.agenda', $data);
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting);
$data = $this->getDataEn($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Agenda');
return view('webprofile.front.'.$setting['theme'].'.en.agenda', $data);
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
$data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Agenda');
return view('webprofile.front.'.$setting['theme'].'.de.agenda', $data);
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
$data = $this->getDataSa($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('جدول أعمال');
return view('webprofile.front.'.$setting['theme'].'.ar.agenda', $data);
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting);
$data = $this->getDataZh($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('议程');
return view('webprofile.front.'.$setting['theme'].'.zh.agenda', $data);
}
}
public function getDataId($setting)
public function getDataId($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
......@@ -55,6 +55,9 @@ class AgendaController extends Controller
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
......@@ -70,10 +73,10 @@ class AgendaController extends Controller
return $data;
}
public function getDataEn($setting)
public function getDataEn($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
......@@ -82,6 +85,9 @@ class AgendaController extends Controller
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
......@@ -97,10 +103,10 @@ class AgendaController extends Controller
return $data;
}
public function getDataDe($setting)
public function getDataDe($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
......@@ -109,6 +115,9 @@ class AgendaController extends Controller
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
......@@ -124,10 +133,10 @@ class AgendaController extends Controller
return $data;
}
public function getDataSa($setting)
public function getDataSa($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
......@@ -136,6 +145,9 @@ class AgendaController extends Controller
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
......@@ -151,10 +163,10 @@ class AgendaController extends Controller
return $data;
}
public function getDataZh($setting)
public function getDataZh($setting, $title)
{
$setting = webprofilesetting();
$data = Information::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
......@@ -163,6 +175,9 @@ class AgendaController extends Controller
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$viewer['viewer'] = (int) $data->viewer + 1;
$data->update($viewer);
$data = [
'setting' => $setting,
'data' => $data,
......
<?php
namespace App\Http\Controllers\Webprofile\Front;
use App\Http\Controllers\Controller;
use App\Models\Webprofile\Categories;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Agenda;
use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts;
use Session;
class AgendaController2 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'].'.agendainfo', $data)->withTitle('Agenda');
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting);
return view('webprofile.front.'.$setting['theme'].'.en.archive', $data)->withTitle('Agenda');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting);
return view('webprofile.front.'.$setting['theme'].'.de.archive', $data)->withTitle('Agenda');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting);
return view('webprofile.front.'.$setting['theme'].'.ar.archive', $data)->withTitle('جدول أعمال');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting);
return view('webprofile.front.'.$setting['theme'].'.zh.archive', $data)->withTitle('议程');
}
}
public function getDataId($setting)
{
$setting = webprofilesetting();
$data = Agenda::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
public function getDataEn($setting)
{
$setting = webprofilesetting();
$data = Agenda::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
public function getDataDe($setting)
{
$setting = webprofilesetting();
$data = Agenda::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
$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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
public function getDataSa($setting)
{
$setting = webprofilesetting();
$data = Agenda::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
$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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
public function getDataZh($setting)
{
$setting = webprofilesetting();
$data = Agenda::where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
$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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'footer' => $footer,
];
return $data;
}
}
......@@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Gallery;
use App\Models\Webprofile\Information;
use App\Models\Webprofile\Agenda;
use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts;
use App\Models\Webprofile\Slider;
......@@ -49,6 +50,7 @@ class FrontController extends Controller
$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();
$agenda = Agenda::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();
......@@ -63,6 +65,7 @@ class FrontController extends Controller
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'agenda' => $agenda,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
......@@ -83,6 +86,7 @@ class FrontController extends Controller
$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();
$agenda = Agenda::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();
......@@ -97,6 +101,7 @@ class FrontController extends Controller
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'agenda' => $agenda,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
......@@ -117,6 +122,7 @@ class FrontController extends Controller
$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();
$info = Information::with(['rDe'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$agenda = Agenda::with(['rDe'])->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(['rDe'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
......@@ -131,6 +137,7 @@ class FrontController extends Controller
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'agenda' => $agenda,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
......@@ -151,6 +158,7 @@ class FrontController extends Controller
$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();
$info = Information::with(['rSa'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$agenda = Agenda::with(['rSa'])->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(['rSa'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
......@@ -165,6 +173,7 @@ class FrontController extends Controller
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'agenda' => $agenda,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
......@@ -185,6 +194,7 @@ class FrontController extends Controller
$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();
$info = Information::with(['rZh'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$agenda = Agenda::with(['rZh'])->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(['rZh'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
......@@ -199,6 +209,7 @@ class FrontController extends Controller
'resend' => $resend,
'hot' => $hot,
'info' => $info,
'agenda' => $agenda,
'slider' => $slider,
'menu' => $menu,
'gallery' => $gallery,
......
......@@ -23,33 +23,34 @@ class InformationController extends Controller
if (Session::get('selected_language') == 'id') {
$data = $this->getDataId($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.information', $data);
return view('webprofile.front.'.$setting['theme'].'.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.en.information', $data);
return view('webprofile.front.'.$setting['theme'].'.en.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.de.information', $data);
return view('webprofile.front.'.$setting['theme'].'.de.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.ar.information', $data);
return view('webprofile.front.'.$setting['theme'].'.ar.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting, $title);
return view('webprofile.front.'.$setting['theme'].'.zh.information', $data);
return view('webprofile.front.'.$setting['theme'].'.zh.information', $data)->withTitle('Informasi');
}
}
public function getDataId($setting, $title)
{
$setting = webprofilesetting();
$data = Information::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();
$informations = Information::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 +67,7 @@ class InformationController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'informations' => $informations,
'footer' => $footer,
];
......@@ -79,7 +80,7 @@ class InformationController extends Controller
$data = Information::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();
$informations = Information::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 +97,7 @@ class InformationController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'informations' => $informations,
'footer' => $footer,
];
......@@ -109,7 +110,7 @@ class InformationController extends Controller
$data = Information::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();
$informations = Information::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 +127,7 @@ class InformationController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'informations' => $informations,
'footer' => $footer,
];
......@@ -139,7 +140,7 @@ class InformationController extends Controller
$data = Information::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();
$informations = Information::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 +157,7 @@ class InformationController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'informations' => $informations,
'footer' => $footer,
];
......@@ -169,7 +170,7 @@ class InformationController extends Controller
$data = Information::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();
$informations = Information::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 +187,7 @@ class InformationController extends Controller
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'categories' => $categories,
'informations' => $informations,
'footer' => $footer,
];
......
<?php
namespace App\Http\Controllers\Webprofile\Front;
use App\Http\Controllers\Controller;
use App\Models\Webprofile\Categories;
use App\Models\Webprofile\Design;
use App\Models\Webprofile\Information;
use App\Models\Webprofile\Menu;
use App\Models\Webprofile\Posts;
use Session;
class InformationController2 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'].'.agendainfo', $data)->withTitle('Pengumuman');
} elseif (Session::get('selected_language') == 'en') {
$data = $this->getDataEn($setting);
return view('webprofile.front.'.$setting['theme'].'.en.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'de') {
$data = $this->getDataDe($setting );
return view('webprofile.front.'.$setting['theme'].'.de.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'ar') {
$data = $this->getDataSa($setting );
return view('webprofile.front.'.$setting['theme'].'.ar.information', $data)->withTitle('Informasi');
} elseif (Session::get('selected_language') == 'zh') {
$data = $this->getDataZh($setting );
return view('webprofile.front.'.$setting['theme'].'.zh.information', $data)->withTitle('Informasi');
}
}
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();
$informations = Information::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'informations' => $informations,
'footer' => $footer,
];
return $data;
}
public function getDataEn($setting)
{
$setting = webprofilesetting();
$data = Information::with(['rEn'])->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();
$informations = Information::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'informations' => $informations,
'footer' => $footer,
];
return $data;
}
public function getDataDe($setting)
{
$setting = webprofilesetting();
$data = Information::with(['rDe'])->where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$hot = Posts::with(['rDe'])->where('post_status', '1')->orderby('viewer', 'desc')->limit('5')->get();
$informations = Information::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'informations' => $informations,
'footer' => $footer,
];
return $data;
}
public function getDataSa($setting)
{
$setting = webprofilesetting();
$data = Information::with(['rSa'])->where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
$informations = Information::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'informations' => $informations,
'footer' => $footer,
];
return $data;
}
public function getDataZh($setting)
{
$setting = webprofilesetting();
$data = Information::with(['rZh'])->where('info_status', '1')->orderBy('event_date', 'desc')->paginate($setting['post_per_page']);
$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();
$informations = Information::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();
$footer = Design::where('name_design', 'like', '%footer_row%')->get();
$data = [
'setting' => $setting,
'data' => $data,
'menu' => $menu,
'widget_right' => $widget_right,
'widget_left' => $widget_left,
'resend' => $resend,
'hot' => $hot,
'informations' => $informations,
'footer' => $footer,
];
return $data;
}
}
<?php
namespace App\Models\Webprofile;
use App\Http\Traits\UuidTrait;
use App\Models\Webprofile\De\Agenda as DeAgenda;
use App\Models\Webprofile\En\Agenda as EnAgenda;
use App\Models\Webprofile\Sa\Agenda as SaAgenda;
use App\Models\Webprofile\Zh\Agenda as ZhAgenda;
use Illuminate\Database\Eloquent\Model;
class Agenda extends Model
{
use UuidTrait;
public $incrementing = false;
protected $table = 'swp_agendas';
protected $guarded = [];
public function rEn()
{
return $this->hasOne(EnAgenda::class, 'agenda_id', 'id');
}
public function rDe()
{
return $this->hasOne(DeAgenda::class, 'agenda_id', 'id');
}
public function rSa()
{
return $this->hasOne(SaAgenda::class, 'agenda_id', 'id');
}
public function rZh()
{
return $this->hasOne(ZhAgenda::class, 'agenda_id', 'id');
}
}
<?php
namespace App\Models\Webprofile\De;
use App\Http\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Model;
class Agenda extends Model
{
use UuidTrait;
public $incrementing = false;
protected $table = 'swp_agendas_de';
protected $guarded = [];
}
<?php
namespace App\Models\Webprofile\En;
use App\Http\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Model;
class Agenda extends Model
{
use UuidTrait;
public $incrementing = false;
protected $table = 'swp_agendas_en';
protected $guarded = [];
}
<?php
namespace App\Models\Webprofile\Sa;
use App\Http\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Model;
class Agenda extends Model
{
use UuidTrait;
public $incrementing = false;
protected $table = 'swp_agendas_sa';
protected $guarded = [];
}
<?php
namespace App\Models\Webprofile\Zh;
use App\Http\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Model;
class Agenda extends Model
{
use UuidTrait;
public $incrementing = false;
protected $table = 'swp_agendas_zh';
protected $guarded = [];
}
<?php
namespace App\Repositories\Webprofile;
use App\Models\Webprofile\Agenda;
use App\Repositories\Repository;
use DataTables;
class AgendaRepository extends Repository
{
protected $model;
public function __construct(Agenda $model)
{
$this->model = $model;
}
public function get($with = null, $title = null, $orderBy = null)
{
return $this->model
->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($title, function ($query) use ($title) {
return $query->where('title', 'ilike', '%' . $title . '%');
})
->when($orderBy, function ($query) use ($orderBy) {
return $query->orderBy($orderBy[0], $orderBy[1]);
})
->get();
}
public function datatable($data)
{
return DataTables::of($data)
->addIndexColumn()
->addColumn('action', function ($row) {
$btn = '<a href="' . url('/webprofile/agendas/' . $row->id . '/edit') . '" data-toggle="tooltip" data-id="' . $row->id . '" data-original-title="' . trans('label.edit') . '" class="edit btn btn-warning btn-round btn-sm edit">' . trans('label.edit') . '</a>';
$btn = $btn . ' <a href="javascript:void(0)" data-toggle="tooltip" data-id="' . $row->id . '" data-original-title="' . trans('label.delete') . '" class="btn btn-danger btn-round btn-sm delete">' . trans('label.delete') . '</a>';
$btn = $btn . '<br>';
return $btn;
})
->addColumn('date', function ($row) {
$str = Date('d-m-Y', strtotime($row->event_date));
return $str;
})
->addColumn('status', function ($row) {
if ($row->info_status == true) {
$str = '<div style="color: green;"><i class="fa fa-check"></i></div>';
} else {
$str = '<div style="color: red;"><i class="fa fa-times"></i></div>';
}
return $str;
})
->addColumn('title', function ($row) {
$str = $row->title . '<br>';
if ($row->rEn) {
$str .= '<i style="color: blue;">' . $row->rEn->title . '</i>';
}
return $str;
})
->rawColumns(['action', 'status', 'date', 'title'])
->make(true);
}
}
<?php
namespace App\Repositories\Webprofile\De;
use App\Models\Webprofile\De\Agenda;
use App\Repositories\Repository;
class AgendaRepository extends Repository
{
public function __construct(Agenda $model)
{
$this->model = $model;
}
public function get()
{
}
public function paginate()
{
}
public function update($data, $agenda)
{
return $this->model->updateOrCreate([
'agenda_id' => $agenda->id,
], $data);
}
}
<?php
namespace App\Repositories\Webprofile\En;
use App\Models\Webprofile\En\Agenda;
use App\Repositories\Repository;
use Illuminate\Database\Eloquent\Model;
class AgendaRepository extends Repository
{
public function __construct(Agenda $model)
{
$this->model = $model;
}
public function get()
{
}
public function paginate()
{
}
public function update($data, $agenda)
{
return $this->model->updateOrCreate([
'agenda_id' => $agenda->id,
], $data);
}
}
<?php
namespace App\Repositories\Webprofile\Sa;
use App\Models\Webprofile\Sa\Agenda;
use App\Repositories\Repository;
class AgendaRepository extends Repository
{
public function __construct(Agenda $model)
{
$this->model = $model;
}
public function get()
{
}
public function paginate()
{
}
public function update($data, $agenda)
{
return $this->model->updateOrCreate([
'agenda_id' => $agenda->id,
], $data);
}
}
<?php
namespace App\Repositories\Webprofile\Zh;
use App\Models\Webprofile\Zh\Agenda;
use App\Repositories\Repository;
class AgendaRepository extends Repository
{
public function __construct(Agenda $model)
{
$this->model = $model;
}
public function get()
{
}
public function paginate()
{
}
public function update($data, $agenda)
{
return $this->model->updateOrCreate([
'agenda_id' => $agenda->id,
], $data);
}
}
$(function () {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
var table = $('.data-table').DataTable({
processing: true,
serverSide: true,
responsive: true,
ajax: url,
columns: [
{ data: 'DT_RowIndex', name: 'DT_RowIndex' },
{ data: 'title', name: 'title' },
{ data: 'date', name: 'date' },
{ data: 'status', name: 'status' },
{ data: 'action', name: 'action', orderable: false, searchable: false },
],
columnDefs: [
{ className: 'text-center', targets: [0, 2, 3, 4]},
{ className: 'text-left', targets: [1]},
],
});
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
swal({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No",
closeOnConfirm: false,
closeOnCancel: false
},
function (isConfirm) {
if (isConfirm) {
swal.close();
setTimeout(function () {
$.ajax({
dataType: 'json',
type: 'DELETE',
url: url + '/' + id,
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
}).done(function (data) {
table.draw();
swal({
title: "Data berhasil dihapus!",
type: "success",
timer: "3000"
});
});
}, 1000); // 1 second delay
}
else {
swal("Dibatalkan", "Data batal dihapus", "error");
}
}
);
});
});
$(function () {
//iCheck for checkbox and radio inputs
$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
checkboxClass: 'icheckbox_minimal-blue',
radioClass: 'iradio_minimal-blue'
});
});
function printErrorMsg(msg) {
$(".print-error-msg").find("ul").html('');
$(".print-error-msg").css('display', 'block');
$.each(msg, function (key, value) {
$(".print-error-msg").find("ul").append('<li>' + value + '</li>');
});
}
......@@ -9,6 +9,7 @@ return [
'file' => 'Files',
'gallery' => 'Galleries',
'information' => 'Informations',
'agenda' => 'Agendas',
'menu' => 'Menu',
'page' => 'Pages',
'post' => 'Posts',
......@@ -22,6 +23,7 @@ return [
'create_file' => 'Create File',
'create_gallery' => 'Create Gallery',
'create_information' => 'Create Information',
'create_agenda' => 'Create Agenda',
'create_menu' => 'Create Menu',
'create_page' => 'Create Page',
'create_post' => 'Create Post',
......@@ -35,6 +37,7 @@ return [
'edit_file' => 'Edit File',
'edit_gallery' => 'Edit Gallery',
'edit_information' => 'Edit Information',
'edit_agenda' => 'Edit Agenda',
'edit_menu' => 'Edit Menu',
'edit_page' => 'Edit Page',
'edit_post' => 'Edit Post',
......
......@@ -9,6 +9,7 @@ return [
'file' => 'Dokumen',
'gallery' => 'Gallery',
'information' => 'Informasi',
'agenda' => 'Agenda',
'menu' => 'Menu',
'page' => 'Halaman',
'post' => 'Berita',
......@@ -22,6 +23,7 @@ return [
'create_file' => 'Tambah Dokumen',
'create_gallery' => 'Tambah Gallery',
'create_information' => 'Tambah Informasi',
'create_agenda' => 'Tambah Agenda',
'create_menu' => 'Tambah Menu',
'create_page' => 'Tambah Halaman',
'create_post' => 'Tambah Berita',
......@@ -35,6 +37,7 @@ return [
'edit_file' => 'Ubah Dokumen',
'edit_gallery' => 'Ubah Gallery',
'edit_information' => 'Ubah Informasi',
'edit_agenda' => 'Ubah Agenda',
'edit_menu' => 'Ubah Menu',
'edit_page' => 'Ubah Halaman',
'edit_post' => 'Ubah Berita',
......
@extends('webprofile.backend.layouts.master')
@section('title')
{{ $title }}
@stop
@section('assets')
<link rel="stylesheet" href="{!! asset('backend/assets/select2/select2.min.css') !!}">
<style media="screen">
.tkh{
color: black;
}
</style>
@stop
@section('breadcrumbs')
<li><a href="{{ url('dashboard') }}">@lang('label.dashboard')</a></li>
<li class="active">@lang('feature.create_agenda')</li>
@stop
@section('content')
<!-- page start-->
<div class="row">
{!! Form::open(array('url' => route('agendas.store'), 'method' => 'POST', 'id' => 'agendas', 'files' => true)) !!}
{!! csrf_field() !!}
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><strong>@lang('label.create')</strong> @lang('feature.agenda')</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
</div>
</div>
</div>
<div class="col-md-12">
<div class="block">
{{ Form::textarea('content', null, array('id'=>'content')) }}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><strong>@lang('label.event_date')</strong></h3>
<ul class="panel-controls">
<li><a href="#" class="panel-collapse"><span class="fa fa-angle-down"></span></a></li>
</ul>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<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('event_date', date('Y-m-d'), array('class' => 'form-control datepicker')) }}
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group" style="padding-top: 10px;">
<label class="col-md-2 control-label">@lang('label.status')</label>
<div class="col-md-6">
<center><label class="switch">
{{ Form::checkbox('info_status', 1, true) }}
<span></span>
</label></center>
</div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
</div>
</div>
</div>
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-footer">
<button class="btn btn-info pull-right">@lang('label.save')</button>
</div>
</div>
</div>
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Keywords</h3>
<ul class="panel-controls">
<li><a href="#" class="panel-collapse"><span class="fa fa-angle-down"></span></a></li>
</ul>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
</div>
</div>
</div>
{!! Form::close() !!}
</div>
<!-- page end-->
@stop
@section('script')
{!! Html::script('backend/assets/select2/select2.full.min.js') !!}
{!! Html::script('backend/js/plugins/bootstrap/bootstrap-datepicker.js') !!}
{!! Html::script('backend/js/plugins/bootstrap/bootstrap-timepicker.min.js') !!}
{!! Html::script('backend/js/plugins/bootstrap/bootstrap-file-input.js') !!}
{!! Html::script('backend/js/plugins/summernote/summernote.js') !!}
<script type="text/javascript">
function PreviewImage() {
var oFReader = new FileReader();
oFReader.readAsDataURL(document.getElementById("uploadImage").files[0]);
oFReader.onload = function (oFREvent) {
document.getElementById("uploadPreview").src = oFREvent.target.result;
};
};
$(document).ready(function() {
$('#content').summernote({
height: 400
});
});
</script>
@stop
@extends('webprofile.backend.layouts.master')
@section('assets')
<link rel="stylesheet" href="{!! asset('backend/js/datatables.net-bs/css/dataTables.bootstrap.min.css') !!}">
<meta name="csrf-token" content="{{ csrf_token() }}">
@endsection
@section('title')
{{ $title }}
@stop
@section('breadcrumbs')
<li><a href="{{ url('dashboard') }}">@lang('label.dashboard')</a></li>
<li class="active">@lang('feature.agenda')</li>
@stop
@section('content')
<!-- page start-->
<div class="row">
<div class="col-lg-12">
<!-- START DEFAULT DATATABLE -->
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{!! $title !!}</h3>
<a class="btn btn-info" href="{{URL::to('webprofile/agendas/create')}}" style="margin: 0cm 0px 0cm 10px;">@lang('label.create')</a>
<ul class="panel-controls">
<li><a href="#" class="panel-collapse"><span class="fa fa-angle-down"></span></a></li>
</ul>
</div>
<div class="panel-body">
<table class="table table-hover data-table" width="100%">
<thead>
<tr>
<th width="5%" style="text-align: center;">@lang('label.number')</th>
<th style="text-align: center;">@lang('label.title')</th>
<th width="15%" style="text-align: center;">@lang('label.date')</th>
<th width="10%" style="text-align: center;">@lang('label.status')</th>
<th align="center" width="15%" style="text-align: center;">@lang('label.action')</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- END DEFAULT DATATABLE -->
</div>
</div>
<!-- page end-->
@stop
@section('script')
<script src="{!!asset('backend/js/datatables.net/js/jquery.dataTables.min.js') !!}"></script>
<script src="{!!asset('backend/js/datatables.net-bs/js/dataTables.bootstrap.min.js') !!}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/dataTables.buttons.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.bootstrap4.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.colVis.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.html5.min.js') }}"></script>
<script src="{{ url('backend/assets/plugins/jquery-datatable/buttons/buttons.print.min.js') }}"></script>
<script>
var url = "{{ route('agendas.index') }}";
</script>
{{ Html::script('js/master/agenda.js') }}
@stop
......@@ -20,6 +20,9 @@
</ul>
</li>
<li>
<a href="{{ url('webprofile/agendas') }}"><span class="fa fa-info-circle"></span><span class="xn-text">@lang('feature.agenda')</span></a>
</li>
<li>
<a href="{{ url('webprofile/informations') }}"><span class="fa fa-info-circle"></span><span class="xn-text">@lang('feature.information')</span></a>
</li>
<li>
......
@extends('webprofile.front.jollyany.master')
@section('meta')
<meta name="{{ Str::slug($data->title) }}" content="custom"/>
<meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}">
<meta name="keywords" content="{{ $data->keys }}">
<meta name="author" content="{{ $setting['header_admin'] }}">
@endsection
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
<h1>{!! $data->title !!}</h1>
<div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
{!! $data->content !!}
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
@extends('webprofile.front.jollyany.master')
@section('meta')
<meta name="{{ Str::slug($setting['web_title']) }}" content="custom"/>
<meta name="description" content="{{ $setting['web_title'] }}">
@if(array_key_exists('default_keyword', $setting))
<meta name="keywords" content="{{ $setting['default_keyword'] }}">
@endif
<meta name="author" content="{{ $setting['web_title'] }}">
@endsection
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<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>
@else
<li><a href="{{'/'}}" style="text-transform: capitalize;">beranda</a></li>
<li style="text-transform: capitalize;">agenda</li>
@endif
</ul>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="">
<div class="flexslider">
@foreach($data as $value)
@if ($title != 'Agenda')
<div class="row">
<div class="headline">
<h2><a target="_blank" href="{!! url('information/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
</div>
<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 class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('information/'.$value->slug) !!}">
Selengkapnya »»</a>
</div>
</div>
@else
<div class="row">
<div class="headline">
<h2><a target="_blank" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
</div>
<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 class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('agenda/'.$value->slug) !!}">
Selengkapnya »»</a>
</div>
</div>
@endif
@endforeach
</div>
<div class="clearfix"></div>
<hr>
{!! $data->render() !!}
</div><!-- end post-slider -->
</div><!-- end entry -->
</div><!-- end blog-carousel -->
</div><!-- end blog-masonry -->
</div><!-- end widget -->
</div><!-- end left-sidebar -->
{{--@include('webprofile.front.jollyany.widget')--}}
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>جدول أعمال - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
@if ($data->rSa)
<h1>{!! $data->rSa->title !!}</h1>
@endif
<div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} الآراء</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
@if ($data->rSa)
{!! $data->rSa->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.ar.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
......@@ -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 -->
......
......@@ -61,12 +61,12 @@
@else
<div class="row">
<div class="headline">
<h2><a target="_blank" href="{!! url('information/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
<h2><a target="_blank" href="{!! url('agenda/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
</div>
<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 class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('information/'.$value->slug) !!}">
<br><a class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('agenda/'.$value->slug) !!}">
Selengkapnya »»</a>
</div>
</div>
......
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
@if ($data->rDe)
<h1>{!! $data->rDe->title !!}</h1>
@endif
<div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Ansichten</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
@if ($data->rDe)
{!! $data->rDe->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.de.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
......@@ -4,7 +4,7 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
<h2>Bekanntmachung - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
......
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
@if ($data->rEn)
<h1>{!! $data->rEn->title !!}</h1>
@endif
<div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
@if ($data->rEn)
{!! $data->rEn->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.en.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
......@@ -4,7 +4,7 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
<h2>Announcement - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
......
......@@ -104,10 +104,25 @@
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</div> --}}
<div class="widget">
<div class="title">
<h2>Agenda</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($agenda as $value)
<li>
<a href="{!! url('agenda/'.$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('agendas') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
<div class="title">
<h2>AGENDA</h2>
<h2>Pengumuman</h2>
</div><!-- end title -->
<ul class="recent_posts_widget">
@foreach($info as $value)
......@@ -117,7 +132,7 @@
</li>
@endforeach
</ul>
<a href="{!! url('agenda') !!}" class="btn btn-primary">Lihat Agenda Selengkapnya</a>
<a href="{!! url('informations') !!}" class="btn btn-primary">Lihat Pengumuman Selengkapnya</a>
</div><!-- end widget -->
<div class="widget">
......
......@@ -11,16 +11,31 @@
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>Agenda - {!! $data->title !!}</h2>
<h2>Pengumuman - {!! $data? $data->title : 'Semua Pengumuman' !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
{{--
@foreach($informations as value)
<div class="row">
<div class="headline">
<h2><a target="_blank" href="{!! url('information/'.$value->slug) !!}">{!! $value->title !!}</a></h2>
</div>
<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 class="pull-right" style="padding-right: 20px;" target="_blank" href="{!! url('information/'.$value->slug) !!}">
Selengkapnya »»</a>
</div>
</div>
@endforeach--}}
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
......@@ -39,7 +54,32 @@
</div>
</div>
</div>
@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 Pengumuman</h2>
<ul class="nav nav-tabs nav-stacked">
@foreach($informations as $value)
<li><a class="unesa-link" href="{!! url('information/'.$value->slug) !!}">{!! $value->slug !!}</a></li>
@endforeach
</ul>
@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>
</div>
</div>
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
......
@extends('webprofile.front.jollyany.master')
@section('content')
<section class="post-wrapper-top jt-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2>议程 - {!! $data->title !!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="blog-wrapper">
<div class="container">
<div class="row">
<div id="main-content" class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="row">
<div class="blog-masonry">
<div class="col-lg-12">
<div class="blog-carousel">
<div class="blog-carousel-header">
@if ($data->rZh)
<h1>{!! $data->rZh->title !!}</h1>
@endif
<div class="blog-carousel-meta">
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} 观看次数</a></span>
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
<div class="blog-carousel-desc">
@if ($data->rZh)
{!! $data->rZh->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.zh.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
......@@ -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 -->
......
......@@ -17,6 +17,7 @@ Route::group(['middleware' => 'auth'], function () {
Route::resource('category', 'CategoryController');
Route::resource('posts', 'PostController');
Route::resource('pages', 'PageController');
Route::resource('agendas', 'AgendaController');
Route::resource('informations', 'InformationController');
Route::resource('settings', 'SettingController');
Route::resource('sliders', 'SliderController');
......
......@@ -7,7 +7,9 @@ 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', 'AgendaController@index')->name('agenda');
Route::get('agenda/{id}', 'AgendaController@index')->name('agenda');
Route::get('agendas', 'AgendaController2@index')->name('agendas');
Route::get('informations', 'InformationController2@index')->name('informations');
Route::get('error', 'ErrorController@index')->name('error');
Route::get('download', 'DownloadController@index')->name('download');
Route::get('downloadlink/{data}', 'DownloadController@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