%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjcold2/resources/views/fatturazione/
Upload File :
Create Path :
Current File : /var/www/pjcold2/resources/views/fatturazione/index.blade.php

<?php
$fasi=array('Draft' => 'Aperta','In Review'=>'Chiusa e fatturata','Published'=>'Chiusa in attesa di fatture');

?>
@extends('layouts.main')
@section('content')
        <!-- START BREADCRUMB -->
<ul class="breadcrumb">
    <li><a href="">Home</a></li>
    <li> Fatturazione</li>
    <li class="active"> Commesse</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">Filtro</h1>

            </div>

        </div>

        <div class="panel panel-colorful">
            <div class="panel-heading ui-draggable-handle">
                <h1 class="panel-title">Commesse</h1>

            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table datatable">
                        <thead>
                        <tr>
                            <th>Nome</th>
                            <th>Ragione Sociale</th>
                            <th>Descrizione</th>
                            <th>Importo</th>
                            <th>Acconti/Saldo</th>

                            <th>Stato</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( $dati['saldi'][$item->name] , 2, ',', '.') }}</td>


                                <td>@if(($item->importo_c - $dati['saldi'][$item->name]) == 0) Totalmente pagato
                                    @else
                                        @if($dati['saldi'][$item->name] == 0)

                                        @else
                                            Parzialmente pagato
                                        @endif
                                    @endif</td>
                               

                            </tr>
                        @endforeach




                        </tbody>
                    </table>

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


@stop

Zerion Mini Shell 1.0