@if( Request::getHttpHost() == env('URL_INFODATA') )
	@include('/infodata/header')
@else
	@include('header')
@endif
<link href="{{asset('components/datatables/media/css/jquery.dataTables.min.css')}}" rel="stylesheet">
<div class="container">

		<div class="col-md-12">
			<h3 class="text-center"><i class="fa fa-cog fa-fw color-fidelitas "></i>Novedades de Cuits/Cheques</h3><hr>
		</div>
		<div class="col-md-12">
			<div class="col-md-12">
				<table id="tabla_novedades" class="table table-striped">
					<thead>
						<tr>
							<th>Nombre</th>
							<th>Cuit</th>
							<th class="hidden"></th>
							<th>Última Actualización</th>
							<th>Tipo Novedad</th>
							<th class="no-sort">Accion</th>
						</tr>
					</thead>
					<tbody>
				@foreach($novedades as $novedad) 
					<tr>
						<td>{{$novedad->nombre_persona}}</td>
						<td>{{$novedad->cuit}}</td>
						<td class="hidden">{{$novedad->fecha}}</td>
						<td>{{$novedad->fecha_dmy}}</td>
						<td>{{$novedad->tipo_novedad}}</td>
						<td>
							<form method="POST" action="/monitoreo/novedad-pdf">
								{{csrf_field()}}
								<input type="hidden" name="cuit"	                value="{{$novedad->cuit}}">
								<input type="hidden" name="fecha"	                value="{{$novedad->fecha}}">
								<input type="hidden" name="fecha_dmy"	                value="{{$novedad->fecha_dmy}}">
								<input type="hidden" name="nombre"	                value="{{$novedad->nombre_persona}}">
								<input type="hidden" name="seccion_mantenimiento"	value="{{$novedad->seccion_mantenimiento}}">
								<input type="hidden" name="tipo_novedad"	        value="{{$novedad->tipo_novedad}}">
								<input type="hidden" name="tabla"	                value="{{$novedad->tabla}}">
								<button class="btn btn-info btn-fidelitas"><i class="fa fa-file-pdf-o" aria-hidden="true"></i> Ver PDF</button>
							</form>
						</td>
					</tr>
				@endforeach
				</tbody>
				</table>
			</div>
		</div>
</div>
<script type="text/javascript" src="{{ URL::asset('components/datatables/media/js/jquery.dataTables.min.js') }}"> </script>
@if( Request::getHttpHost() == env('URL_INFODATA') )
	@include('/infodata/footer')
@else
	@include('footer')
@endif
<script type="text/javascript" src="{{ URL::asset('js/novedades.js') }}"> </script>


