2016-07-22 19:36:24 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2016-09-15 23:03:58 +08:00
|
|
|
<title>@yield('title') - {{ option('site_name') }}</title>
|
2016-09-05 22:18:34 +08:00
|
|
|
<link rel="shortcut icon" href="{{ assets('images/favicon.ico') }}">
|
2016-07-22 19:36:24 +08:00
|
|
|
<!-- Tell the browser to be responsive to screen width -->
|
|
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
|
<!-- App Styles -->
|
2016-09-15 11:04:08 +08:00
|
|
|
{!! bs_header('admin') !!}
|
2016-07-22 19:36:24 +08:00
|
|
|
|
|
|
|
@yield('style')
|
|
|
|
</head>
|
|
|
|
|
2016-08-28 10:05:21 +08:00
|
|
|
<?php $user = new App\Models\User(session('uid')); ?>
|
2016-07-22 19:36:24 +08:00
|
|
|
|
2016-09-15 23:03:58 +08:00
|
|
|
<body class="hold-transition {{ option('color_scheme') }} sidebar-mini">
|
2016-07-22 19:36:24 +08:00
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
<!-- Main Header -->
|
|
|
|
<header class="main-header">
|
|
|
|
|
|
|
|
<!-- Logo -->
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="{{ option('site_url') }}" class="logo">
|
2016-07-22 19:36:24 +08:00
|
|
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
|
|
|
<span class="logo-mini"> <i class="fa fa-bookmark"></i> </span>
|
|
|
|
<!-- logo for regular state and mobile devices -->
|
2016-09-15 23:03:58 +08:00
|
|
|
<span class="logo-lg">{{ option('site_name') }}</span>
|
2016-07-22 19:36:24 +08:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Header Navbar -->
|
|
|
|
<nav class="navbar navbar-static-top" role="navigation">
|
|
|
|
<!-- Sidebar toggle button-->
|
|
|
|
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
</a>
|
|
|
|
<!-- Navbar Right Menu -->
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
2016-09-26 22:13:39 +08:00
|
|
|
@include('vendor.language')
|
|
|
|
|
2016-07-22 19:36:24 +08:00
|
|
|
<!-- User Account Menu -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<!-- Menu Toggle Button -->
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
<!-- hidden-xs hides the username on small devices so only the image appears. -->
|
2016-09-15 23:03:58 +08:00
|
|
|
<span class="hidden-xs nickname">{{ bs_nickname($user) }}</span>
|
2016-07-22 19:36:24 +08:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<!-- The user image in the menu -->
|
|
|
|
<li class="user-header">
|
2016-09-05 22:18:34 +08:00
|
|
|
<img src="{{ avatar($user, 128) }}" alt="User Image">
|
2016-08-16 22:52:00 +08:00
|
|
|
<p>{{ $user->email }}</p>
|
2016-07-22 19:36:24 +08:00
|
|
|
</li>
|
|
|
|
<!-- Menu Footer-->
|
|
|
|
<li class="user-footer">
|
|
|
|
<div class="pull-left">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="{{ url('user/profile') }}" class="btn btn-default btn-flat">{{ trans('general.profile') }}</a>
|
2016-07-22 19:36:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-right">
|
2016-09-15 23:03:58 +08:00
|
|
|
<a href="javascript:logout();" class="btn btn-default btn-flat">{{ trans('general.logout') }}</a>
|
2016-07-22 19:36:24 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<!-- Left side column. contains the logo and sidebar -->
|
|
|
|
<aside class="main-sidebar">
|
|
|
|
|
|
|
|
<!-- sidebar: style can be found in sidebar.less -->
|
|
|
|
<section class="sidebar">
|
|
|
|
|
|
|
|
<!-- Sidebar user panel (optional) -->
|
|
|
|
<div class="user-panel">
|
|
|
|
<div class="pull-left image">
|
2016-09-05 22:18:34 +08:00
|
|
|
<img src="{{ avatar($user, 45) }}" alt="User Image">
|
2016-07-22 19:36:24 +08:00
|
|
|
</div>
|
|
|
|
<div class="pull-left info">
|
2016-09-15 23:03:58 +08:00
|
|
|
<p class="nickname">{{ bs_nickname($user) }}</p>
|
|
|
|
<i class="fa fa-circle text-success"></i> {{ trans('general.online') }}
|
2016-07-22 19:36:24 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Sidebar Menu -->
|
|
|
|
<ul class="sidebar-menu">
|
2016-09-15 23:03:58 +08:00
|
|
|
<li class="header">{{ trans('general.admin-panel') }}</li>
|
|
|
|
{!! bs_menu('admin', $__env->yieldContent('title')) !!}
|
|
|
|
|
|
|
|
<li class="header">{{ trans('general.back') }}</li>
|
|
|
|
<li><a href="{{ url('user') }}"><i class="fa fa-user"></i> <span>{{ trans('general.user-center') }}</span></a></li>
|
2016-07-22 19:36:24 +08:00
|
|
|
</ul><!-- /.sidebar-menu -->
|
|
|
|
</section>
|
|
|
|
<!-- /.sidebar -->
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
@yield('content')
|
|
|
|
|
|
|
|
<!-- Main Footer -->
|
|
|
|
<footer class="main-footer">
|
2016-09-15 23:03:58 +08:00
|
|
|
@if (option('show_footer_copyright'))
|
2016-07-22 19:36:24 +08:00
|
|
|
<!-- To the right -->
|
|
|
|
<div class="pull-right hidden-xs">
|
|
|
|
Powered with ❤ by <a href="https://github.com/printempw/blessing-skin-server">Blessing Skin Server</a>.
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<!-- Default to the left -->
|
2016-09-15 23:03:58 +08:00
|
|
|
{!! bs_copyright() !!}
|
2016-07-22 19:36:24 +08:00
|
|
|
</footer>
|
|
|
|
|
|
|
|
</div><!-- ./wrapper -->
|
|
|
|
|
|
|
|
<!-- App Scripts -->
|
2016-09-15 11:04:08 +08:00
|
|
|
{!! bs_footer('admin') !!}
|
2016-07-22 19:36:24 +08:00
|
|
|
|
2016-09-15 23:03:58 +08:00
|
|
|
@if (option('check_update') == '1')
|
2016-08-09 13:18:27 +08:00
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
2016-09-10 17:02:47 +08:00
|
|
|
var url = "{{ url('admin/update') }}";
|
|
|
|
$.getJSON(url + '?action=check', function(data) {
|
2016-08-09 13:18:27 +08:00
|
|
|
if (data.new_version_available == true)
|
2016-09-10 17:02:47 +08:00
|
|
|
$('[href="' + url + '"]').append('<span class="label label-primary pull-right">v'+data.latest_version+'</span>');
|
|
|
|
});
|
2016-08-09 13:18:27 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endif
|
|
|
|
|
2016-07-22 19:36:24 +08:00
|
|
|
@yield('script')
|
|
|
|
</body>
|
|
|
|
</html>
|