%PDF- %PDF-
Direktori : /var/www/pjc/resources/views/fatturazione/ |
Current File : /var/www/pjc/resources/views/fatturazione/elenco.blade.php |
@extends('layouts.main') @section('content') <!-- START BREADCRUMB --> <ul class="breadcrumb"> <li><a href="">Home</a></li> <li> Fatturazione</li> <li class="active"> Elenco</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">Richieste di fatturazione</h1> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th>Commessa</th> <th>Ragione Sociale</th> <th>Descrizione</th> <th>Importo Totale commessa</th> <th>Importo Fattura richiesta</th> <th>Tipologia</th> <th>Stato</th> <th>Azioni</th> </tr> </thead> <tbody> @foreach($dati['commesse'] as $item) <tr> <td><a href="{{ action('gestioneOre@vcommessa',$item->name) }}" target="_blank">{{ $item->name }}</a></td> <td>{{ $dati['accounts'][$item->account_id] }}</td> <td>{{ $item->description }}</td> <td>{{ number_format( $item->importo_c , 2, ',', '.') }} </td> <td>{{ number_format( $item->importo , 2, ',', '.') }}</td> <td> @if($item->tipologia == 1) SALDO @else ACCONTO @endif </td> <td> @if($item->fatturato) <i class="fa fa-check text-success"></i> @else <i class="fa fa-times text-danger"></i> @endif</td> <td><a href="{{ action('Fatturazione@fattura',[$item->id]) }}"><button class="btn btn-primary">Fatturata</button></a></td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> <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">Richieste fatturate</h1> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table datatable"> <thead> <tr> <th>Commessa</th> <th>Ragione Sociale</th> <th>Descrizione</th> <th>Importo Totale commessa</th> <th>Importo Fattura richiesta</th> <th>Stato</th> <th>Azioni</th> </tr> </thead> <tbody> @foreach($dati['commesseFatturate'] as $item) <tr> <td><a href="{{ action('gestioneOre@vcommessa',$item->name) }}" target="_blank">{{ $item->name }}</a></td> <td>{{ $dati['accounts'][$item->account_id] }}</td> <td>{{ $item->description }}</td> <td>{{ number_format( $item->importo_c , 2, ',', '.') }} </td> <td>{{ number_format( $item->importo , 2, ',', '.') }}</td> <td> @if($item->fatturato) <i class="fa fa-check text-success"></i> @else <i class="fa fa-times text-danger"></i> @endif</td> <td><a href="{{ action('Fatturazione@fattura',[$item->id]) }}"><button class="btn btn-primary">Annulla fattura</button></a></td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> @stop