<?php 
//print_r($result); die();
?>

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h4 class="modal-title">Diagn&oacute;sticos Encontrados</h4>
</div>
<div class="modal-body">
    <div class="row">
            <div class="col-sm-12">
                <table class="table table-hover" id="tblModalDiagnostico" name="tblModalDiagnostico">
                    <thead>
                    <tr>
                        <th>Identificador</th>
                        <th>Diagn&oacute;stico</th>                        
                        <th>Causes</th>                        
                    </tr>
                    </thead>
                    @foreach($result->respuesta as $diagnostico)
                        <tr class="diagnostico" 
                            data-clave="{{trim($diagnostico->clave)}}" 
                            data-level0="{{$diagnostico->level0 }}" 
                            data-causes="{{$diagnostico->causes }}"
                            data-diag="{{$diagnostico->diag}}"
                            >

                            <td>{{trim($diagnostico->clave_) }}</td>
                            <td>{{trim($diagnostico->diag)}}</td>                            
                            <td>{{$diagnostico->causes}}</td>
                        </tr>
                    @endforeach
                </table>
            </div>
    </div>
    <div class="modal-footer">
        <p class="text-center">
            <button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
        </p>
    </div>
</div>
