%PDF- %PDF-
Direktori : /var/www/pjc/storage/framework/views/ |
Current File : /var/www/pjc/storage/framework/views/dca0bf0711e7fbafa3315ff3d6139fb33b4f558b.php |
<?php use App\Utility; ?> <?php $__env->startSection('content'); ?> <?php $pianificato= 0; ?> <?php $__currentLoopData = $tecnici; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item => $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(array_key_exists($item, $oreassno)): ?> <?php $pianificato = $pianificato +(62.5* Utility::convertiore($oreassno[$item])*$kutenti[$item]); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- START BREADCRUMB --> <ul class="breadcrumb"> <li><a href="">Home</a></li> <li><a href="<?php echo e(action('Planning@index')); ?>">Planning</a></li> <li class="active"><?php echo e($mese); ?> <?php echo e($anno); ?></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"> <div class="row"> <div class="col-md-12"> <h1 class="panel-title">Planning mese di <?php echo e($mese); ?> <?php echo e($anno); ?></h1> <a href="<?php echo e(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">€ <?php echo e(money_format('%.2n', $budget)); ?></span></li> <li class="list-group-item">Totale valore pianificato:<span class="badge badge-info">€ <?php echo e(money_format('%.2n', $pianificato)); ?></span></li> <li class="list-group-item">Rimanenza:<span class="badge badge-danger">€ <?php echo e(money_format('%.2n', $budget - $pianificato)); ?></span></li> </ul> </div> <div class="col-md-4"> <ul class="list-group border-bottom"> <?php $__currentLoopData = $tecnici; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item => $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="list-group-item"><?php echo e($key); ?> <?php if(array_key_exists($item, $oreass)): ?> <?php echo e($oreassno[$item]); ?><?php endif; ?><span class="badge badge-success"><?php if(array_key_exists($item, $oreass)): ?> <?php echo e($oreass[$item]); ?> h <?php else: ?> 0 <?php endif; ?></span><span class="badge badge-success"><?php if(array_key_exists($item, $oreass)): ?> <?php echo e(money_format('%.2n', 62.5* Utility::convertiore($oreassno[$item])*$kutenti[$item] )); ?> € <?php else: ?> 0 <?php endif; ?></span> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <div class="col-md-3"> <ul class="list-group border-bottom"> <?php $__currentLoopData = $tecnici; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item => $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="list-group-item"> - <span class="badge badge-success"><?php $var = Utility::GetOrePlanningFatte($item,$mesenumero,$anno) ?> <?php echo e($var[0]->somma); ?></span><span class="badge badge-primary"><?php $var1 = Utility::GetOreFatte($item,$mesenumero,$anno) ?> <?php echo e($var1[0]->somma); ?></span> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </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> <?php $__currentLoopData = $planning; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($commesse[$item->id_commessa])): ?> <tr> <td><a target="_blank" href="<?php echo e(action('gestioneOre@vcommessa', $commesse[$item->id_commessa]->name)); ?>"><?php echo e($commesse[$item->id_commessa]->name); ?></a></td> <td><?php echo e($commesse[$item->id_commessa]->description); ?></td> <td><?php echo e($accounts[$commesse[$item->id_commessa]->account_id]); ?></td> <td><?php echo e($tecnici[$item->id_tecnico]); ?></td> <td class="text-center"><?php if($item->programmata): ?> Si <?php else: ?> No <?php endif; ?></td> <td class="text-center"><?php echo e($item->carico); ?></td> <td><?php echo e($item->fatte); ?></td> <td class="text-center"><?php echo e(Utility::totOre($commesse[$item->id_commessa]->importo_c, 62.5) - Utility::totOreDo($commesse[$item->id_commessa]->name)); ?></td> <td><a href="<?php echo e(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> <?php else: ?> <tr> <td>Commessa non trovata</td> <td>Commessa non trovata</td> <td>Commessa non trovata</td> <td><?php echo e($tecnici[$item->id_tecnico]); ?></td> <td class="text-center"><?php if($item->programmata): ?> Si <?php else: ?> No <?php endif; ?></td> <td class="text-center"><?php echo e($item->carico); ?></td> <td><?php echo e($item->fatte); ?></td> <td>Commessa non trovata</td> <td><a href="<?php echo e(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> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </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/planning/create.blade.php ENDPATH**/ ?>