admin.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <!DOCTYPE html>
  2. <!--
  3. This is a starter template page. Use this page to start your new project from
  4. scratch. This page gets rid of all links and provides the needed markup only.
  5. -->
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <title>{{ENV('APP_NAME')}}</title>
  11. <!-- Tell the browser to be responsive to screen width -->
  12. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  13. <!-- Bootstrap 3.3.7 -->
  14. <link rel="stylesheet" href="/backend/bootstrap/css/bootstrap.min.css">
  15. <!-- Font Awesome -->
  16. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  17. <!-- Ionicons -->
  18. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  19. <!-- Theme style -->
  20. <link rel="stylesheet" href="/backend/dist/css/AdminLTE.min.css">
  21. <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
  22. page. However, you can choose any other skin. Make sure you
  23. apply the skin class to the body tag so the changes take effect.
  24. -->
  25. <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css" rel="stylesheet">
  26. @if(false)
  27. <!--<link rel="stylesheet" href="/plugins/wysiwyg/wysiwyg.css">
  28. <!--<link rel="stylesheet" href="/backend/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">-->
  29. @endif
  30. <link rel="stylesheet" href="/backend/dist/css/skins/skin-black.min.css">
  31. <link rel="stylesheet" href="/backend/css/admin-custom.css">
  32. @yield('extra_css')
  33. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  34. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  35. <!--[if lt IE 9]>
  36. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  37. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  38. <![endif]-->
  39. </head>
  40. <!--
  41. BODY TAG OPTIONS:
  42. =================
  43. Apply one or more of the following classes to get the
  44. desired effect
  45. |---------------------------------------------------------|
  46. | SKINS | skin-blue |
  47. | | skin-black |
  48. | | skin-purple |
  49. | | skin-yellow |
  50. | | skin-red |
  51. | | skin-green |
  52. |---------------------------------------------------------|
  53. |LAYOUT OPTIONS | fixed |
  54. | | layout-boxed |
  55. | | layout-top-nav |
  56. | | sidebar-collapse |
  57. | | sidebar-mini |
  58. |---------------------------------------------------------|
  59. -->
  60. <body class="hold-transition skin-black fixed sidebar-mini">
  61. <div class="wrapper">
  62. <!-- Main Header -->
  63. <header class="main-header">
  64. <!-- Logo -->
  65. <a href="/admin/dashboard" class="logo">
  66. <!-- mini logo for sidebar mini 50x50 pixels -->
  67. <span class="logo-mini">{{ENV('APP_NAME')}}</span>
  68. <!-- logo for regular state and mobile devices -->
  69. <span class="logo-lg"><img src="/logo.png" width="80"></span>
  70. </a>
  71. <!-- Header Navbar -->
  72. <nav class="navbar navbar-static-top" role="navigation">
  73. <!-- Sidebar toggle button-->
  74. <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
  75. <span class="sr-only">Toggle navigation</span>
  76. </a>
  77. <!-- Navbar Right Menu -->
  78. <div class="navbar-custom-menu">
  79. <ul class="nav navbar-nav">
  80. <li><a href="/" target="_blank">HOME</a></li>
  81. <li class="dropdown user user-menu">
  82. <!-- Menu Toggle Button -->
  83. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  84. <!-- The user image in the navbar-->
  85. <img src="/backend/dist/img/profile.png" class="user-image" alt="User Image">
  86. <!-- hidden-xs hides the username on small devices so only the image appears. -->
  87. <span class="hidden-xs">{{ Auth::user()->name }}</span>
  88. </a>
  89. <ul class="dropdown-menu">
  90. <li class="user-header">
  91. <img src="/backend/dist/img/profile.png" class="img-circle" alt="User Image">
  92. <p>
  93. {{ Auth::user()->name }}
  94. </p>
  95. </li>
  96. <li class="user-footer">
  97. <!--<div class="pull-left">
  98. <a href="#" class="btn btn-default btn-flat">Profile</a>
  99. </div>-->
  100. <div class="pull-right">
  101. <a href="/logout" class="btn btn-default btn-flat">Logout</a>
  102. </div>
  103. </li>
  104. </ul>
  105. </li>
  106. </ul>
  107. </div>
  108. </nav>
  109. </header>
  110. <!-- Left side column. contains the logo and sidebar -->
  111. <aside class="main-sidebar">
  112. <!-- sidebar: style can be found in sidebar.less -->
  113. <section class="sidebar">
  114. <!-- Sidebar user panel (optional) -->
  115. <div class="user-panel">
  116. <div class="pull-left image">
  117. <img src="/backend/dist/img/profile.png" class="img-circle" alt="User Image">
  118. </div>
  119. <div class="pull-left info">
  120. <p>{{ Auth::user()->name }}</p>
  121. <!-- Status -->
  122. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  123. </div>
  124. </div>
  125. <!-- Sidebar Menu -->
  126. <ul class="sidebar-menu">
  127. <li><a href="/admin/dashboard"><i class="fa fa-link"></i> <span>Dashboard</span></a></li>
  128. <li class="header" style="color:white; font-weight: bold;">CONTENUTI, SEZIONI e BANNER</li>
  129. <li><a href="/admin/news"><i class="fa fa-link"></i> <span>Crea news/News pubblicate</span></a></li>
  130. <li><a href="/admin/breaking_news"><i class="fa fa-link"></i> <span>Gestione Breaking News</span></a></li>
  131. <li><a href="/admin/home"><i class="fa fa-link"></i> <span>Gestione primo piano</span></a></li>
  132. <li><a href="/admin/sections"><i class="fa fa-link"></i> <span>Gestione layout, news e banner</span></a></li>
  133. @if(Auth::user()->level == 0 || Auth::user()->level == 2)
  134. <li><a href="/admin/events"><i class="fa fa-link"></i> <span>Gestione pagine Eventi</span></a></li>
  135. <li><a href="/admin/pages"><i class="fa fa-link"></i> <span>Gestione Pagine Web</span></a></li>
  136. <li><a href="/admin/home_adv"><i class="fa fa-link"></i> <span>Gestione banner home-top</span></a></li>
  137. <li><a href="/admin/videos"><i class="fa fa-link"></i> <span>Gestione Video homepage</span></a></li>
  138. <li class="header" style="color:white; font-weight: bold;">CAMPIONATI</li>
  139. <li><a href="/admin/seasons"><i class="fa fa-link"></i> <span>Crea Stagione</span></a></li>
  140. <li><a href="/admin/calendars"><i class="fa fa-link"></i> <span>Crea calendario/import</span></a></li>
  141. <li><a href="/admin/categories"><i class="fa fa-link"></i> <span>Gestione Categorie/gironi</span></a></li>
  142. <li><a href="/admin/teams"><i class="fa fa-link"></i> <span>Modifica Squadre</span></a></li>
  143. @if(Auth::user()->level == 0)
  144. <li class="header" style="color:white; font-weight: bold;">MULTIMEDIA</li>
  145. <li><a href="/admin/home_radio"><i class="fa fa-link"></i> <span>Gestione Webradio</span></a></li>
  146. <li class="header" style="color:white; font-weight: bold;">AMMINISTRAZIONE</li>
  147. <li><a href="/admin/users"><i class="fa fa-link"></i> <span>Gestione Utenti</span></a></li>
  148. @endif
  149. @endif
  150. </ul>
  151. <!-- /.sidebar-menu -->
  152. </section>
  153. <!-- /.sidebar -->
  154. </aside>
  155. <!-- Content Wrapper. Contains page content -->
  156. <div class="content-wrapper">
  157. <!-- Content Header (Page header) -->
  158. <section class="content-header">
  159. <h1>
  160. @yield('title')
  161. </h1>
  162. <ol class="breadcrumb" style="min-width: 50%">
  163. @yield('breadcrumb')
  164. </ol>
  165. </section>
  166. <!-- Main content -->
  167. <section class="content">
  168. @if (Session::has('message'))
  169. <div class="alert alert-success alert-dismissable">
  170. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  171. {{ Session::get('message') }}
  172. </div>
  173. @endif
  174. @if (Session::has('error'))
  175. <div class="alert alert-danger alert-dismissable">
  176. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  177. {{ Session::get('error') }}
  178. </div>
  179. @endif
  180. @if ($errors->any())
  181. <div class="alert alert-danger alert-dismissable">
  182. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
  183. @foreach ( $errors->all() as $error )
  184. <p>{{ $error }}</p>
  185. @endforeach
  186. </div>
  187. @endif
  188. @yield('content')
  189. </section>
  190. <!-- /.content -->
  191. </div>
  192. <!-- /.content-wrapper -->
  193. <!-- Main Footer -->
  194. <footer class="main-footer">
  195. <!-- To the right -->
  196. <div class="pull-right hidden-xs">
  197. </div>
  198. <!-- Default to the left -->
  199. <strong>Copyright &copy; {{date("Y")}} <a href="#">Calcio a 5 anteprima</a>.</strong> All rights reserved.
  200. </footer>
  201. <!-- /.control-sidebar -->
  202. <!-- Add the sidebar's background. This div must be placed
  203. immediately after the control sidebar -->
  204. </div>
  205. <!-- ./wrapper -->
  206. <!-- REQUIRED JS SCRIPTS -->
  207. <!-- jQuery 2.2.3 -->
  208. <script src="/backend/plugins/jQuery/jquery-2.2.3.min.js"></script>
  209. <!-- Bootstrap 3.3.7 -->
  210. <script src="/backend/bootstrap/js/bootstrap.min.js"></script>
  211. <!-- AdminLTE App -->
  212. <script src="/backend/dist/js/app.min.js"></script>
  213. @if(false)
  214. <script src="/plugins/wysiwyg/wysiwyg.js"></script>
  215. <script src="/backend/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
  216. @endif
  217. <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
  218. <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/lang/summernote-it-IT.js"></script>
  219. <script type="text/javascript">
  220. $('.onlyNumber').keyup(function () {
  221. this.value = this.value.replace(/[^0-9\.]/g,'');
  222. });
  223. </script>
  224. @yield('extra_js')
  225. <script src="/backend/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
  226. <!-- Optionally, you can add Slimscroll and FastClick plugins.
  227. Both of these plugins are recommended to enhance the
  228. user experience. Slimscroll is required when using the
  229. fixed layout. -->
  230. </body>
  231. </html>