@extends('blog::layouts.master') @section('pageTitle', $post->title) @section('content') %section .container .row .col-md-9.mb-xs-24.prblog .post-snippet.mb32.post-content .post-title %a{:href => "#"} %h2.inline-block.post-title = $post->title .addthis_inline_share_toolbox_le2j.mb8 %ul.post-meta %li %i.ti-user %span Escrito por %a{:href => "#"} = $post->user->name %li %i.ti-calendar %span = $post->publication_date %hr/ = $post->body / end of post snippet .addthis_inline_share_toolbox_le2j.mb8 %hr/ .comments -if ($comments->count() > 0) %h4.uppercase Comentarios %ul.comments-list @foreach($comments as $comment) %li .avatar %img{:alt => "Avatar", :src => "{{ asset('/assets/img/avatar1.png')}}"}/ .comment %h5.inline-block.mb8.uppercase = $comment->name %span = $comment->created_at->format('d/m/Y') %p = $comment->comment @endforeach - else .comment %p.lead No hay comentarios aún %hr/ %h4.uppercase Dejar un comentario {!! Form::open(['route'=> ['add.comment', $post->slug],'method'=>'POST']) !!} .row .col-lg-12.col-md-12 .single-input %label{:for => "commenter-name"} Nombre {!! Form::text('name', null, ["required"=>"required"]) !!} .col-lg-12.col-md-12 .single-input %label{:for => "commenter-email"} E-mail {!! Form::email('email', null, ["required"=>"required"]) !!} .col-lg-12.col-md-12 .single-input %label{:for => "commenter-message"} Comentario {!! Form::textarea('comment', null, ["required"=>"required", "cols"=>"30", "rows"=>"5"]) !!} .col-lg-12.col-md-12 .single-input %button.cr-btn{:type => "submit"} %span Comentar {!! Form::close() !!} / end of comments / end of nine col .col-md-3.hidden-sm .widget %h6.title Acerca de Golden Goal %hr/ %p Golden Goal es la mejor aplicación para organizar las retas con tus amigos. Utiliza Golden Goal App para crear tus partidos, invitar a tus amigos y mantener los encuentros organizados. / end of widget .widget %h6.title Categorías %hr/ %ul.link-list @foreach($categories as $category) %li %a{:href => "{{route('modulo.blog').'?category='.$category->slug}}"} = $category->name @endforeach / end of widget .widget %h6.title Artículos destacados %hr/ %ul.recent-posts @foreach ($otros as $otro) %li %a.widget-recentpost__thumb{:href => "{{route('show.blog', $otro->slug)}}"} - if ($otro->cover != null) %img{:alt => "blog thumbnail", :src => "{{asset('storage/'.$otro->cover)}}"}/ .widget-recentpost__content %span.date = $otro->publication_date %h6 %a{:href => "{{route('show.blog', $otro->slug)}}"} = $otro->title @endforeach / end of widget / end of widget / end of sidebar @endsection @section('scripts') %script{:src => "https://cdn.jsdelivr.net/jquery.jssocials/1.4.0/jssocials.min.js", :type => "text/javascript"} / Go to www.addthis.com/dashboard to customize your tools %script{:src => "//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5a139cd3addf2e26", :type => "text/javascript"} - if(Session::has('comment')) :javascript swal("Gracias por tu comentario", "Tu comentario está siendo moderado", "success") @endsection