%PDF- %PDF-
| Direktori : /var/www/pjc/resources/views/gestioneOre/ |
| Current File : /var/www/pjc/resources/views/gestioneOre/commesse.blade.php |
<?php
$fasi=array('Draft' => 'Aperta','In Review'=>'Chiusa e fatturata','Published'=>'Chiusa in attesa di fatture','apertamafatturata' => 'Aperta ma fatturata');
?>
@extends('layouts.main')
@section('content')
<!-- START BREADCRUMB -->
<ul class="breadcrumb">
<li><a href="">Home</a></li>
<li> Gestione Ore</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 class="panel-body">
<a href="{{ action('gestioneOre@commesse',[1]) }}"><button type="button" class="@if($dati['id'] == 1) btn btn-success @else btn btn-primary @endif ">Sicurezza</button></a>
<a href="{{ action('gestioneOre@commesse',[2]) }}"><button type="button" class="@if($dati['id'] == 2) btn btn-success @else btn btn-primary @endif ">Termico</button></a>
<a href="{{ action('gestioneOre@commesse',[3]) }}"><button type="button" class="@if($dati['id'] == 3) btn btn-success @else btn btn-primary @endif">Elettrico</button></a>
<a href="{{ action('gestioneOre@commesse',[4]) }}"><button type="button" class="@if($dati['id'] == 4) btn btn-success @else btn btn-primary @endif ">Antincendio</button></a>
<a href="{{ action('gestioneOre@commesse',[5]) }}"><button type="button" class="@if($dati['id'] == 5) btn btn-success @else btn btn-primary @endif ">Formazione</button></a>
<a href="{{ action('gestioneOre@commesse',[6]) }}"><button type="button" class="@if($dati['id'] == 6) btn btn-success @else btn btn-primary @endif ">Ambiente</button></a>
<a href="{{ action('gestioneOre@commesse',[7]) }}"><button type="button" class="@if($dati['id'] == 7) btn btn-success @else btn btn-primary @endif ">Alimentare</button></a>
<a href="{{ action('gestioneOre@commesse',[8]) }}"><button type="button" class="@if($dati['id'] == 8) btn btn-success @else btn btn-primary @endif ">Altro</button></a>
<a href="{{ action('gestioneOre@commesse',[9]) }}"><button type="button" class="@if($dati['id'] == 9) btn btn-success @else btn btn-primary @endif ">Assistenza Sicurezza</button></a>
<a href="{{ action('gestioneOre@commesse',[10]) }}"><button type="button" class="@if($dati['id'] == 10) btn btn-success @else btn btn-primary @endif ">Assistenza Ambiente</button></a>
<a href="{{ action('gestioneOre@commesse',[11]) }}"><button type="button" class="@if($dati['id'] == 11) btn btn-success @else btn btn-primary @endif ">Assistenza Alimetare</button></a>
<a href="{{ action('gestioneOre@commesse',[12]) }}"><button type="button" class="@if($dati['id'] == 12) btn btn-success @else btn btn-warning @endif ">Visualizza Commissioni chiuse</button></a>
<a href="{{ action('gestioneOre@commesse',[13]) }}"><button type="button" class="@if($dati['id'] == 13) btn btn-success @else btn btn-warning @endif ">Visualizza Tutte le commissioni</button></a>
</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 id="commesse-table" class="table">
<thead>
<tr>
<th>Nome</th>
<th>Ragione Sociale</th>
<th>Descrizione</th>
<th>Data inizio</th>
<th>Stato</th>
<th>Ore</th>
<th>Completamento</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@section('script')
<script type='text/javascript'>
$('#commesse-table').DataTable({
'processing': true,
'serverSide': true,
'ajax': 'a/gestioneore/commesseSubList?id={{ $dati['id'] }}&id_type=' + {{ $dati['id'] }},
"columns": [
{"data": 0},
{"data": 1},
{"data": 2},
{"data": 3},
{"data": 4},
{
"data": 5,
"defaultContent": "",
"orderable": false
},
{
"data": 6,
"defaultContent": "",
"orderable": true
}
]
});
</script>
@endsection