ALPHA 3.0.4

This commit is contained in:
TheGamecraft
2018-09-14 17:25:50 -04:00
parent d1c3d60791
commit 99ae047998
173 changed files with 26543 additions and 12060 deletions

View File

@@ -0,0 +1,7 @@
<footer class="footer">
<div class="container-fluid">
<div class="copyright pull-right">
&copy; <script>document.write(new Date().getFullYear())</script> - <a href="https://gitlab.com/TheGamecraft/c-cms/">C-CMS</a><br>Template made with <i class="fa fa-heart heart"></i> by <a href="http://www.creative-tim.com">Creative Tim</a><div>Icons by <a href="https://www.flaticon.com/authors/pixel-buddha" title="Pixel Buddha">Pixel Buddha</a> under license <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
</div>
</div>
</footer>

View File

@@ -0,0 +1,28 @@
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="/assets/ecc/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Espace Cadet Cadre</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<!-- Bootstrap core CSS -->
<link href="/assets/ecc/assets/css/bootstrap.min.css" rel="stylesheet" />
<!-- Animation library for notifications -->
<link href="/assets/ecc/assets/css/animate.min.css" rel="stylesheet"/>
<!-- Paper Dashboard core CSS -->
<link href="/assets/ecc/assets/css/paper-dashboard.css" rel="stylesheet"/>
<link href="/assets/css/calendar.css" rel="stylesheet"/>
<!-- Fonts and icons -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'>
<link href="/assets/ecc/assets/css/themify-icons.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.18/datatables.min.css"/>
</head>

View File

@@ -0,0 +1,48 @@
<?php
$nbOfNotification = 0;
foreach (Auth::user()->unreadNotifications as $notification) {
$nbOfNotification = $nbOfNotification + 1;
}
?>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar bar1"></span>
<span class="icon-bar bar2"></span>
<span class="icon-bar bar3"></span>
</button>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i><img src="/assets/icons/alarm.svg" style="height:20px;margin-top:-8px;"></i>
<p class="notification">{{$nbOfNotification}}</p>
<p>Notifications</p>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
@foreach (Auth::user()->unreadNotifications as $notification)
<li><a href="#">{{$notification->data['msg']}}</a></li>
@endforeach
</ul>
</li>
<li>
<a href="/ecc/settings">
<i><img src="/assets/icons/settings.svg" style="height:20px;margin-top:-8px;"></i>
<p>Options</p>
</a>
</li>
<li>
<a href="/logout">
<p>Déconnexion</p>
</a>
</li>
</ul>
</div>
</div>
</nav>

View File

@@ -0,0 +1,33 @@
<!doctype html>
<html lang="en">
@include('layouts.ecc.head')
<body>
<div class="wrapper">
@include('layouts.ecc.sidebar')
<div class="main-panel">
@include('layouts.ecc.header')
<div class="content">
<div class="container-fluid">
@yield('content')
</div>
</div>
@include('layouts.ecc.footer')
</div>
</div>
</body>
@include('layouts.ecc.scripts')
@yield('custom_scripts')
</html>

View File

@@ -0,0 +1,27 @@
<!-- Core JS Files -->
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script src="/assets/ecc/assets/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Checkbox, Radio & Switch Plugins -->
<script src="/assets/ecc/assets/js/bootstrap-checkbox-radio.js"></script>
<!-- Charts Plugin -->
<script src="/assets/ecc/assets/js/chartist.min.js"></script>
<!-- Notifications Plugin -->
<script src="/assets/ecc/assets/js/bootstrap-notify.js"></script>
<!-- Google Maps Plugin -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>
<!-- Paper Dashboard Core javascript and methods for Demo purpose -->
<script src="/assets/ecc/assets/js/paper-dashboard.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.18/datatables.min.js"></script>
<script>
var api_token = "<?php echo Auth::User()->api_token ?>";
</script>

View File

@@ -0,0 +1,69 @@
<div class="sidebar" data-background-color="black" data-active-color="warning">
<!--
Tip 1: you can change the color of the sidebar's background using: data-background-color="white | black"
Tip 2: you can change the color of the active button using the data-active-color="primary | info | success | warning | danger"
-->
<div class="sidebar-wrapper">
<div class="logo" style="padding:0px">
<a href="/ecc" class="simple-text">
<img src="/assets/ecc/assets/img/ECCLOGO.png" alt="LOGO" style="width:65%">
</a>
</div>
@yield('active_page')
<ul class="nav">
<li @if ($active_page == "dashboard") class="active" @endif>
<a href="/ecc">
<i><img src="/assets/icons/browser.svg" style="height:30px;margin-top:-10px;"></i>
<p>Dashboard</p>
</a>
</li>
<li @if ($active_page == "message") class="active" @endif>
<a href="/ecc/messages">
<i><img src="/assets/icons/news.svg" style="height:32px;margin-top:-11px;"></i>
<p>Messages</p>
</a>
</li>
<li @if ($active_page == "calendar") class="active" @endif>
<a href="/ecc/calendar">
<i><img src="/assets/icons/calendar.svg" style="height:32px;margin-top:-11px;"></i>
<p>Horaire</p>
</a>
</li>
<li @if ($active_page == "guide") class="active" @endif>
<a href="/ecc/guide">
<i><img src="/assets/icons/book.svg" style="height:32px;margin-top:-11px;"></i>
<p>Guide Pédagogique</p>
</a>
</li>
<li @if ($active_page == "list") class="active" @endif>
<a href="/ecc/list">
<i><img src="/assets/icons/id-card.svg" style="height:32px;margin-top:-11px;"></i>
<p>Liste des cadets</p>
</a>
</li>
<li @if ($active_page == "file") class="active" @endif>
<a href="/ecc/files">
<i><img src="/assets/icons/save.svg" style="height:32px;margin-top:-11px;"></i>
<p>Fichier</p>
</a>
</li>
<br>
<li @if ($active_page == "update") class="active" @endif>
<a href="/ecc/update">
<i><img src="/assets/icons/timer.svg" style="height:27px;margin-top:-11px;"></i>
<p style="font-size: 11px;">Mise à jour</p>
</a>
</li>
<li @if ($active_page == "file") class="active" @endif>
<a href="https://gitlab.com/TheGamecraft/c-cms/issues">
<i><img src="/assets/icons/hospital.svg" style="height:20px;margin-top:-11px;"></i>
<p style="font-size: 11px;">Signaler un bug</p>
</a>
</li>
</ul>
</div>
</div>