<?php echo $__env->make('header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>



<div class="wrapper">
   <div class="fw_block bg_start wall_wrap">

      <div class="row">
         <div class="col-sm-12 first-module module_slider module_cont pb0 light_parent">
            <div class="slider_container">
               <div class="fullscreen_slider">
                  <ul>
                     <?php $__currentLoopData = $layout->slides; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                     <li data-transition="fade" data-slotamount="5" data-masterspeed="800">
                        <img src="<?php echo e($slide->image); ?>" data-bgposition="center top" data-bgrepeat="no-repeat" />
                     </li>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

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

   </div>
</div>

<?php if($ad_top->enable): ?>
<div id="equipe2" class="adtop" style="position: relative; padding-top:20px; padding-bottom:20px;">
   <div align="center">
      <div class="row">
         <?php if(!empty($ad_top->url)): ?>
             <a href="<?php echo e($ad_top->url); ?>" target="_blank">
         <?php endif; ?>
         <div class="col-sm-12"> <img class="img-responsive" src="<?php echo e(asset($ad_top->image)); ?>"> </div>
         <?php if(!empty($ad_top->url)): ?>
             </a>
         <?php endif; ?>
      </div>
   </div>
</div>
<?php endif; ?>

<?php if($stream->enable_webtv || $stream->enable_chat): ?>


<div id="sobre" class="sobre" style="position: relative; padding-top:80px; padding-bottom: 80px; ">
   <div class="container">
      <div class="row">
         <div class="col-xs-12 col-sm-12 col-md-12">
            <div>
               <div class="titulo_padrao" style="color: #fff;"> <?php echo $streamtext->title; ?> </div>
            </div>
         </div>
      </div>
      <div class="row">
         <div class="col-xs-12">
            <div style="margin-top:30px;margin-bottom:30px;text-align: center;">
               <?php echo $streamtext->message; ?>

            </div>
         </div>
         <?php if($stream->enable_webtv): ?>
         <?php if($stream->enable_chat): ?>
         <div class="col-xs-12 col-sm-6 col-md-6">
            <?php else: ?>
            <div class="col-xs-12 col-sm-12 col-md-12">
               <?php endif; ?>

               <h2 style="text-align: center;color: #fff;">
                  <?php echo $streamtext->live; ?>

               </h2>
               <div class="tv-borda">
                  <!--<div class="embed-responsive embed-responsive-4by3">-->
                  <div class="embed-responsive-4by3">
                     <?php echo $stream->web_tv; ?>

                  </div>
               </div>
            </div>
            <?php endif; ?>

            <?php if($stream->enable_chat): ?>

            <?php if($stream->enable_webtv): ?>
            <div class="col-xs-12 col-sm-6 col-md-6">
               <?php else: ?>
               <div class="col-xs-12 col-sm-12 col-md-12">
                  <?php endif; ?>
                  <h2 class="m-t-30" style="text-align: center;color: #fff;">
                     <?php echo $streamtext->chat; ?>

                  </h2>
                  <div class="chat-borda ">
                     <!-- <div class="fb-comments" data-href="https://player.conectastm.com/chat/8146" data-width="100%" data-numposts="1"></div> -->
                     <div class="embed-responsive embed-responsive-4by3">
                        <?php echo $stream->chat; ?>

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

               <?php endif; ?>
            </div>
         </div>
      </div>
      <?php endif; ?>

      <?php
      $enable_post = false;

      foreach($posts as $post){
      if($post->enable){
      $enable_post = true;
      break;
      }
      }

      $enable_event = false;

      foreach($events as $event){
      if($event->enable){
      $enable_event = true;
      break;
      }
      }
      ?>

      <?php if($enable_post || $enable_event): ?>


      <div class="wrapper blog">
         <div class="container">
            <div class="content_block row no-sidebar">
               <div class="fl-container">
                  <div class="posts-block" >
                     <div class="contentarea">
                        <div id="blog" style="position: relative; padding-top:20px;">
                           <div class="container">
                              <div class="row">
                                 <div class="col-sm-7">
                                    <?php if($post_emphasis->enable): ?>
                                    <div class="titulo_padrao" style="text-align: left;">
                                       <?php echo $postsText->title; ?>

                                    </div>

                                    <div style="margin-top:30px;">
                                       <p><span style="font-size:20px"><span style="color:#FFFFFF"><strong><span
                                                      style="background-color:#FF0000">DESTAQUE</span></strong></span></span>
                                       </p>
                                       <p><a href="<?php echo e(route('posts.show', $post->id)); ?>"><span
                                                style="color:#000000"><span style="font-size:20px"><strong><?php echo e($post_emphasis->title); ?></strong></span></a></span><br>
                                          <span style="color:#696969"><span style="font-size:20px"><strong><?php echo e($post_emphasis->summary); ?></strong></span></span>
                                       </p>
                                    </div>
                                    <?php endif; ?>



                                    <?php if($enable_post): ?>
                                    <div class="row">
                                       <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                       <div class="col-sm-6">
                                          <div class="noticias_div">
                                             <a href="<?php echo e(route('posts.show', $post->id)); ?>" class="noticias_imagem"
                                                style="background-image:url(<?php echo e(asset($post->thumbnail)); ?>); "></a>
                                             <a class="noticias_titulo" href="<?php echo e(route('posts.show', $post->id)); ?>"><?php echo e($post->title); ?></a>
                                             <div class="noticias_dia"><?php echo e(date_format($post->updated_at, 'd/m/Y')); ?>

                                             </div>
                                             <div class="noticias_previa"><?php echo e($post->summary); ?></div>
                                          </div>
                                       </div>
                                       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>

                                    <div style="width: 100%; padding-top: 30px;"></div>
                                    <?php endif; ?>
                                 </div>


                                 <?php if($enable_event): ?>
                                 <div id="servicos" class="col-sm-5">
                                    <div class="titulo_padrao" style="text-align: left;">
                                       <?php echo $eventstext->title; ?>

                                    </div>
                                    <div style="margin-top: 30px;">
                                       <p><?php echo $eventstext->message; ?></p>
                                    </div>
                                    <div style="margin-top:30px;">
                                       <div class="row col-sm-12 module_cont module_accordion">
                                          <div class="shortcode_accordion_shortcode accordion">
                                             <?php $__currentLoopData = $events; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $event): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                             <h5 data-count="<?php echo e($event->id); ?>"
                                                class="row shortcode_accordion_item_title card_item_topo expanded_no">
                                                <span class="card_sub_titu">
                                                   <?php echo e($event->title); ?> </span><span class="ico"></span>
                                             </h5>
                                             <div class="col-sm-12 shortcode_accordion_item_body">
                                                <div class="ip">
                                                   <?php echo e($event->description); ?>

                                                </div>
                                             </div>
                                             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                          </div>
                                       </div>
                                    </div>
                                 </div>
                                 <?php endif; ?>
                                 <?php if($ad_side->enable): ?>
                                 <div id="servicos" class="col-sm-5">
                                    <?php if(!empty($ad_top->url)): ?>
                                       <a href="<?php echo e($ad_side->url); ?>" target="_blank">
                                    <?php endif; ?>
                                       <img class="img-responsive" src="<?php echo e(asset($ad_side->image)); ?>">
                                  <?php if(!empty($ad_top->url)): ?>
                                    </a>
                                   <?php endif; ?>
                                 </div>
                                 <?php endif; ?>
                              </div>
                           </div>
                        </div>
                        <div id="sobre" style="padding-top: 80px;"></div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <?php endif; ?>
      <?php
      $enable = false;

      foreach($photos as $photo){
      if($photo->enable){
      $enable = true;
      break;
      }
      }
      ?>

      <?php if($enable): ?>
      <div id="galeria" class="galeria_inicial">
         <div class="container">
            <div class="row">
               <div class="col-sm-12">
                  <div class="titulo_padrao" style="color:#fff;">
                     <?php echo $photostext->title; ?>

                  </div>
                  <div style="margin-top:30px; color:#fff; width: 100%; padding-bottom: 30px;">
                     <p style="text-align:center"><?php echo $photostext->message; ?></p>
                  </div>
               </div>
            </div>
            <div class="row">
               <div class="col-sm-12">
                  <div class="bg_start wall_wrap">
                     <div class="list-of-images items3 photo_gallery">
                        <?php $__currentLoopData = $photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="gallery_item">
                           <div class="gallery_item_padding">
                              <div class="gallery_item_wrapper">
                                 <img src="<?php echo e($photo->image); ?>" alt="">
                                 <span class="block_fade"></span>
                                 <a href="<?php echo e($photo->image); ?>" class="view_link photozoom"><i
                                       class="icon-search"></i></a>
                              </div>
                           </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <?php endif; ?>
   </div>

   <?php
   $enable = false;


   if($poll->enable){
   $enable = true;
   }

   ?>

   <?php if($enable): ?>
   <div id="enquete" class="enquete" style="position: relative; padding-top:80px; padding-bottom: 80px;">
      <div class="container">
         <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
               <div>
                  <div class="titulo_padrao"> <?php echo $polltext->title; ?> </div>
               </div>
            </div>
         </div>
         <div class="row">
            <div class="col-xs-12">
               <div style="margin-top:30px;">
                  <p><?php echo $polltext->message; ?></p>
               </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-6">
               <div style="margin-top:50px; width: 100%;">
                  <p>
                     <span class="apres_subtextos"> <span class="apres_ico"><img
                              src="<?php echo e(asset($poll->image)); ?>"></span><br>
                        Publicidade
                     </span>
                  </p>
               </div>
            </div>
            <div class="col-xs-12 col-sm-6 col-md-6">
               <div style="padding:25px; width: 100%; background-color:#FFFFFF; margin-top: 50px;">
                  <form action="" method="post" id="enqueteform" name="enqueteform">
                     <div style="font-size: 18px; color:#000; padding-bottom: 0px;">
                        <b><?php echo e($poll->question); ?></b>
                     </div>
                     <?php $__currentLoopData = $poll->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                     <div style="padding-top:5px;"> <input type="radio" name="answer" id="answer_<?php echo e($option->id); ?>"
                           value="<?php echo e($option->id); ?>"> <label for="answer_<?php echo e($option->id); ?>"><?php echo e($option->answer); ?></label></div>
                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                     <div style="margin-top:10px;">
                        <input id="enviar_voto" type="button" value="VOTAR" class="botao_padrao" onclick="vote()">

                     </div>
                  </form>
               </div>
            </div>
         </div>
      </div>
   </div>
   <?php endif; ?>
   <?php
   $enable = false;

   foreach($teams as $team){
   if($team->enable){
   $enable = true;
   break;
   }
   }
   ?>

   <?php if($enable): ?>

   <div id="equipe" class="equipe" style="position: relative; padding-top:80px; padding-bottom: 80px;">
      <div class="container">
         <div class="row">
            <div class="col-sm-12 ">
               <div class="titulo_padrao">
                  <?php echo $teamtext->title; ?>

               </div>
               <div style="margin-top:30px;">
                  <p style="text-align:center"><?php echo $teamtext->message; ?></p>
               </div>
            </div>
         </div>
         <div class="row">
            <?php $__currentLoopData = $teams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $team): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-sm-3">
               <div class="equipe_item">
                  <div class="equipe_item_img" style="background-image:url(<?php echo e($team->image); ?>);"></div>
                  <div class="equipe_item_nome"><?php echo e($team->name); ?> - <?php echo e($team->sector); ?></div>
               </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         </div>
      </div>
   </div>

   <?php endif; ?>

   <?php
   $enable = false;

   foreach($schedules as $schedule){
   if($schedule->enable){
   $enable = true;
   break;
   }
   }
   ?>

   <?php if($enable): ?>

   <div id="programacao" class="programacao" style="position: relative; padding-top:50px; padding-bottom: 10px;">
      <div class="container">
         <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
               <div>
                  <div class="titulo_padrao">
                     <div align="center" class="style3"><?php echo $scheduletext->title; ?></div>
                  </div>
               </div>
            </div>
         </div>
         <div class="row">
            <div class="col-xs-12 col-sm-2 col-md-2"></div>
            <div class="col-xs-12 col-sm-8 col-md-8">
               <div style="margin-top:50px; width: 100%;">
                  <p style="text-align:center">
                     <?php echo $scheduletext->message; ?>

                  </p>
               </div>
            </div>
            <div class="col-xs-12 col-sm-2 col-md-2"></div>
         </div>
         <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
               <div class="programacao_dias_semana">
                  <a class="dias_semana_item <?php echo e($day_the_week == 'sunday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('sunday');" id="bt_sunday">Domingo</a>
                  <a class="dias_semana_item <?php echo e($day_the_week == 'monday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('monday');" id="bt_monday">Segunda</a>
                  <a class="dias_semana_item <?php echo e($day_the_week == 'tuesday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('tuesday');" id="bt_tuesday">Terça</a>
                  <a class="dias_semana_item <?php echo e($day_the_week == 'wednesday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('wednesday');" id="bt_wednesday">Quarta</a>
                  <a class="dias_semana_item <?php echo e($day_the_week == 'thursday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('thursday');" id="bt_thursday">Quinta</a>
                  <a class="dias_semana_item <?php echo e($day_the_week == 'friday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('friday');" id="bt_friday">Sexta</a>
                  <a class="dias_semana_item <?php echo e($day_the_week == 'saturday' ? 'dias_semana_item_ativo' : ''); ?>"
                     onclick="schedule('saturday');" id="bt_saturday">Sábado</a>
               </div>
            </div>
         </div>
         <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
               <div class="lista_dia" id="progr_lista_dia">
                  <table style="width:100%">
                     <tbody>
                        <tr
                           style="border-top: 1px solid #000; border-left: 1px solid #000; border-right: 1px solid #000;">
                           <td class="prog_td_titulo"><i class="fa fa-calendar" aria-hidden="true"></i> INÍCIO</td>
                           <td class="prog_td_titulo">PROGRAMA</td>
                           <td class="prog_td_titulo">APRESENTADOR</td>
                        </tr>
                        <?php $__currentLoopData = $schedules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $schedule): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr class="prog_linha">
                           <td class="prog_td_linha" style="text-align:center;"><?php echo e($schedule->start_time); ?></td>
                           <td class="prog_td_linha"><?php echo e($schedule->name); ?></td>
                           <td class="prog_td_linha"><?php echo e($schedule->present); ?></td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                     </tbody>
                  </table>
               </div>
            </div>
         </div>
      </div>
   </div>

   <?php endif; ?>


   <?php
   $enable = false;

   foreach($statisticsinformations as $statisticsinformation){
   if($statisticsinformation->enable){
   $enable = true;
   break;
   }
   }
   ?>

   <?php if($enable): ?>
   <div class="div_numeros">
      <div class="container">
         <div class="row">

            <?php
            $count = 0;
            ?>
            <?php $__currentLoopData = $statisticsinformations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $statisticsinformation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>


            <div class="col-sm-4 module_cont pb43">
               <div class="module_content shortcode_counter">

                  <?php if($count == 0): ?>
                  <div style="margin-bottom: 20px; text-align: center; width: 100%;"><img
                        src="<?php echo e(asset('img/ouvintes.png')); ?>" style="height:45px;"></div>
                  <?php elseif($count == 1): ?>
                  <div style="margin-bottom: 20px; text-align: center; width: 100%;"><img
                        src="<?php echo e(asset('img/brasil.png')); ?>" style="height:45px;"></div>
                  <?php elseif($count == 2): ?>
                  <div style="margin-bottom: 20px; text-align: center; width: 100%;"><img
                        src="<?php echo e(asset('img/24hours.png')); ?>" style="height:45px;"></div>
                  <?php endif; ?>

                  <?php
                  $count++;
                  ?>



                  <div class="counter_wrapper">
                     <div class="counter_content">
                        <div class="counter_body">
                           <div class="stat_count_wrapper">
                              <h1 class="stat_count" data-count="<?php echo e($statisticsinformation->value); ?> ">0</h1>
                              <h4 class="counter_title">
                                 <?php echo e($statisticsinformation->name); ?>

                              </h4>
                           </div>
                           <div class="stat_temp"></div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

         </div>
      </div>
   </div>
   <?php endif; ?>

   <?php if($settings->smtp_enable): ?>

   <div id="faleconosco" style="position: relative; padding-top:80px; padding-bottom: 80px; background-color:#fff">
      <div class="container">
         <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
               <div>
                  <div class="titulo_padrao">
                     ENTRE EM CONTATO
                  </div>
               </div>
            </div>
         </div>
         <div class="row">
            <div class="col-xs-12 col-sm-2 col-md-2"></div>
            <div class="col-xs-12 col-sm-8 col-md-8">
               <div style="margin-top:50px; width: 100%;">
                  <p style="text-align:center"><span style="color:#000000"><span style="font-size:18px">Entre em contato
                           com nossa equipe, assim que possível entraremos em contato com você.</span></span></p>
               </div>
               <div style="margin-top:50px; width: 100%;">
                  <form enctype="multipart/form-data">
                     <fieldset>
                        <input type="text" placeholder="NOME" name="replay_name" id="replay_name"
                           style="background-image: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHklEQVQ4EaVTO26DQBD1ohQWaS2lg9JybZ+AK7hNwx2oIoVf4UPQ0Lj1FdKktevIpel8AKNUkDcWMxpgSaIEaTVv3sx7uztiTdu2s/98DywOw3Dued4Who/M2aIx5lZV1aEsy0+qiwHELyi+Ytl0PQ69SxAxkWIA4RMRTdNsKE59juMcuZd6xIAFeZ6fGCdJ8kY4y7KAuTRNGd7jyEBXsdOPE3a0QGPsniOnnYMO67LgSQN9T41F2QGrQRRFCwyzoIF2qyBuKKbcOgPXdVeY9rMWgNsjf9ccYesJhk3f5dYT1HX9gR0LLQR30TnjkUEcx2uIuS4RnI+aj6sJR0AM8AaumPaM/rRehyWhXqbFAA9kh3/8/NvHxAYGAsZ/il8IalkCLBfNVAAAAABJRU5ErkJggg==&quot;); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%;">
                        <span class="coll-1">
                           <input type="text" placeholder="E-MAIL" name="replay_email" id="replay_email">
                        </span> <span class="coll-1 last">
                           <input type="text" placeholder="TELEFONE" name="replay_phone" id="replay_phone"
                              onkeypress="Mascara(this,telefone)" onkeydown="Mascara(this,telefone)" maxlength="15">
                        </span>
                        <div class="box clearfix">
                           <textarea placeholder="ESCREVA SUA MENSAGEM" name="html_body" id="html_body"
                              style="height: 100px;"></textarea>
                           <div class="row" style="margin-top:20px;">
                              <div class="col-md-8">
                                 <div class="g-recaptcha" data-sitekey=""></div>
                              </div>
                              <div class="col-md-4">
                                 <div style="text-align: right;">
                                    <input type="button" value="ENVIAR" onclick="sendmail();" class="botao_news"
                                       name="button_sendmail" id="button_sendmail" style="border-radius: 2px;">
                                 </div>
                              </div>
                           </div>
                        </div>
                     </fieldset>
                  </form>
               </div>
            </div>
            <div class="col-xs-12 col-sm-2 col-md-2"></div>
         </div>
      </div>
   </div>

   <?php endif; ?>

   <?php
   $enable = false;

   foreach($ads as $ad){
   if($ad->enable){
   $enable = true;
   break;
   }
   }
   ?>

   <?php if($enable): ?>

   <style type="text/css">
      section.anuncio {
         padding-top: 40px;
         padding-bottom: 25px;
         
      }

      .carousel-control {
         padding-top: 10%;
         width: 5%;
      }
   </style>
   <section class="anuncio">
      <div class="container">
         <div class="col-md-12">
            <div id="myCarousel" class="carousel slide">
               <!-- Carousel items -->
               <div class="carousel-inner">

                  <?php
                  $count = 0;
                  $active = 'active';
                  ?>

                  <?php $__currentLoopData = $ads; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ad): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                  <?php if($count == 0): ?>
                  <div class="item <?php echo $active; ?>">
                     <div class="row">
                        <?php endif; ?>


                        <div class="col-sm-3"><a class="thumbnail" href="<?php echo e($ad->url); ?>" target="_blank"><img class="img-responsive"
                                 src="<?php echo e(asset($ad->image)); ?>"></a></div>




                        <?php if($count == 4): ?>
                     </div>
                     <!--/row-->
                  </div>
                  <?php endif; ?>

                  <?php
                  $count++;
                  if($count >= 4){
                  $active = '';
                  $count = 0;
                  }
                  ?>

                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                  <!--/item-->
               </div>
               <!--/carousel-inner-->
               <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
               <a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
            </div>
            <!--/myCarousel-->
         </div>
      </div>
   </section>

   <?php endif; ?>

   <?php echo $__env->make('footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


   <script>


      function schedule(day_the_week){
        
        $('#progr_lista_dia').html("<div style='text-align:center;'><img src='<?php echo e(asset('img/loading.gif')); ?>' style='width:25px;'></div>");
        

        $.ajax({
            headers: {
                'X-CSRF-Token': "<?php echo e(csrf_token()); ?>",
            },
            type: 'POST',
            url: "<?php echo e(route('schedule.index')); ?>",
            data: {
               day_the_week: day_the_week
            },
            enctype: 'multipart/form-data',
            success: function(data){
 
                  $('#progr_lista_dia').html(data);
         
                  $(".dias_semana_item").removeClass("dias_semana_item_ativo");
                  $("#bt_"+day_the_week).addClass("dias_semana_item_ativo");
       
                
            },
            error: function(data){
   
                console.log('Erro no Ajax !');
            }
        });


    
}

function sendmail(){
        
   
   $('#button_sendmail').prop( "disabled", true );
        $.ajax({
            headers: {
                'X-CSRF-Token': "<?php echo e(csrf_token()); ?>",
            },
            type: 'POST',
            url: "<?php echo e(route('home.sendmail')); ?>",
            data: {
               replay_name: $('#replay_name').val(),
               replay_email: $('#replay_email').val(),
               replay_phone: $('#replay_phone').val(),
               html_body: $('#html_body').val()
            },
            enctype: 'multipart/form-data',
            success: function(data){
 
                 alert(data.message)
                 $('#button_sendmail').prop( "disabled", false );
            },
            error: function(data){
               
                console.log('Erro no Ajax !');
                $('#button_sendmail').prop( "disabled", false );
            }
        });


    
}

function vote(){

   
   $('#enviar_voto').prop( "disabled", true );
        $.ajax({
            headers: {
                'X-CSRF-Token': "<?php echo e(csrf_token()); ?>",
            },
            type: 'POST',
            url: "<?php echo e(route('polls.store')); ?>",
            data: {
               answer: $("input[name='answer']:checked").val()
            },
            enctype: 'multipart/form-data',
            success: function(data){
 
                  if(data.success){
                     $('#enqueteform').html(data.result);
                  }
                 $('#enviar_voto').prop( "disabled", false );

            },
            error: function(data){
                  console.log(data);
                console.log('Erro no Ajax !');
                $('#enviar_voto').prop( "disabled", false );
            }
        });
}



   </script><?php /**PATH C:\GIT\sitemoderno\Modules/Home\Resources/views/index.blade.php ENDPATH**/ ?>