%PDF- %PDF-
Direktori : /var/www/pjc/storage/framework/views/ |
Current File : /var/www/pjc/storage/framework/views/c7f322a90b8a73c323eb3cef96846b818d3c42db.php |
<?php $__env->startSection('content'); ?> <!-- START BREADCRUMB --> <ul class="breadcrumb"> <li><a href="">Home</a></li> <li> Commessa</li> <li class="active"> <?php echo e($dati['utente'][0]->cognome); ?> </li> </ul> <!-- END BREADCRUMB --> <div class="row"> <div class="col-md-12"> <?php 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> <?php echo e(Session::get('message')); ?>. </div> <?php 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"> <?php $__currentLoopData = $dati['giorni']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data => $ore): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($ore): ?> <li class="list-group-item"><?php echo e(date("d M Y",strtotime($data))); ?><span class="badge"><?php echo e($ore); ?></span></li> <?php else: ?> <li class="list-group-item"><?php echo e(date("d M Y",strtotime($data))); ?><span class="badge badge-danger">0</span></li> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </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="<?php echo e(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> <?php $__currentLoopData = $dati['ore']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="col-md-2"><?php echo e(date("Y M d",strtotime($item->data))); ?></td> <td><?php echo e($item->commessa); ?></td> <td><?php echo e($item->ragione); ?> </td> <td><?php echo e($item->descrizione); ?></td> <td><?php echo e($item->tempo); ?></td> <td><?php echo e($item->oreNette); ?></td> <td> <?php if(Session::get('idUtente') == 22): ?> <a href="<?php echo e(action('gestioneOre@updateOre',[$item->id])); ?>"><button class="btn btn-warning btn-condensed"><i class="fa fa-edit"></i></button></a> <a href="<?php echo e(action('gestioneOre@delete',[$item->id])); ?>"><button class="btn btn-danger btn-condensed"><i class="fa fa-trash-o"></i></button></a> <?php endif; ?> <?php if(($item->idUtente == Session::get('idUtente'))&&(Session::get('idUtente') != 22)): ?> <a href="<?php echo e(action('gestioneOre@updateOre',[$item->id])); ?>"><button class="btn btn-warning btn-condensed"><i class="fa fa-edit"></i></button></a> <a href="<?php echo e(action('gestioneOre@delete',[$item->id])); ?>"><button class="btn btn-danger btn-condensed"><i class="fa fa-trash-o"></i></button></a> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/pjc/resources/views/gestioneOre/vutente.blade.php ENDPATH**/ ?>