%PDF- %PDF-
Direktori : /var/www/pjc/resources/views/gestioneOre/ |
Current File : /var/www/pjc/resources/views/gestioneOre/vutente.blade.php |
@extends('layouts.main') @section('content') <!-- START BREADCRUMB --> <ul class="breadcrumb"> <li><a href="">Home</a></li> <li> Commessa</li> <li class="active"> {{ $dati['utente'][0]->cognome}} </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"> <h1 class="panel-title">Statistiche</h1> </div> <div class="panel-body"> <div class="row"> <div class="col-md-4"> <h6>Somma ore inserite negli ultimi 7 giorni</h4> <ul class="list-group border-bottom"> @foreach($dati['giorni'] as $data => $ore) @if ($ore) <li class="list-group-item">{{ date("d M Y",strtotime($data)) }}<span class="badge">{{ $ore }}</span></li> @else <li class="list-group-item">{{ date("d M Y",strtotime($data)) }}<span class="badge badge-danger">0</span></li> @endif @endforeach </ul> </div> </div> </div> </div> <div class="panel panel-colorful"> <div class="panel-heading ui-draggable-handle"> <h1 class="panel-title">Ore Utente</h1> <a href="{{ Action('gestioneOre@addoreglobal',[$dati['utente'][0]->id]) }}" <button class="btn btn-primary pull-right">Aggiungi ore</button></a> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th>Data</th> <th>Commessa</th> <th>Ragione Sociale</th> <th>Descrizione</th> <th>Tempo</th> <th>Tempo Netto</th> <th>Azioni</th> </tr> </thead> <tbody> @foreach($dati['ore'] as $item) <tr> <td class="col-md-2">{{ date("Y M d",strtotime($item->data)) }}</td> <td>{{ $item->commessa }}</td> <td>{{ $item->ragione }} </td> <td>{{ $item->descrizione }}</td> <td>{{ $item->tempo }}</td> <td>{{ $item->oreNette }}</td> <td> @if(Session::get('idUtente') == 22) <a href="{{ action('gestioneOre@updateOre',[$item->id])}}"><button class="btn btn-warning btn-condensed"><i class="fa fa-edit"></i></button></a> <a href="{{ action('gestioneOre@delete',[$item->id])}}"><button class="btn btn-danger btn-condensed"><i class="fa fa-trash-o"></i></button></a> @endif @if(($item->idUtente == Session::get('idUtente'))&&(Session::get('idUtente') != 22)) <a href="{{ action('gestioneOre@updateOre',[$item->id])}}"><button class="btn btn-warning btn-condensed"><i class="fa fa-edit"></i></button></a> <a href="{{ action('gestioneOre@delete',[$item->id])}}"><button class="btn btn-danger btn-condensed"><i class="fa fa-trash-o"></i></button></a> @endif </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @stop