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

  <link href="{{url('css/select2.min.css')}}" rel="stylesheet">
<style>
.form-control {
    margin-bottom: 12px;
}
.meu {
    width: 70%
    }
    .meuform{
    margin-left: 88px;}
    .meutab{
        color:black;
        font-size: 12pt;
    }

   
</style>
<nav class="container animate__animated animate__zoomInDown">



    <div class="page-title">
        <div class="title_left">
            <h3>Criar Solicitação Personalizada</h3>
        </div>
        {{-- <div class="title_right">
            <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                <div class="input-group">
                    <input type="text" class="form-control" placeholder="Search for...">
                    <span class="input-group-btn">
            <button class="btn btn-default" type="button">Go!</button>
        </span>
                </div>
            </div>
        </div> --}}
    </div>

    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2><i class="fa fa-bars"></i> Solicitação Addoc</h2>
                {{-- <ul class="nav navbar-right panel_toolbox">
                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="#">Settings 1</a>
                            </li>
                            <li><a href="#">Settings 2</a>
                            </li>
                        </ul>
                    </li>
                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                    </li>
                </ul> --}}
                <div class="clearfix"></div>
            </div>
            <div class="x_content">

                <nav>
                    <div class="nav nav-tabs" id="nav-tab" role="tablist">
                      <a class="nav-item nav-link active meutab" id="nav-caixa-tab" data-toggle="tab" href="#nav-caixa" role="tab" aria-controls="nav-caixa" aria-selected="true">Solicitação de Caixas</a>
                      <a class="nav-item nav-link meutab" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="false">Solicitação de Doc física</a>
                      <a class="nav-item nav-link meutab" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Solicitação de Doc Digital</a>
                      <a class="nav-item nav-link meutab" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Solicitação de Recolha de docs</a>
                    </div>
                  </nav>
                  <div class="tab-content" id="nav-tabContent">
                    <div class="tab-pane fade show active" id="nav-caixa" role="tabpanel" aria-labelledby="nav-caixa-tab">
                       
                       
                         <div class="row">
                            <div class="col-md-12">
                                <div class="card">
                                    {{-- <div class="card-header">
                                        <h3>Input Group</h3>
                                    </div> --}}
                                    <form class="meuform" name="" id="cadsolitacao" method="post">
                                        @csrf
                                       <div class="card-body">
                                        <div class="mb-20">
                                            {{-- <h4 class="sub-title">Caixas</h4> --}}
                                            
                                               
                                            <div class="row">
                                                <label class="col-sm-4 col-lg-2 col-form-label">Cliente</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            @php $meusclientes=\App\Models\FuncionarioCliente::join('clientes','clientes.id','funcionarioclientes.cliente_id')
                                                                                                             ->join('categorias','categorias.id','funcionarioclientes.categoria_id')
                                                                                                             ->join('users','users.id','funcionarioclientes.user_id')
                                                                                                             ->join('pessoas','pessoas.id','users.pessoa_id')
                                                                                                             ->select('pessoas.nome','users.id')->get();
                                                                                                        @endphp
                                                            <select class="form-control select2_group" name="cliente_id" required>
                                                                @foreach($meusclientes as $meuscliente)
                                                                <option value="{{$meuscliente->id}}">{{$meuscliente->nome}}</option>
                                                               @endforeach
                                                            </select>
                                                        </div>
                                                    </div>
                                            </div>

                                            <div class="row">
                                                <label class="col-sm-4 col-lg-2 col-form-label">Assunto</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            <select class="form-control select3" name="assunto" required>
                                                                <option value="Caixa" selected >Caixa</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                            </div>
                                            
    
                                                
                                            <div class="row">
                                                <label class="col-sm-4 col-lg-2 col-form-label">Data</label>
                                                <div class="col-sm-6">
                                                    <div class="input-group input-group-warning">
                                                        <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-calendar" style="height:24px;"></i></label></span>
                                                        <input type="date" class="form-control" name="dataentrega">
                                                        <input type="text" name="tiposolictacao" value="caixas" hidden>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row" hidden>
                                                <label class="col-sm-4 col-lg-2 col-form-label">Natureza da Solicitação</label>
                                                <div class="col-sm-6 col-lg-6">
                                                    <div class="input-group">
                                                        
                                                                            <select class="form-control select2" name="naturezasolcitacao">
                                                                                <option value="fisica" selected>fisica</option>
                                                                        
                                                                            </select>
                                                                    
                                                                
                                                    </div>
                                                    
                                                </div>
                                            </div>
                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Urgência</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            
                                                                            <div class="form-group">
                                                                                <select class="form-control select2" name="urgencia">
                                                                                    <option value="Não_Urgente">Não_Urgente</option>
                                                                                    <option value="urgente">urgente</option>>
                                                                                </select>
                                                                            </div>
                                                                    
                                                        </div>
                                                        
                                                    </div>
                                                </div>
                                             
                                                

                                               <div class="row">
                                                        <label class="col-sm-4 col-lg-2 col-form-label">comprovativo</label>
                                                        <div class="col-sm-8 col-lg-10">
                                                            <div class="input-group input-group-primary">
                                                                <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-file-text" style="height:24px;"></i></label></span>
                                                                <input type="file" class="form-control" name="comprovativo[]" multiple>
                                                            </div>
                                                        </div>
                                                </div> 
                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Detalhes da Solicitação</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            {{-- <span class="input-group-prepend" id="basic-addon2">
                                                                <label class="input-group-text"></label> 
                                                            </span> --}}
                                                            <textarea required class="form-control" name="nota" style="height:150px" placeholder="detalhes adicionais sobre a solicitação "></textarea>
                                                        </div>
                                                    </div>
                                                </div>

                                                
                                        
                                        <div class="row">
                                            <label class="col-sm-4 col-lg-2 col-form-label">senha</label>
                                            <div class="col-sm-6">
                                                <div class="input-group input-group-danger">
                                                    <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-lock"  style="height:24px;"></i></label></span>
                                                    <input type="password" class="form-control" name="password" placeholder="password">
                                                </div>
                                            </div>
                                        </div> 
                                      </div>
                                        <div class="row">
                                            {{-- <label class="col-sm-4 col-lg-2 col-form-label"></label> --}}
                                            <div class="col-sm-9 col-lg-9">
                                                <br><p></p>
                                                <button type="submit" class="btn btn-outline-primary w-50">Solicitar</button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            </div>

                        </div>

                    </div>
                    <div class="tab-pane fade" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
                       
                       
                         <div class="row">
                            <div class="col-md-12">
                                <div class="card">
                                    {{-- <div class="card-header">
                                        <h3>Input Group</h3>
                                    </div> --}}
                                    <form  class="meuform" name="cadsolitacao2" method="post">
                                        @csrf
                                       <div class="card-body">
                                        <div class="mb-20">
                                            {{-- <h4 class="sub-title">Solcitcaoa Fisisica sem caixas</h4> --}}
                                            
                                               
                                            <div class="row">
                                                <label class="col-sm-4 col-lg-2 col-form-label">Cliente</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            @php $meusclientes=\App\Models\FuncionarioCliente::join('clientes','clientes.id','funcionarioclientes.cliente_id')
                                                                                                             ->join('categorias','categorias.id','funcionarioclientes.categoria_id')
                                                                                                             ->join('users','users.id','funcionarioclientes.user_id')
                                                                                                             ->join('pessoas','pessoas.id','users.pessoa_id')
                                                                                                             ->select('pessoas.nome','users.id')->get();
                                                                                                        @endphp
                                                            <select class="form-control select2_group" name="cliente_id" required>
                                                                @foreach($meusclientes as $meuscliente)
                                                                <option value="{{$meuscliente->id}}">{{$meuscliente->nome}}</option>
                                                               @endforeach
                                                            </select>
                                                        </div>
                                                    </div>
                                            </div>

                                            <div class="row">
                                                <label class="col-sm-4 col-lg-2  col-form-label">Assunto</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            <select class="form-control select3" name="assunto" required>
                                                                  <option value="Documentação">Documentação</option>
                                                                    <option value="Dossier">Dossier</option>
                                                                    <option value="outro">outro</option>
                                                                
                                                                
                                                            </select>
                                                        </div>
                                                    </div>
                                            </div>
                                            
    
                                                <div class="row">
                                                                <label class="col-sm-4 col-lg-2 col-form-label">Tipo Documento/série documental</label>
                                                                <div class="col-sm-8 col-lg-10">
                                                                    <div class="input-group input-group-primary">
                                                                        <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-file-text" style="height:24px;"></i></label></span>
                                                                        <input type="text" class="form-control" name="tipodocumento" placeholder="tipo documento">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                    <div class="row">
                                                                <label class="col-sm-4 col-lg-2 col-form-label">Agência/Departamento</label>
                                                                <div class="col-sm-6">
                                                                    <div class="input-group input-group-warning">
                                                                        <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-home" style="height:24px;"></i></label></span>
                                                                        <input type="text" class="form-control" name="agencia" placeholder="Kilamba">
                                                                         <input type="text" name="tiposolictacao" value="doc_fisico" hidden>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                    <div class="row" hidden>
                                                        <label class="col-sm-4 col-lg-2 col-form-label">Natureza da Solicitação</label>
                                                        <div class="col-sm-6 col-lg-6">
                                                            <div class="input-group">
                                                                
                                                                    <select class="form-control select2" name="naturezasolcitacao">
                                                                       <option value="fisica" selected>fisica</option>
                                                                                
                                                                    </select>
                                                                            
                                                                        
                                                            </div>
                                                            
                                                        </div>
                                                    </div>
                                                 
                                                            <div class="row">
                                                                    <label class="col-sm-4 col-lg-2 col-form-label">comprovativo</label>
                                                                    <div class="col-sm-8 col-lg-10">
                                                                        <div class="input-group input-group-primary">
                                                                            <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-file-text" style="height:24px;"></i></label></span>
                                                                            <input type="file" class="form-control" name="comprovativo[]" multiple>
                                                                        </div>
                                                                    </div>
                                                                </div> 

                                                            <div class="row" hidden>
                                                                <label class="col-sm-4 col-lg-2 col-form-label">Natureza da Solicitação</label>
                                                                <div class="col-sm-6 col-lg-6">
                                                                    <div class="input-group">
                                                                        
                                                                                            <select class="form-control select2" name="naturezasolcitacao">
                                                                                
                                                                                                <option value="virtual" selected>virtual</option>
                                                                                            </select>
                                                                                    
                                                                                
                                                                    </div>
                                                                    
                                                                </div>
                                                            </div>
                                                                <div class="row">
                                                                    <label class="col-sm-4 col-lg-2 col-form-label">Urgência</label>
                                                                    <div class="col-sm-8 col-lg-10">
                                                                        <div class="input-group">
                                                                            
                                                                                            <div class="form-group">
                                                                                                <select class="form-control select2" name="urgencia">
                                                                                                    <option value="Não_Urgente">Não_Urgente</option>
                                                                                                <option value="urgente">urgente</option>>
                                                                                                </select>
                                                                                            </div>
                                                                                    
                                                                        </div>
                                                                        
                                                                    </div>
                                                                </div>
                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Detalhes da Solicitação</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            {{-- <span class="input-group-prepend" id="basic-addon2">
                                                                <label class="input-group-text"></label> 
                                                            </span> --}}
                                                            <textarea required class="form-control" name="nota" style="height:150px" placeholder="detalhes adicionais sobre a solicitação "></textarea>
                                                        </div>
                                                    </div>
                                                </div>

                                                
                                        
                                        <div class="row">
                                            <label class="col-sm-4 col-lg-2 col-form-label">senha</label>
                                            <div class="col-sm-6">
                                                <div class="input-group input-group-danger">
                                                    <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-lock"  style="height:24px;"></i></label></span>
                                                    <input type="password" class="form-control" name="password" placeholder="password">
                                                </div>
                                            </div>
                                        </div> 
                                      </div>
                                        <div class="row">
                                            {{-- <label class="col-sm-4 col-lg-2 col-form-label"></label> --}}
                                            <div class="col-sm-9 col-lg-9">
                                                <br><p></p>
                                                <button type="submit" class="btn btn-outline-primary w-50">Solicitar</button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            </div>

                        </div>

                    </div>
                    <div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">

            
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="card">
                                                {{-- <div class="card-header">
                                                    <h3>Input Group</h3>
                                                </div> --}}
                                                <form action="" class="meuform" name="cadsolitacao3">
                                                    @csrf
                                                     <div class="card-body">
                                                     <div class="mb-20">
                                                    {{-- <h4 class="sub-title">Solcitcaoa digital sem caixas</h4> --}}
                                                    
                                                       
                                                            <div class="row">
                                                                <label class="col-sm-4 col-lg-2 col-form-label">Cliente</label>
                                                                    <div class="col-sm-8 col-lg-10">
                                                                        <div class="input-group">
                                                                            @php $meusclientes=\App\Models\FuncionarioCliente::join('clientes','clientes.id','funcionarioclientes.cliente_id')
                                                                                                                             ->join('categorias','categorias.id','funcionarioclientes.categoria_id')
                                                                                                                             ->join('users','users.id','funcionarioclientes.user_id')
                                                                                                                             ->join('pessoas','pessoas.id','users.pessoa_id')
                                                                                                                             ->select('pessoas.nome','users.id')->get();
                                                                                                                        @endphp
                                                                            <select class="form-control select2_group" name="cliente_id" required>
                                                                                @foreach($meusclientes as $meuscliente)
                                                                                <option value="{{$meuscliente->id}}">{{$meuscliente->nome}}</option>
                                                                               @endforeach
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                            </div>
                
                                                            <div class="row">
                                                                <label class="col-sm-4 col-lg-2  col-form-label">Assunto</label>
                                                                    <div class="col-sm-8 col-lg-10">
                                                                        <div class="input-group">
                                                                            <select class="form-control select3" name="assunto" required>
                                                                                  <option value="Documentação">Documentação</option>
                                                                                    <option value="Dossier">Dossier</option>
                                                                                    <option value="outro">outro</option>
                                                                                
                                                                                
                                                                            </select>
                                                                        </div>
                                                                    </div>
                                                            </div>
                                                            
                    
                                                                <div class="row">
                                                                                <label class="col-sm-4 col-lg-2 col-form-label">Tipo Documento/série documental</label>
                                                                                <div class="col-sm-8 col-lg-10">
                                                                                    <div class="input-group input-group-primary">
                                                                                        <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-file-text" style="height:24px;"></i></label></span>
                                                                                        <input type="text" class="form-control" name="tipodocumento" placeholder="tipo documento">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                    <div class="row">
                                                                                <label class="col-sm-4 col-lg-2 col-form-label">Agência/Departamento</label>
                                                                                <div class="col-sm-6">
                                                                                    <div class="input-group input-group-warning">
                                                                                        <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-home" style="height:24px;"></i></label></span>
                                                                                        <input type="text" class="form-control" name="agencia" placeholder="Kilamba">
                                                                                         <input type="text" name="tiposolictacao" value="doc_digital" hidden>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                    <div class="row" hidden>
                                                                        <label class="col-sm-4 col-lg-2 col-form-label">Natureza da Solicitação</label>
                                                                        <div class="col-sm-6 col-lg-6">
                                                                            <div class="input-group">
                                                                                
                                                                                    <select class="form-control select2" name="naturezasolcitacao">
                                                                                       <option value="fisica" selected>fisica</option>
                                                                                                
                                                                                    </select>
                                                                                            
                                                                                        
                                                                            </div>
                                                                            
                                                                        </div>
                                                                    </div>
                                                                 
                                                                    <div class="row">
                                                                            <label class="col-sm-4 col-lg-2 col-form-label">comprovativo</label>
                                                                            <div class="col-sm-8 col-lg-10">
                                                                                <div class="input-group input-group-primary">
                                                                                    <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-file-text" style="height:24px;"></i></label></span>
                                                                                    <input type="file" class="form-control" name="comprovativo[]" multiple>
                                                                                </div>
                                                                            </div>
                                                                        </div> 
        
                                                                    <div class="row" hidden>
                                                                        <label class="col-sm-4 col-lg-2 col-form-label">Natureza da Solicitação</label>
                                                                        <div class="col-sm-6 col-lg-6">
                                                                            <div class="input-group">
                                                                                
                                                                                                    <select class="form-control select2" name="naturezasolcitacao">
                                                                                        
                                                                                                        <option value="virtual" selected>virtual</option>
                                                                                                    </select>
                                                                                            
                                                                                        
                                                                            </div>
                                                                            
                                                                        </div>
                                                                    </div>
                                                                        <div class="row">
                                                                            <label class="col-sm-4 col-lg-2 col-form-label">Urgência</label>
                                                                            <div class="col-sm-8 col-lg-10">
                                                                                <div class="input-group">
                                                                                    
                                                                                                    <div class="form-group">
                                                                                                        <select class="form-control select2" name="urgencia">
                                                                                                            <option value="Não_Urgente">Não_Urgente</option>
                                                                                                        <option value="urgente">urgente</option>>
                                                                                                        </select>
                                                                                                    </div>
                                                                                            
                                                                                </div>
                                                                                
                                                                            </div>
                                                                        </div>
                                                        <div class="row">
                                                            <label class="col-sm-4 col-lg-2 col-form-label">Detalhes da Solicitação</label>
                                                            <div class="col-sm-8 col-lg-10">
                                                                <div class="input-group">
                                                                    {{-- <span class="input-group-prepend" id="basic-addon2">
                                                                        <label class="input-group-text"></label> 
                                                                    </span> --}}
                                                                    <textarea required class="form-control" name="nota" style="height:150px" placeholder="detalhes adicionais sobre a solicitação "></textarea>
                                                                </div>
                                                            </div>
                                                        </div>

                                                
                                                        
                                                        <div class="row">
                                                            <label class="col-sm-4 col-lg-2 col-form-label">senha</label>
                                                            <div class="col-sm-6">
                                                                <div class="input-group input-group-danger">
                                                                    <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-lock"  style="height:24px;"></i></label></span>
                                                                    <input type="password" class="form-control" name="password" placeholder="password">
                                                                </div>
                                                            </div>
                                                        </div> 
                                                      </div>
                                                        <div class="row">
                                                            {{-- <label class="col-sm-4 col-lg-2 col-form-label"></label> --}}
                                                            <div class="col-sm-9 col-lg-9">
                                                                <br><p></p>
                                                                <button type="submit" class="btn btn-outline-warning w-50">Solicitar</button>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>
                                        </div>
            
                                    </div>


                    </div>
                    <div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">




                            <div class="row">
                                <div class="col-md-12">
                                    <div class="card">
                                        {{-- <div class="card-header">
                                            <h3>Input Group</h3>
                                        </div> --}}
                                        <form  class="meuform" name="cadsolitacao4" method="post">
                                            @csrf
                                          <div class="card-body">
                                            <div class="mb-20">
                                                {{-- <h4 class="sub-title">Basic Group Add-ons</h4> --}}
                                                
                                                 <div class="row">
                                                <label class="col-sm-4 col-lg-2 col-form-label">Cliente</label>
                                                    <div class="col-sm-8 col-lg-10">
                                                        <div class="input-group">
                                                            @php $meusclientes=\App\Models\FuncionarioCliente::join('clientes','clientes.id','funcionarioclientes.cliente_id')
                                                                                                             ->join('categorias','categorias.id','funcionarioclientes.categoria_id')
                                                                                                             ->join('users','users.id','funcionarioclientes.user_id')
                                                                                                             ->join('pessoas','pessoas.id','users.pessoa_id')
                                                                                                             ->select('pessoas.nome','users.id')->get();
                                                                                                        @endphp
                                                            <select class="form-control select2_group" name="cliente_id" required>
                                                                @foreach($meusclientes as $meuscliente)
                                                                <option value="{{$meuscliente->id}}">{{$meuscliente->nome}}</option>
                                                               @endforeach
                                                            </select>
                                                        </div>
                                                    </div>
                                                    </div>
                                            
                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Tipo Solicitação/Assunto</label>
                                                        <div class="col-sm-8 col-lg-10">
                                                            <div class="input-group">
                                                            <select class="form-control select3" name="assunto" required>
                                                                <option value="Solicitação para de envio de documentação já digitalizados" selected>Recolha de dados</option>
                                                                <option value="outro">outro</option>
                                                            </select>
                                                            </div>
                                                        </div>
                                                </div>
                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Data da Recolha</label>
                                                    <div class="col-sm-6">
                                                        <div class="input-group input-group-primary">
                                                            <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-calendar" style="height:24px;"></i></label></span>
                                                            <input type="date" class="form-control" name="datarecolha">
                                                        </div>
                                                    </div>
                                                </div>
                                            
                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Agência/Departamento</label>
                                                    <div class="col-sm-6">
                                                        <div class="input-group input-group-primary">
                                                            <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-home" style="height:24px;"></i></label></span>
                                                            <input type="text" class="form-control" name="agencia" placeholder="Ex.:Belas,Kilamba">
                                                             <input type="text" name="tiposolictacao" value="recolha" hidden>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Pessoa Indicada</label>
                                                    <div class="col-sm-6">
                                                        <div class="input-group input-group-primary">
                                                            <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-user" style="height:24px;"></i></label></span>
                                                            <input type="text" class="form-control" name="pessoaindicada" placeholder="Ex.: João Miguel Diaz ">
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row" hidden>
                                                    <label class="col-sm-4 col-lg-2 col-form-label">Natureza da Solicitação</label>
                                                    <div class="col-sm-6 col-lg-6">
                                                        <div class="input-group">
                                                            
                                                                                <select class="form-control select2" name="naturezasolcitacao">
                                                                    
                                                                                    <option value="fisica" selected>fisica</option>
                                                                                </select>
                                                                        
                                                                    
                                                        </div>
                                                        
                                                    </div>
                                                </div>
                                                    <div class="row">
                                                        <label class="col-sm-4 col-lg-2 col-form-label">Urgência</label>
                                                        <div class="col-sm-8 col-lg-10">
                                                            <div class="input-group">
                                                                
                                                                                <div class="form-group">
                                                                                    <select class="form-control select2" name="urgencia">
                                                                                        <option value="Não_Urgente">Não_Urgente</option>
                                                                                    <option value="urgente">urgente</option>>
                                                                                    </select>
                                                                                </div>
                                                                        
                                                            </div>
                                                            
                                                        </div>
                                                    </div>
                                                    
                                                    
                                                    <div class="row">
                                                        <label class="col-sm-4 col-lg-2 col-form-label">comprovativo</label>
                                                        <div class="col-sm-8 col-lg-10">
                                                            <div class="input-group input-group-primary">
                                                                <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-file-text" style="height:24px;"></i></label></span>
                                                                <input type="file" class="form-control" name="comprovativo">
                                                            </div>
                                                        </div>
                                                    </div> 

                                                    <div class="row">
                                                        <label class="col-sm-4 col-lg-2 col-form-label">Detalhes da Solicitação</label>
                                                        <div class="col-sm-8 col-lg-10">
                                                            <div class="input-group">
                                                                {{-- <span class="input-group-prepend" id="basic-addon2">
                                                                    <label class="input-group-text"></label> 
                                                                </span> --}}
                                                                <textarea required class="form-control" name="nota" style="height:150px" placeholder="detalhes adicionais sobre a solicitação"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <label class="col-sm-4 col-lg-2 col-form-label">senha</label>
                                                        <div class="col-sm-6">
                                                            <div class="input-group input-group-danger">
                                                                <span class="input-group-prepend"><label class="input-group-text"><i class="fa fa-lock"  style="height:24px;"></i></label></span>
                                                                <input type="password" class="form-control" name="password" placeholder="password">
                                                            </div>
                                                        </div>
                                                    </div> 
                                            </div>
                                          
                                            <div class="row">
                                                {{-- <label class="col-sm-4 col-lg-2 col-form-label"></label> --}}
                                                <div class="col-sm-9 col-lg-9">
                                                    <br><p></p>
                                                    <button type="submit" class="btn btn-outline-success w-50">Solicitar</button>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>


                    </div>
                  </div>


            </div>
        </div>
    </div>




            
