@extends('usuarios.funcionarios.master.layout2')
@section('conteudo')
    <style type="text/css">
        .flex
            {
            min-width: 100%;
            }
    </style>
    {{-- SELECT STYLE --}}

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
    <script src="{{asset('js/jquery.dataTables.min.js') }}"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">


                        <div class="container-fluid">
                            <div class="page-header">
                                <div class="row align-items-end">
                                    <div class="col-lg-8">
                                        <div class="page-header-title">
                                            <div class="d-inline">
                                                 <h3></h><i class="fa fa-hourglass-half"></i>
                                                P E D I D O S E C O N  S U L T A S<br>
                                                <i>Detalhes da Solicitação Recebidas - virtual</i></h3>
                                                
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-4">
                                        <nav class="breadcrumb-container" aria-label="breadcrumb">
                                           
                                        </nav>
                                    </div>
                                </div>
                            </div>

                            <div class="card">
                                <div class="row">
                        <div class="col-md-12">
                            <div class="x_panel">
                                <div class="x_title" >
                                     @php $meu_nome=\App\Models\Cliente::find($dados->cliente_id)->getUser->getPessoa; @endphp
                                    <h2 style="color:blue;">Solicitação Nº:{{$dados->numerosocilitacao}}, {{$meu_nome->nome}}</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">

                                    <section class="content invoice">
                                        <!-- title row -->
                                        <div class="row">
                                            <div class="col-xs-12 invoice-header">
                                              
                                                         <small class="pull-right"><h6>
                                        <i class="fa fa-clock"></i> <b>Data Recebida:</b> {{$dados->created_at}}</h6></small>
                                   
                                            </div>
                                            <!-- /.col -->
                                        </div>
                                        <!-- info row -->
                                        <div class="row invoice-info">
                                            <div class="col-sm-6 invoice-col">
                                              
                                              <address>
                                                    
                                                    <h5>Enviado Por: <span class="h6"><strong>{{$dados->nome}}</strong></span></h5>
                                                    <h5>Categoria: <span class="h6">{{$dados->categoriacliente}}</span></h5>
                                                    <h5>Assunto:<span class="h6"><strong>{{$dados->assuntosolicitacao}}</strong></span></h5>
                                                    <h5>Natureza da solicitacão:<span class="h6">{{$dados->naturezasolicitacao}}<strong></strong></span></h5>
                                                </address>
                                                </div>
                                                <!-- /.col -->
                                                <div class="col-sm-6 invoice-col">
                                                    
                                                    <address>
                                                    <h5>Tipo Documentação:<span class="h6"> {{$dados->tipodocumentosolicitacao}}<br></span></h5>
                                                    <h5>Tempo de espera:<span class="h6"> processando...</span><br></h5>
                                                
                                                </address>
                                                </div>
                                            <!-- /.col -->
                                   
                                        </div>
                                        <!-- /.row -->

                                        <!-- Table row -->
                                        <div class="row">
                                            <div class="col-xs-12 table">
                                                <table class="table table-striped"><br>
                                                <h5>Detalhes da solicitacão<span class="h6"></h6> </h5>
                                                  <textarea class="form-control" style="height:200px;">{{$dados->detalhessolicitacao}}</textarea>
                                                </table>
                                            </div>
                                            <!-- /.col -->
                                        </div>
                                        
                                         @php $meu_comprovativo=\App\Models\ComprovativoSolicitacao::join('solicitacaos','solicitacaos.id','comprovativosolicitacaos.solicitacao_id')
                                                                                              ->where('solicitacaos.id',$dados->id)->get();
                                                                                     //dd($dados->id);
                                    @endphp
                                    @if(!($meu_comprovativo->isEmpty()))
                                           <div class="row" style="background-color:#fb3 !important;">
                                            <div class="col-xs-6 table">
                                                <table class="table table-striped"><br>
                                                <h3 class="text-center">Comprovativo </h3>
                                                     <div class="col-md-55">
                                            <div class="thumbnail">
                                                <div class="image view view-first">
                                                    <img style="width: 100%; display: block;" src="images/4.jpg" alt="image" />
                                                    <div class="mask">
                                                        <p>Your Text</p>
                                                        <div class="tools tools-bottom">
                                                            <a href="#"><i class="fa fa-link"></i></a>
                                                            <a href="#"><i class="fa fa-pencil"></i></a>
                                                            <a href="#"><i class="fa fa-times"></i></a>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="caption">
                                                    <p>Snow and Ice Incoming for the South</p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-55">
                                            <div class="thumbnail">
                                                <div class="image view view-first">
                                                    <img style="width: 100%; display: block;" src="images/4.jpg" alt="image" />
                                                    <div class="mask">
                                                        <p>Your Text</p>
                                                        <div class="tools tools-bottom">
                                                            <a href="#"><i class="fa fa-link"></i></a>
                                                            <a href="#"><i class="fa fa-pencil"></i></a>
                                                            <a href="#"><i class="fa fa-times"></i></a>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="caption">
                                                    <p>Snow and Ice Incoming for the South</p>
                                                </div>
                                            </div>
                                        </div>
                                                </table>
                                            </div>
                                            <!-- /.col -->
                                        </div>
                                    @endif
                               
                                    </section>
                                </div>
                            </div>
                        </div>
                    </div>
                            </div>
                        </div>

    @endsection