<?php $__env->startSection('css_page_level'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css')); ?>"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-content-wrapper'); ?>
	<div class="page-content-wrapper" id="main">
		<div class="page-content">
			<!-- BEGIN PAGE HEADER-->
			<h3 class="page-title">
			<?php $setting = app('anlutro\LaravelSettings\Facade'); ?>
			<?php echo e($setting::get('system_name','全方位建築智慧化管理系統')); ?> <small><?php echo e($setting::get('company_name','新保科技')); ?></small>
			</h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="<?php echo e(route('manage::index')); ?>"><?php echo app('translator')->get('messages.homepage'); ?></a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#"><?php echo app('translator')->get('messages.community_manage'); ?></a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="<?php echo e(action('Manage\Platform\AboutController@index')); ?>"><?php echo app('translator')->get('messages.about_neighberhood'); ?></a>
					</li>
				</ul>
				<div class="page-toolbar">

				</div>
			</div>
			<!-- END PAGE HEADER-->
			<!-- BEGIN DASHBOARD STATS -->
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN EXAMPLE TABLE PORTLET-->
					<div class="portlet light">
                        <div class="portlet-title">
                            <div class="caption">
                                <i class="icon-speech"></i>
                                <span class="caption-subject bold uppercase"><?php echo e($aboutus->title); ?></span>
                                <span class="caption-helper"><?php echo e($aboutus->created_at); ?> - <?php echo e($aboutus->author); ?></span>
                            </div>
                            <div class="actions">
                            	<a href="<?php echo e(action('Manage\Platform\AboutController@index')); ?>" class="btn btn-circle btn-default"><i class="fa fa-reply"></i> <?php echo app('translator')->get('messages.return_list'); ?> </a>
                                <a href="<?php echo e(action('Manage\Platform\AboutController@edit',['id'=>$aboutus->id])); ?>" class="btn btn-circle btn-default"><i class="fa fa-pencil"></i> <?php echo app('translator')->get('messages.edit'); ?> </a>
                                <a class="btn btn-circle btn-default btn_delete" url="<?php echo e(action('Manage\Platform\AboutController@destroy',['id'=>$aboutus->id])); ?>"><i class="fa fa-trash"></i> <?php echo app('translator')->get('messages.del'); ?> </a>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <?php if($aboutus->cover_img != ''): ?>
							<img src="<?php echo e($aboutus->cover_img); ?>" style="width:90%;">
							<hr>
                            <?php endif; ?>
                            <?php if($aboutus->file != ''): ?>
                            <h5><?php echo app('translator')->get('messages.down_annex'); ?></h5>
							<a type="button" class="btn green btn-xs" href="<?php echo e($aboutus->file); ?>"><?php echo e($original_filename); ?></a>
							<hr>
							<?php endif; ?>
							
							<?php echo $aboutus->content; ?>

                        </div>
                    </div>
					<!-- END EXAMPLE TABLE PORTLET-->
				</div>
			</div>
		</div>

	<input type="hidden" id="_token" name="_token" value="<?php echo e(csrf_token()); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('plugins_page_level'); ?>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/jquery-validation/js/jquery.validate.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/jquery-validation/js/additional-methods.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/datatables/media/js/jquery.dataTables.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('assets/global/plugins/bootbox/bootbox.min.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js_page_level'); ?>
<script>

$(document).on('click','.btn_delete',function(){
	bootbox.confirm("<?php echo app('translator')->get('messages.sure_del_aboutus'); ?>", function(result) {
		if(result == true){
			$.ajax({
				type : 'DELETE',
				dataType : 'json',
				url  : $(this).attr('url'),
				data : {
					_token   : $('#_token').val(),
				},
				success : function(sendback){
					window.location.replace('<?php echo e(action('Manage\Platform\AboutController@index')); ?>');
				},
				error : function(sendback){
					bootbox.alert('<?php echo app('translator')->get('messages.del_fail'); ?>');
				}
			});
		}
	}); 
});

</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.manage', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>