</nav>
        
                             

<script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="//rawgithub.com/indrimuska/jquery-editable-select/master/dist/jquery-editable-select.min.js"></script>
<link href="//rawgithub.com/indrimuska/jquery-editable-select/master/dist/jquery-editable-select.min.css" rel="stylesheet">
<script src="{{url('js/select2.full.js')}}"></script>

 <script>
            $(document).ready(function () {
                $(".select2_single").select2({
                    placeholder: "Select a state",
                    allowClear: true
                });
                $(".select2_group").select2({});
                $(".select2_multiple").select2({
                    maximumSelectionLength: 4,
                    placeholder: "With Max Selection limit 4",
                    allowClear: true
                });
            });
  
        $('.select3').editableSelect();
        
        var triggerTabList = [].slice.call(document.querySelectorAll('#myTab a'))
            triggerTabList.forEach(function (triggerEl) {
              var tabTrigger = new bootstrap.Tab(triggerEl)
            
              triggerEl.addEventListener('click', function (event) {
                event.preventDefault()
                tabTrigger.show()
              })
            })

        </script>
<script>
    

$(function () {
        $('form[name="cadsolitacao"]').submit(function (data) {
            data.preventDefault();

            var form = document.forms.namedItem("cadsolitacao");
    
            //alert("hayy");
           var oData = new FormData(form);
        
           
                var oReq = new XMLHttpRequest();
                oReq.open("POST", "{{ route ('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacao.adoc.gestdoc.save.caixa') }}", true);
                oReq.respondeType='json';
                oReq.onload = function (e) {
                    if (oReq.readyState === 4) {
                        if (oReq.status === 200) {
                            console.log(oReq.response);
                            msgs=oReq.response;

                            //alert("hayy");
                            let data3=$.parseJSON(msgs);
                            
                                if(data3.success==="fisico")
                                {
                                    const Toast = Swal.mixin({
                                        toast: true,
                                        position: 'top-end',
                                        showConfirmButton: false,
                                        timer: 2200,
                                        timerProgressBar: true,
                                    
                                        });
        
                                        Toast.fire({
                                        icon: 'success',
                                        title: ''+data3.message,
                                            });
                                     window.location.href = "{{route('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacaoes.fisicos.new.index')}}";
                                     return;
                                }
                                  
                                     Swal.fire({ position: 'top-end',
                                            icon: 'error',
                                            text: ''+data3.message,
                                            })
                                    
                                
                        

                        } else {
                        console.error(oReq.statusText);
                        }
                    }
                };
                    oReq.onerror = function (e) {
                    console.error(oReq.statusText);
                    };
                    oReq.send(oData);
                
        });
    });
   

