%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjc/storage/framework/views/
Upload File :
Create Path :
Current File : /var/www/pjc/storage/framework/views/fdae63807d2de965dd784b81e15f4a9eb35b7ba8.php

    <?php
use App\Utility;
    ?>
    
  <?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['id']); ?> </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="row">
      <div class="col-md-6">

            
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Andamento Ore</h3>                                
                                </div>
                                <div class="panel-body">
                                    <div id="morris-line-example" style="height: 300px;"></div>
                                </div>
                            </div>
                         
                        </div>
      <div class="col-md-3">

             
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Ore per Settore</h3>                                
                                </div>
                                <div class="panel-body">
                                    <div id="morris-donut-example" style="height: 300px;"></div>
                                </div>
                            </div>
                                     

                        </div>
    </div> -->
    <div class="panel panel-colorful">
        <div class="panel-heading ui-draggable-handle">
          <h1 class="panel-title">Ore Commessa (<?php echo e($dati['totOreDo']); ?> h /  <?php echo e(Utility::totOre($commessa[0]->importo_c, '62.5')); ?> h) </h1>
       
        </div>
             <div class="row">
            <div class="col-md-12">
              <div class="progress-bar <?php echo e(Utility::statoPerc(Utility::percentuale($dati['totOreDo'],$dati['totOre']))); ?>  progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo e(Utility::percentuale($dati['totOreDo'],$dati['totOre'])); ?>%">
                   <p class="text-left"><?php echo e($dati['totOreDo']); ?>/<?php echo e($dati['totOre']); ?> - <?php echo e(Utility::percentuale($dati['totOreDo'],$dati['totOre'])); ?>%
              </div>
            </div>
          <div>
        <div class="panel-body">
     

                 <div class="table-responsive">
                                        <table class="table datatable">
                                            <thead>
                                                <tr>
                                                    <th>Data</th>
                                                    <th>Utente</th>
                                                    <th>Settore</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><?php echo e($item->data); ?></td>
                                                    <td><?php echo e($item->cognome); ?></td>
                                                    <td><?php echo e($item->settore); ?> </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) or (Session::get('idUtente') == 27)): ?>
                                                      <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 if( (Session::get('idUtente') == 22) or (Session::get('idUtente') == 27)): ?>
            <div class="panel panel-colorful">
                <div class="panel-heading ui-draggable-handle">
                    <h1 class="panel-title">Movimenti Amministrativi</h1>

                </div>
            <div class="row">
                 <div class="row">
                <div class="col-md-3">
                    <button class="btn btn-primary" data-toggle="modal" data-target="#acconto">Registra Acconto</button>
                    <button class="btn btn-primary" data-toggle="modal" data-target="#saldo">Registra Saldo</button>
                </div>
                     <div class="col-md-2">
                         <b>Stato:</b><br> <?php echo e($dati['stato'][$dati['commessa'][0]->status]); ?>

                     </div>
                     <div class="col-md-2">
                         <b>Pagamento:</b><br>  <?php echo e($dati['commessa'][0]->tipoPagamento); ?>

                     </div>
                      <div class="col-md-2">
                         <b>Totale Commessa:</b><br> € <?php echo e(number_format( $commessa[0]->importo_c, 2, ',', '.')); ?>

                     </div>
                     <div class="col-md-2">
                         <b>Saldo:</b><br> € <?php echo e(number_format( $commessa[0]->importo_c - $dati['dato'] , 2, ',', '.')); ?>

                     </div>
                 </div>
                <div>
                    <div class="panel-body">


                        <div class="table-responsive">
                            <table class="table datatable">
                                <thead>
                                <tr>
                                    <th>Data</th>
                                    <th>Tipologia</th>
                                    <th>Importo</th>
                                    <th>Tipologia di Pagamento</th>
                                    <th>Fatturata?</th>
                                    <th>Azioni</th>
                                </tr>
                                </thead>
                                <tbody>

                                <?php $__currentLoopData = $dati['movimenti']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($item->data); ?></td>
                                        <td><?php echo e($dati['tipologia'][$item->tipologia]); ?></td>
                                        <td>€ <?php echo e(number_format($item->importo, 2, ',', '.')); ?>  </td>
                                        <td><?php echo e(strtoupper($item->pagamento)); ?></td>
                                        <td>
                                            <?php if($item->fatturato): ?>
                                                <i class="fa fa-check text-success"></i>
                                                <?php else: ?>
                                                <i class="fa fa-times text-danger"></i>
                                            <?php endif; ?>
                                        </td>


                                        <td>

                                        </td>

                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                </tbody>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
          </div>
      

            <div class="modal" id="acconto" tabindex="-1" role="dialog" aria-labelledby="defModalHead">
                <div class="modal-dialog">
                    <?php echo e(Form::open(array('url' => 'gestioneore/addmovimento/', 'class' => 'form-horizontal'))); ?>

                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="defModalHead">Richiesta Acconto</h4>
                        </div>
                        <div class="modal-body">
                            <div class="panel-body form-group-separated">



                                <div class="form-group">
                                    <label class="col-md-3 col-xs-12 control-label">Importo</label>
                                    <div class="col-md-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-eur"></i></span>
                                            <input name="importo" type="text" class="form-control" required value="<?php echo e(number_format( $commessa[0]->importo_c - $dati['dato'] , 2, ',', '.')); ?>">
                                        </div>
                                        <span class="help-block">Importo</span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 col-xs-12 control-label">Tipo di pagamento</label>
                                    <div class="col-md-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span class="fa fa-cogs"></span></span>
                                            <input name="pagamento" type="text" class="form-control"  value="<?php echo e($dati['commessa'][0]->tipoPagamento); ?>">
                                        </div>
                                        <span class="help-block">Tipo di pagamento</span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 col-xs-12 control-label">Data </label>
                                    <div class="col-md-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
                                            <input name="data" type="text" class="form-control datepicker" value="">
                                        </div>
                                        <span class="help-block">Inserisci la data di fatturazione</span>
                                    </div>
                                </div>

                               


                            </div>


                        </div>
                        <div class="modal-footer">
                         <input type="submit" class="btn btn-primary" value="Salva">
                        </div>
                        <input type="hidden" name="commessa" value="<?php echo e($commessa[0]->name); ?>">
                             <input type="hidden" name="fatturato" value="1">
                        <input type="hidden" name="tipologia" value="2">
                        <?php echo e(Form::close()); ?>

                    </div>
                </div>
            </div>


            <div class="modal" id="saldo" tabindex="-1" role="dialog" aria-labelledby="defModalHead">
                <div class="modal-dialog">
                    <?php echo e(Form::open(array('url' => 'gestioneore/addmovimento/', 'class' => 'form-horizontal'))); ?>

                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="defModalHead">Richiesta di Saldo</h4>
                        </div>
                        <div class="modal-body">
                            <div class="panel-body form-group-separated">



                                <div class="form-group">
                                    <label class="col-md-3 col-xs-12 control-label">Importo</label>
                                    <div class="col-md-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><i class="fa fa-eur"></i></span>
                                            <input name="importo" type="text" class="form-control" required value="<?php echo e(number_format( $commessa[0]->importo_c - $dati['dato'] , 2, ',', '.')); ?>">
                                        </div>
                                        <span class="help-block">Importo</span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 col-xs-12 control-label">Tipo di pagamento</label>
                                    <div class="col-md-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span class="fa fa-cogs"></span></span>
                                            <input name="pagamento" type="text" class="form-control"  value="<?php echo e($dati['commessa'][0]->tipoPagamento); ?>">
                                        </div>
                                        <span class="help-block">Tipo di pagamento</span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-3 col-xs-12 control-label">Data </label>
                                    <div class="col-md-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><span class="fa fa-calendar"></span></span>
                                            <input name="data" type="text" class="form-control datepicker" value="">
                                        </div>
                                        <span class="help-block">Inserisci la data di fatturazione</span>
                                    </div>
                                </div>
                            </div>


                        </div>
                        <div class="modal-footer">
                            <input type="submit" class="btn btn-primary" value="Salva">
                        </div>
                        <input type="hidden" name="commessa" value="<?php echo e($commessa[0]->name); ?>">
                        <input type="hidden" name="fatturato" value="1">
                        <input type="hidden" name="tipologia" value="1">
                        <?php echo e(Form::close()); ?>

                    </div>
                </div>
            </div>
  <?php endif; ?>

  
  <?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/vcommessa.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0