%PDF- %PDF-
Direktori : /var/www/pjc/resources/views/planning/ |
Current File : /var/www/pjc/resources/views/planning/index.blade.php |
<?php use App\Utility; ?> @extends('layouts.main') @section('content') <!-- START BREADCRUMB --> <ul class="breadcrumb"> <li><a href="">Home</a></li> <li class="active">Planning</li> </ul> <!-- END BREADCRUMB --> <div class="row"> <div class="col-md-12"> @if (Session::has('message')) <div class="alert alert-success" role="alert"> <button type="button" class="close" data-dismiss="alert"> <button type="button" class="close" data-dismiss="alert"> <span aria-hidden="true">×</span><span class="sr-only">Close</span> </button> {{{ Session::get('message') }}}. </div> @endif <div class="panel panel-colorful"> <div class="panel-heading ui-draggable-handle"> <h1 class="panel-title">Scegliere mese</h1> </div> <div class="panel-body"> <div class="row"> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(1,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[1,date('y')]) }}">Gennaio<br> {{Utility::oreCaricoMeseTot(1,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(1,date('y'),Session::get('idUtente'),1)}} </a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[1,date('y')]) }}">Gennaio<br> {{Utility::oreCaricoMeseTot(1,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(1,date('y'),Session::get('idUtente'),1)}} </a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(2,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[2,date('y')]) }}">Febbraio<br> {{Utility::oreCaricoMeseTot(2,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(2,date('y'),Session::get('idUtente'),1)}} </a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[2,date('y')]) }}">Febbraio {{Utility::oreCaricoMeseTot(2,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(2,date('y'),Session::get('idUtente'),1)}} </a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(3,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[3,date('y')]) }}">Marzo <br> {{Utility::oreCaricoMeseTot(3,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(3,date('y'),Session::get('idUtente'),1)}} </a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[3,date('y')]) }}">Marzo <br> {{Utility::oreCaricoMeseTot(3,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(3,date('y'),Session::get('idUtente'),1)}} </a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(4,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[4,date('y')]) }}">Aprile <br> {{Utility::oreCaricoMeseTot(4,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(4,date('y'),Session::get('idUtente'),1)}} </a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[4,date('y')]) }}">Aprile <br> {{Utility::oreCaricoMeseTot(4,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(4,date('y'),Session::get('idUtente'),1)}} </a> @endif </div> </div> <div class="row"> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(5,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[5,date('y')]) }}">Maggio {{Utility::oreCaricoMeseTot(5,date('y'),Session::get('idUtente'))}} <br> {{Utility::oreCaricoMeseTot(5,date('y'),Session::get('idUtente'),1)}}</a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[5,date('y')]) }}">Maggio {{Utility::oreCaricoMeseTot(5,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(5,date('y'),Session::get('idUtente'),1)}}</a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(6,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[6,date('y')]) }}">Giugno {{Utility::oreCaricoMeseTot(6,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(6,date('y'),Session::get('idUtente'),1)}}</a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[6,date('y')]) }}">Giugno {{Utility::oreCaricoMeseTot(6,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(6,date('y'),Session::get('idUtente'),1)}}</a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(7,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[7,date('y')]) }}">Luglio<br> {{Utility::oreCaricoMeseTot(7,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(7,date('y'),Session::get('idUtente'),1)}} </a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[7,date('y')]) }}">Luglio<br> {{Utility::oreCaricoMeseTot(7,date('y'),Session::get('idUtente'))}} <br> {{Utility::oreCaricoMeseTot(7,date('y'),Session::get('idUtente'),1)}} </a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(8,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[8,date('y')]) }}">Agosto<br> {{Utility::oreCaricoMeseTot(8,date('y'),Session::get('idUtente'))}} <br> {{Utility::oreCaricoMeseTot(8,date('y'),Session::get('idUtente'),1)}} </a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[8,date('y')]) }}">Agosto<br> {{Utility::oreCaricoMeseTot(8,15,Session::get('idUtente'))}} </a> @endif </div> </div> <div class="row"> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(9,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[9,date('y')]) }}">Settembre {{Utility::oreCaricoMeseTot(9,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(9,date('y'),Session::get('idUtente'),1)}}</a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[9,date('y')]) }}">Settembre {{Utility::oreCaricoMeseTot(9,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(9,date('y'),Session::get('idUtente'),1)}}</a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(10,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[10,date('y')]) }}">Ottobre {{Utility::oreCaricoMeseTot(10,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(10,date('y'),Session::get('idUtente'),1)}}</a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[10,date('y')]) }}">Ottobre {{Utility::oreCaricoMeseTot(10,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(10,date('y'),Session::get('idUtente'),1)}}</a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(11,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[11,date('y')]) }}">Novembre {{Utility::oreCaricoMeseTot(11,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(11,date('y'),Session::get('idUtente'),1)}}</a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[11,date('y')]) }}">Novembre {{Utility::oreCaricoMeseTot(11,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(11,date('y'),Session::get('idUtente'),1)}}</a> @endif </div> <div class="col-md-3"> @if(count(Utility::oreCaricoMese(12,date('y'),Session::get('idUtente')))) <a class="tile tile-warning" href="{{ action('Planning@create',[12,date('y')]) }}">Dicembre {{Utility::oreCaricoMeseTot(12,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(12,date('y'),Session::get('idUtente'),1)}}</a> @else <a class="tile tile-danger" href="{{ action('Planning@create',[12,date('y')]) }}">Dicembre {{Utility::oreCaricoMeseTot(12,date('y'),Session::get('idUtente'))}}<br> {{Utility::oreCaricoMeseTot(12,date('y'),Session::get('idUtente'),1)}}</a> @endif </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <table class="table table-bordered"> <thead> <tr> <th>Mese</th> <th>Valore Assegnato</th> <th>Valore Residuo</th> </tr> </thead> <tbody> <?php $scalare= $importototale; $assegnato= 0; ?> @foreach($orecarico as $item => $key) <?php $scalare= $scalare - ($key * 62.5); $assegnato = $assegnato + ($key * 62.5); ?> <tr> <td>{{ $mesi[$item] }}</td> <td>{{ number_format( $key * 62.5, 2, ',', '.') }}</td> <td>{{ number_format( $scalare, 2, ',', '.') }}</td> </tr> @endforeach <thead> <tr> <th></th> <th>Totale Assegnato</th> <th>Totale Settore</th> </tr> </thead> <tr> <td></td> <td>{{ number_format( $assegnato, 2, ',', '.') }}</td> <td>{{ number_format( $importototale, 2, ',', '.') }}</td> </tr> </tbody> </table> </div> </div> @stop