@extends('wysiwyg::backend.layouts.master_wysiwyg')

@section('leftmenu')
	<div>Menu</div>
@endsection

@section('content')

@yield('before-styles')
	{{ style('css/backend.css') }}
	{{ style('rvwysiwyguikit/core/jquery-ui-1.10.4.customs/css/custom-theme/jquery-ui-1.10.4.custom.min.css') }}

	{{ style('vendor/uikit-2.27.4/css/uikit-components-all.min.css') }}
@yield('after-styles')

<script type="text/javascript">
		var wex = JSON.parse("{!! addslashes(json_encode($wex))  !!}");
		console.log('== wex: wysiwyg export variable from UikitController ==');
		console.log(wex);
		
		//ยังไม่ต้อง
		var currentPageJSON = '{!! json_encode($currentPageData)  !!}';
		var globalSetting = '{!! addslashes($globalSetting)  !!}';
 		var lastpagemodifier = '{{$lastpagemodifier}}';
		var jsonPageStructure = {};
		var slugname = '{!! $currentPageData->slug->slug_name !!}';
		</script>

@yield('before-scripts')
		{!! script('rvwysiwyguikit/core/jquery-ui-1.10.4.customs/js/jquery-1.10.2.js') !!} 
		{!! script('rvwysiwyguikit/core/jquery-ui-1.10.4.customs/js/jquery-ui-1.10.4.custom.js') !!} 
		{!! script('rvwysiwyguikit/core/jquery-plugins/migrate/jquery-migrate-1.2.1.js') !!}
		{!! script('rvwysiwyguikit/core/jquery-plugins/migrate/RVwys-migrate.js') !!} 

		{!! script('vendor/uikit-2.27.4/js/uikit.min.js') !!} 
		{!! script('vendor/uikit-2.27.4/js/uikit-core.min.js') !!} 
		{!! script('vendor/uikit-2.27.4/js/uikit-components-all.min.js') !!} 
		{!! script('js/rvsb-js/rvsb-slideshow-slider.js') !!}
		{!! script('storage/json/freeImages.json') !!}
		{!! script('storage/json/storeimages.json') !!} 
		{!! script('storage/json/myimages.json') !!}
		{!! script('storage/json/tagfolder.json') !!} 
		{!! script('storage/parallax.json') !!}  
	
		<!-- wysiwyg -->
		{!! script('js/apps/master_wysiwyg.js') !!} 
		{!! script('rvwysiwyguikit/live/js.php?testcode=0&theme=uikit') !!} 
		<!-- wyswiyg -->
@yield('after-scripts')
@stop