<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h4>
        Contrato: {{$anuncio->contrato}} <br>
        Empresa: {{$anuncio->fantasia}} <br>       
        Instagram: {{$anuncio->instagram}} <br>
        Site: {{$anuncio->site}} <br>
        E-mail: {{$anuncio->email}} <br>
        Endereço: {{$anuncio->endereco}}, {{$anuncio->numero}} {{$anuncio->complemento}}, {{$anuncio->bairro}}, {{$anuncio->cidade}}-{{$anuncio->estado}}  CEP:{{$anuncio->cep}} <br>
        <hr>
        IIr.·. <br>
        {{$anuncio->titulo_ir}} {{$anuncio->nome}} <br>
        @foreach ($anuncio->Socios as $ir)
            {{$ir->titulo}} {{$ir->nome}} <br>
        @endforeach
        <hr>
        Contatos.·. 
        @foreach ($anuncio->telefones as $tel)
            {{$tel->tipo}} {{$tel->numero}} <br>
        @endforeach
        <hr>
        <img src="{{ !empty($anuncio->thumb) ? $anuncio->thumb : url('adm/assets/images/add-photo.png') }}" width="300">

        <form action="{{ route('anuncio.store') }}" enctype="multipart/form-data" method="post">
        @csrf
        <input type="hidden" value="{{ $anuncio->id }}" name="anuncio_id" id="anuncio_id">
        <input type="hidden" value="rabin" name="rabin">
        <input type="file" name="thumb">
        <button type="submit">Salvar</button>
        </form>
    </h4>
</body>
</html>