$(function () {
        $('form[name="cadsolitacao2"]').submit(function (data) {
            data.preventDefault();

            var form = document.forms.namedItem("cadsolitacao2");
    
            //alert("hayy");
           var oData = new FormData(form);
        
           
                var oReq = new XMLHttpRequest();
                oReq.open("POST", "{{ route ('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacao.adoc.gestdoc.save.caixa') }}", true);
                oReq.respondeType='json';
                oReq.onload = function (e) {
                    if (oReq.readyState === 4) {
                        if (oReq.status === 200) {
                            console.log(oReq.response);
                            msgs=oReq.response;

                            //alert("hayy");
                            let data3=$.parseJSON(msgs);
                            
                                if(data3.success==="fisico")
                                {
                                    const Toast = Swal.mixin({
                                        toast: true,
                                        position: 'top-end',
                                        showConfirmButton: false,
                                        timer: 2200,
                                        timerProgressBar: true,
                                    
                                        });
        
                                        Toast.fire({
                                        icon: 'success',
                                        title: ''+data3.message,
                                            });
                                     window.location.href = "{{route('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacaoes.fisicos.new.index')}}";
                                     return;
                                }
                                  
                                     Swal.fire({ position: 'top-end',
                                            icon: 'error',
                                            text: ''+data3.message,
                                            })
                                    
                                
                        

                        } else {
                        console.error(oReq.statusText);
                        }
                    }
                };
                    oReq.onerror = function (e) {
                    console.error(oReq.statusText);
                    };
                    oReq.send(oData);
                
        });
    });
   
   
   $(function () {
        $('form[name="cadsolitacao3"]').submit(function (data) {
            data.preventDefault();

            var form = document.forms.namedItem("cadsolitacao3");
    
            //alert("hayy");
           var oData = new FormData(form);
        
           
                var oReq = new XMLHttpRequest();
                oReq.open("POST", "{{ route ('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacao.adoc.gestdoc.save.caixa') }}", true);
                oReq.respondeType='json';
                oReq.onload = function (e) {
                    if (oReq.readyState === 4) {
                        if (oReq.status === 200) {
                            console.log(oReq.response);
                            msgs=oReq.response;

                            //alert("hayy");
                            let data3=$.parseJSON(msgs);
                            
                                if(data3.success==="virtual")
                                {
                                    const Toast = Swal.mixin({
                                        toast: true,
                                        position: 'top-end',
                                        showConfirmButton: false,
                                        timer: 2200,
                                        timerProgressBar: true,
                                    
                                        });
        
                                        Toast.fire({
                                        icon: 'success',
                                        title: ''+data3.message,
                                            });
                                     window.location.href = "{{route('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacaoes.virtuais.new.index')}}";
                                     return;
                                }
                                  
                                     Swal.fire({ position: 'top-end',
                                            icon: 'error',
                                            text: ''+data3.message,
                                            })
                                    
                                
                        

                        } else {
                        console.error(oReq.statusText);
                        }
                    }
                };
                    oReq.onerror = function (e) {
                    console.error(oReq.statusText);
                    };
                    oReq.send(oData);
                
        });
    });
   
   
   $(function () {
        $('form[name="cadsolitacao4"]').submit(function (data) {
            data.preventDefault();

            var form = document.forms.namedItem("cadsolitacao4");
    
            //alert("hayy");
           var oData = new FormData(form);
        
           
                var oReq = new XMLHttpRequest();
                oReq.open("POST", "{{ route ('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacao.adoc.gestdoc.save.caixa') }}", true);
                oReq.respondeType='json';
                oReq.onload = function (e) {
                    if (oReq.readyState === 4) {
                        if (oReq.status === 200) {
                            console.log(oReq.response);
                            msgs=oReq.response;

                            //alert("hayy");
                            let data3=$.parseJSON(msgs);
                            
                                if(data3.success==="fisico")
                                {
                                    const Toast = Swal.mixin({
                                        toast: true,
                                        position: 'top-end',
                                        showConfirmButton: false,
                                        timer: 2200,
                                        timerProgressBar: true,
                                    
                                        });
        
                                        Toast.fire({
                                        icon: 'success',
                                        title: ''+data3.message,
                                            });
                                     window.location.href = "{{route('us.pedidosconsulta.confpedidosconsulta.pedidos.solicitacaoes.fisicos.new.index')}}";
                                     return;
                                }
                                  
                                     Swal.fire({ position: 'top-end',
                                            icon: 'error',
                                            text: ''+data3.message,
                                            })
                                    
                                
                        

                        } else {
                        console.error(oReq.statusText);
                        }
                    }
                };
                    oReq.onerror = function (e) {
                    console.error(oReq.statusText);
                    };
                    oReq.send(oData);
                
        });
    });
      
</script>
        
        
 @endsection