%PDF- %PDF-
Direktori : /var/www/pjc/resources/views/planning/ |
Current File : /var/www/pjc/resources/views/planning/create.blade.php |
<?php use App\Utility; ?> @extends('layouts.main') @section('content') <?php $pianificato= 0; ?> @foreach ($tecnici as $item => $key) @if (array_key_exists($item, $oreassno)) <?php $pianificato = $pianificato +(62.5* Utility::convertiore($oreassno[$item])*$kutenti[$item]); ?> @endif @endforeach <!-- START BREADCRUMB --> <ul class="breadcrumb"> <li><a href="">Home</a></li> <li><a href="{{ action('Planning@index') }}">Planning</a></li> <li class="active">{{ $mese }} {{ $anno }}</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"> <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"> <div class="row"> <div class="col-md-12"> <h1 class="panel-title">Planning mese di {{ $mese }} {{ $anno }}</h1> <a href="{{ action('Planning@addCommessa',[$mesen,$anno])}}"><button class="pull-right btn btn-primary">Aggiungi commessa</button></a> </div> </div> <div class="row"> <div class="col-md-4"> <ul class="list-group border-bottom"> <li class="list-group-item">Budget Mensile:<span class="badge badge-success">€ {{ money_format('%.2n', $budget) }}</span></li> <li class="list-group-item">Totale valore pianificato:<span class="badge badge-info">€ {{ money_format('%.2n', $pianificato) }}</span></li> <li class="list-group-item">Rimanenza:<span class="badge badge-danger">€ {{ money_format('%.2n', $budget - $pianificato) }}</span></li> </ul> </div> <div class="col-md-4"> <ul class="list-group border-bottom"> @foreach ($tecnici as $item => $key) <li class="list-group-item">{{ $key }} @if(array_key_exists($item, $oreass)) {{ $oreassno[$item] }}@endif<span class="badge badge-success">@if (array_key_exists($item, $oreass)) {{ $oreass[$item] }} h @else 0 @endif</span><span class="badge badge-success">@if (array_key_exists($item, $oreass)) {{ money_format('%.2n', 62.5* Utility::convertiore($oreassno[$item])*$kutenti[$item] ) }} € @else 0 @endif</span> </li> @endforeach </ul> </div> <div class="col-md-3"> <ul class="list-group border-bottom"> @foreach ($tecnici as $item => $key) <li class="list-group-item"> - <span class="badge badge-success"><?php $var = Utility::GetOrePlanningFatte($item,$mesenumero,$anno) ?> {{ $var[0]->somma }}</span><span class="badge badge-primary"><?php $var1 = Utility::GetOreFatte($item,$mesenumero,$anno) ?> {{ $var1[0]->somma }}</span> </li> @endforeach </ul> </div> </div> </div> <div class="panel-body"> <table class="table datatable"> <thead> <th>Commessa</th> <th>Descrizione</th> <th>Cliente</th> <th>Tecnico</th> <th>Programmata</th> <th>Impegno h</th> <th>Ore fatte</th> <th class="text-center">Ore rimanenti<br> commessa</th> <th>Azioni</th> </thead> <tbody> @foreach ($planning as $item) @if(isset($commesse[$item->id_commessa])) <tr> <td><a target="_blank" href="{{ action('gestioneOre@vcommessa', $commesse[$item->id_commessa]->name) }}">{{ $commesse[$item->id_commessa]->name}}</a></td> <td>{{ $commesse[$item->id_commessa]->description}}</td> <td>{{ $accounts[$commesse[$item->id_commessa]->account_id] }}</td> <td>{{ $tecnici[$item->id_tecnico] }}</td> <td class="text-center">@if($item->programmata) Si @else No @endif</td> <td class="text-center">{{ $item->carico }}</td> <td>{{ $item->fatte }}</td> <td class="text-center">{{ Utility::totOre($commesse[$item->id_commessa]->importo_c, 62.5) - Utility::totOreDo($commesse[$item->id_commessa]->name) }}</td> <td><a href="{{ action('gestioneOre@removep',[$item->id,$mesen,$anno])}}"><button class="btn btn-danger btn-condensed"><i class="fa fa-trash-o"></i></button></a></td> </tr> @else <tr> <td>Commessa non trovata</td> <td>Commessa non trovata</td> <td>Commessa non trovata</td> <td>{{ $tecnici[$item->id_tecnico] }}</td> <td class="text-center">@if($item->programmata) Si @else No @endif</td> <td class="text-center">{{ $item->carico }}</td> <td>{{ $item->fatte }}</td> <td>Commessa non trovata</td> <td><a href="{{ action('gestioneOre@removep',[$item->id,$mesen,$anno])}}"><button class="btn btn-danger btn-condensed"><i class="fa fa-trash-o"></i></button></a></td> </tr> @endif @endforeach </tbody> </table> </div> </div> </div> </div> @stop