%PDF- %PDF-
Direktori : /var/www/pjc/resources/views/planning/ |
Current File : /var/www/pjc/resources/views/planning/elenco.blade.php |
@extends('layouts.main') @section('content') <!-- 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"> <h2>Planning ore {{ $mese }} {{ $anno }}</h2> <div class="panel-body"> <table class="table datatable"> <thead> <th>Commessa</th> <th>Descrizione</th> <th>Cliente</th> <th>Tecnico</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>@if(isset( $tecnici[$item->id_tecnico])) {{ $tecnici[$item->id_tecnico] }} @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> <a href="{{ action('gestioneOre@add',[$commesse[$item->id_commessa]->name,$item->id,$item->mese,$anno]) }}"><button class="btn btn-default"> <i class="fa fa-clock-o" data-toggle="tooltip" data-placement="top" title="" data-original-title="aggiungi ore"></i> </button></a> </td> </tr> @else <tr> <td>Commessa non trovata</td> <td>Commessa non trovata</td> <td>Commessa non trovata</td> <td>@if(isset( $tecnici[$item->id_tecnico])) {{ $tecnici[$item->id_tecnico] }} @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