
@extends('usuarios.funcionarios.digitalizacao.dashboard.master')
@section('conteudo')

<style>

.input-group.meubtn {
    margin-top: 36px;
}
</style>

<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<link href="{{asset('js/digitalizacao_plugins/css/plugins/dataTables/datatables.min.css" rel="stylesheet')}}">


<script src="{{asset('js/jquery.dataTables.min.js') }}"></script>
<link href="{{url('css/alertaTemporario.css')}}" rel="stylesheet" />
<link href="{{asset('js/digitalizacao_plugins/css/bootstrap.min.css')}}" rel="stylesheet">
<link href="{{asset('js/jquery.css/plugins/dataTables/datatables.min.css')}}" rel="stylesheet">

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <br>
        <ol class="breadcrumb">
            <li class="breadcrumb-item">
                <a href="{{ route('us.digit.confdigi.index') }}">Arquivos Prepararados</a>
            </li>
            <li class="breadcrumb-item">
                <a><strong>Histórico</strong>   </a>
            </li>
        </ol>
    </div> 



</div>


        <div class=" meuformpreparacao">
                <div class="table-responsive">
                                                    <nav class="col-lg-12 table-responsive">
                                                        <br> <br>
                                                        <table class="table table-striped table-bordered table-hover dataTables-example" >
                                                            <thead>
                                                            <tr>
                                                                <th>#</th>
                                                                <th>Técnico</th>
                                                                <th>Data preparada</th>
                                                                <th>Duração</th>
                                                                <th>tipo Preparação</th>
                                                                <th>quantdade</th>
                                                                <th>Verificado_por</th>
                                                                <th>detalhes</th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>


                                                                @php
                                                                $i=1; @endphp
                                                                
                                                                <tr> 
                                                                    
                                                                    <td>1</td>
                                                                    <td>Tânia</td>
                                                                    
                                                                    <td>22-02-02 22:44:44</td>
                                                                    <td>10 dias</td>
                                                                    <td>Pasta</td>
                                                                    <td>44</td>
                                                                    
                                                                    <td>Isaac</td>
                                                                <td>
                                        
                                        
                                                                    @php 
                                                                    //use Illuminate\Support\Facades\Crypt;
                                                                    
                                                                    try {
                                                                        
                                                                    $decrypted =Crypt::encryptString(2);
                                                                    
                                                                    } catch (DecryptException $e) {
                                                                        $decrypted=0;
                                                                    }
                                                                @endphp
                                        
                                                                    <form action="{{ route('us.digit.confdigi.pesquisa.cliente.classe.pesq') }}" method="post">
                                                                        @csrf
                                                                    
                                                                        <input value="{{$decrypted}}" name="solicitacao_id" hidden/>
                                                                        <button type="submit" class="btn btn-sm btn-outline-primary btnSelecionarReserva"> <i class="fa fa-eye "></i> ver</button>
                                                                        
                                                                    </form>
                                                                </td>
                                                                
                                        
                                                                </tr>
                                        

                                                            </tbody>
                                                            <tfoot>
                                                            <tr>
                                                                
                                                                <th>#</th>
                                                                <th>Técnico</th>
                                                                <th>Data preparada</th>
                                                                <th>Duração</th>
                                                                <th>tipo Preparação</th>
                                                                <th>quantdade</th>
                                                                <th>Verificado_por</th>
                                                                <th>detalhes</th>
                                                            </tr>
                                                            </tfoot>
                                                    </table>
                                                    </nav>
                                        </div>
     </div>



     <script src="{{asset('js/digitalizacao_plugins/js/plugins/dataTables/datatables.min.js')}}"></script>
     <script src="{{asset('js/digitalizacao_plugins/js/plugins/dataTables/dataTables.bootstrap4.min.js')}}"></script>
     
     <!-- Custom and plugin javascript -->
     <script src="{{asset('js/digitalizacao_plugins/js/inspinia.js')}}"></script>
     <script src="{{asset('js/digitalizacao_plugins/js/plugins/pace/pace.min.js')}}"></script>
     
     <!-- Page-Level Scripts -->
     <script>
         $(document).ready(function(){
             $('.dataTables-example').DataTable({
                 pageLength: 25,
                 responsive: true,
                 dom: '<"html5buttons"B>lTfgitp',
                 buttons: [
                     { extend: 'copy'},
                     {extend: 'csv'},
                     {extend: 'excel', title: 'ExampleFile'},
                     {extend: 'pdf', title: 'ExampleFile'},
     
                     {extend: 'print',
                      customize: function (win){
                             $(win.document.body).addClass('white-bg');
                             $(win.document.body).css('font-size', '10px');
     
                             $(win.document.body).find('table')
                                     .addClass('compact')
                                     .css('font-size', 'inherit');
                     }
                     }
                 ]
     
             });
     
         });
     
     </script>
@endsection