initial commit of full repository
This commit is contained in:
37
resources/views/components/calendar.blade.php
Normal file
37
resources/views/components/calendar.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset='utf-8' />
|
||||
<link href='https://cdn.jsdelivr.net/npm/fullcalendar@5.10.2/main.min.css' rel='stylesheet' />
|
||||
<script src='https://cdn.jsdelivr.net/npm/fullcalendar@5.10.2/main.min.js'></script>
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- MetisMenu CSS -->
|
||||
<link href="../css/metisMenu.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link href="../css/startmin.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom Fonts -->
|
||||
<link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var calendarEl = document.getElementById('calendar');
|
||||
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||||
|
||||
locale: 'it',
|
||||
initialView: 'timeGridWeek'
|
||||
|
||||
});
|
||||
calendar.render();
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id='calendar'></div>
|
||||
</body>
|
||||
</html>
|
||||
48
resources/views/components/chartGas.blade.php
Executable file
48
resources/views/components/chartGas.blade.php
Executable file
@@ -0,0 +1,48 @@
|
||||
@extends('letture.gas.list')
|
||||
@section('head_additional')
|
||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
google.charts.load('current', {'packages':['corechart']});
|
||||
google.charts.setOnLoadCallback(drawChart);
|
||||
|
||||
function drawChart() {
|
||||
var data = google.visualization.arrayToDataTable([
|
||||
['Data', 'Media'],
|
||||
@php $dateprec=NULL; @endphp
|
||||
|
||||
@foreach($lettureGas as $lettura)
|
||||
@php
|
||||
if (!is_null($dateprec))
|
||||
{
|
||||
$diffdate=date_diff(
|
||||
date_create_from_format('Y-m-d',$lettura->gas_date),
|
||||
date_create_from_format('Y-m-d',$dateprec)
|
||||
)->format('%a');
|
||||
$differenza=($lettura->gas_lettura)-$lettprec;
|
||||
$mediagg =($differenza/$diffdate);
|
||||
}
|
||||
@endphp
|
||||
['{{ $lettura->gas_date; }}', {{ $mediagg ?? '0' }}],
|
||||
@php
|
||||
$dateprec=$lettura->gas_date;
|
||||
$lettprec=$lettura->gas_lettura;
|
||||
@endphp
|
||||
@endforeach
|
||||
]);
|
||||
|
||||
var options = {
|
||||
title: 'Andamento media consumi giornalieri',
|
||||
curveType: 'function',
|
||||
legend: { position: 'bottom' }
|
||||
};
|
||||
|
||||
var chart = new google.visualization.LineChart(document.getElementById('curve_chart'));
|
||||
|
||||
chart.draw(data, options);
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@section('chart_divG')
|
||||
<div id="curve_chart" style="width: 480; height: 500px"></div>
|
||||
</body>
|
||||
@endsection
|
||||
55
resources/views/components/charts.blade.php
Normal file
55
resources/views/components/charts.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('conti.report.list')
|
||||
@section('head_additional')
|
||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
google.charts.load('current', {'packages':['corechart']});
|
||||
google.charts.setOnLoadCallback(drawChart);
|
||||
|
||||
function drawChart() {
|
||||
|
||||
var data = google.visualization.arrayToDataTable([
|
||||
['Categoria', 'resoconto'],
|
||||
@foreach($dataSpesa as $dato)
|
||||
['{{ $dato->cat_name; }}', {{ $dato->resoconto }}],
|
||||
@endforeach
|
||||
]);
|
||||
|
||||
var options = {
|
||||
title: 'Resoconto per categorie Spese'
|
||||
};
|
||||
|
||||
var chart = new google.visualization.PieChart(document.getElementById('piechartS'));
|
||||
|
||||
chart.draw(data, options);
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
google.charts.load('current', {'packages':['corechart']});
|
||||
google.charts.setOnLoadCallback(drawChart);
|
||||
|
||||
function drawChart() {
|
||||
|
||||
var data = google.visualization.arrayToDataTable([
|
||||
['Categoria', 'resoconto'],
|
||||
@foreach($dataEntrate as $dato)
|
||||
['{{ $dato->cat_name; }}', {{ $dato->resoconto }}],
|
||||
@endforeach
|
||||
]);
|
||||
|
||||
var options = {
|
||||
title: 'Resoconto per categorie Entrate'
|
||||
};
|
||||
|
||||
var chart = new google.visualization.PieChart(document.getElementById('piechartE'));
|
||||
|
||||
chart.draw(data, options);
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@section('chart_divS')
|
||||
<div id="piechartS" style="width: 500px; height: 500px;"></div>
|
||||
@endsection
|
||||
@section('chart_divE')
|
||||
<div id="piechartE" style="width: 500px; height: 500px;"></div>
|
||||
@endsection
|
||||
116
resources/views/components/menu.blade.php
Normal file
116
resources/views/components/menu.blade.php
Normal file
@@ -0,0 +1,116 @@
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-dashboard fa-fw"></i>Riepilogo</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-bar-chart-o fa-fw"></i>Spese/Incassi<span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a href="{{ route('movimenti'); }}">Lista Movimenti</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Nuovo Movimento<span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li>
|
||||
<a href="{{ route('movimentis'); }}">Spesa</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('movimentie'); }}">Entrata</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('categorie'); }}">Categorie</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('tags'); }}">Tags</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('resoconto'); }}">Resoconto Movimenti</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('export'); }}"><i class="fa fa-file-o fa-fw"></i>Esporta tutti i movimenti</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.nav-second-level -->
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-table fa-fw"></i> Letture contatori<span class="fa arrow"></span></a>
|
||||
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a href="{{ route('gas'); }}">GAS</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('enel'); }}">Energia Elettrica</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- <li>
|
||||
<a href="forms.html"><i class="fa fa-edit fa-fw"></i> Forms</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-wrench fa-fw"></i> UI Elements<span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a href="panels-wells.html">Panels and Wells</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="buttons.html">Buttons</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="notifications.html">Notifications</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="typography.html">Typography</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="icons.html"> Icons</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="grid.html">Grid</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.nav-second-level -->
|
||||
<!--</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-sitemap fa-fw"></i> Multi-Level Dropdown<span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a href="#">Second Level Item</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Second Level Item</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Third Level <span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-third-level">
|
||||
<li>
|
||||
<a href="#">Third Level Item</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Third Level Item</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Third Level Item</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Third Level Item</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.nav-third-level -->
|
||||
<!-- </li>
|
||||
</ul>
|
||||
<!-- /.nav-second-level -->
|
||||
<!--</li>-->
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-files-o fa-fw"></i>Amministrazione<span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li>
|
||||
<a class="active" href="#">Utenti</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Login Page</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.nav-second-level -->
|
||||
</li>
|
||||
58
resources/views/components/notifications.blade.php
Normal file
58
resources/views/components/notifications.blade.php
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
@extends('admin')
|
||||
@section('notification')
|
||||
<li class="dropdown navbar-inverse">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<i class="fa fa-bell fa-fw"></i> <b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-alerts">
|
||||
<li>
|
||||
<a href="#">
|
||||
<div>
|
||||
<i class="fa fa-comment fa-fw"></i> New Comment
|
||||
<span class="pull-right text-muted small">4 minutes ago</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<div>
|
||||
<i class="fa fa-twitter fa-fw"></i> 3 New Followers
|
||||
<span class="pull-right text-muted small">12 minutes ago</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<div>
|
||||
<i class="fa fa-envelope fa-fw"></i> Message Sent
|
||||
<span class="pull-right text-muted small">4 minutes ago</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<div>
|
||||
<i class="fa fa-tasks fa-fw"></i> New Task
|
||||
<span class="pull-right text-muted small">4 minutes ago</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<div>
|
||||
<i class="fa fa-upload fa-fw"></i> Server Rebooted
|
||||
<span class="pull-right text-muted small">4 minutes ago</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a class="text-center" href="#">
|
||||
<strong>See All Alerts</strong>
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@endsection
|
||||
19
resources/views/components/usermenu.blade.php
Normal file
19
resources/views/components/usermenu.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
<!-- USERMENU -->
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<i class="fa fa-user fa-fw"></i> @if(Auth::check())
|
||||
{{ Auth::user()->name }}
|
||||
@endif<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-user">
|
||||
<li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
|
||||
</li>
|
||||
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="{{ route('logout'); }}"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- /USERMENU -->
|
||||
Reference in New Issue
Block a user