@extends('usuarios.funcionarios.master.layout2')

@section('conteudo')
<nav class="d-none ">
    {{$clientes=\App\Models\Cliente::get()}}
     
</nav> 
<script src="{{asset('js/jquery.dataTables.min.js') }}"></script> 
    <div class="container">
        <div class="list-group">
            <nav class="col-12 table-responsive">
                <table class="table container  table-striped table-hover" id="usuarios_funcionarios">
                    <thead>

                        <tr class="">

                         <th>Identificador</th>
                          <th>Numero</th>
                          <th>Email</th>
                          <th>Nome</th> 
                          <th>Abreviatura</th> 
                          <th>Mais</th>

                      </tr>

                   	</thead>
                   	<tbody>
                   		@foreach($clientes as $cliente) 
                        <tr class="">
						  <th>{{$cliente->id}}</th>
                          <th>{{$cliente->numerocliente}}</th>
                         
                          <th>{{$cliente->getUser->email}}</th>
                          <th>{{$cliente->getUser->getPessoa->nome}}</th> 
                          <th>{{$cliente->getUser->name}}</th>
                          <th><a href="{{route('us.admin.cliente.ver.cliente',$cliente->id)}}" class="btn btn-sm btn-outline-info"><i class="fa fa-eye"></i> </a></th>
                      	</tr>
                       
                      	
                   		@endforeach
                   	</tbody>
                    <tfoot></tfoot>
                </table>
            </nav>
        </div>
    </div> 
    <script>


      $(function(){


        	$('#usuarios_funcionarios').DataTable({

            processing: false,
            serverSide: false,
            // ajax: '{{url('usuario/admin/funcionarios/usuario/listar')}}',
           


            });
      });
    </script>

@endsection
