ispt4.0_laravel/resources/views/userClient/pdfReportings/showReportingAllEquipmentsForAmbitProject.blade.php

85 lines
2.7 KiB
PHP

@extends('Templates/templateAdmin')
@section('Main-content')
<input type="hidden" id="dataAmbit" value="{{ $dataAmbit }}">
<input type="hidden" id="projectId" value="{{ $projectId }}">
<fieldset class="content">
<div class="container-fluid">
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">Obrar Concluidas</h3>
</div>
<!--./card-header-->
<div class="card-body">
<table id="showAllEquipmentsForAmbitProject" class="table table-bordered table-striped">
<thead>
<tr>
<th> ISPT</th>
<th>Unidade</th>
<th>Tag </th>
<th>Dim</th>
<th>#</th>
<th>PI&D</th>
<th>Obsercoes</th>
<th>Andaime</th>
<th>Isolamento</th>
<th>Grua</th>
<th>Conclusao</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</fieldset>
@endsection
@section('scriptsTemplateAdmin')
<script type="text/javascript">
var dataTables;
$(document).ready(function() {
dataTables = $('#showAllEquipmentsForAmbitProject').DataTable({
responsive: true,
processing: true,
serverSide: true,
ajax: {
// Rota para obter os valores para o Yajra
url: '{{ route('getDataAllEquipmentsForAmbitOfProject') }}',
type: 'GET',
data: function(d) {
// Busca diretamente o valor de um input tipo Hidden para buscar e enviar o valor do id do project atual
d.dataAmbit = $('#dataAmbit').val();
d.projectId = $('#projectId').val();
}
},
columns: [
{
data: 'ispt_number',
name: 'ispt_number'
},
{
data: 'unit_id',
name: 'unit_id'
},
{
data: 'equipment_tag',
name: 'equipment_tag'
},
],
});
});
</script>
@endsection