details.blade.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @extends('frontend.layouts.app')
  2. @section('meta_title'){{ $blog->meta_title }}@stop
  3. @section('meta_description'){{ $blog->meta_description }}@stop
  4. @section('meta_keywords'){{ $blog->meta_keywords }}@stop
  5. @section('meta')
  6. <!-- Schema.org markup for Google+ -->
  7. <meta itemprop="name" content="{{ $blog->meta_title }}">
  8. <meta itemprop="description" content="{{ $blog->meta_description }}">
  9. <meta itemprop="image" content="{{ uploaded_asset($blog->meta_img) }}">
  10. <!-- Twitter Card data -->
  11. <meta name="twitter:card" content="summary">
  12. <meta name="twitter:site" content="@publisher_handle">
  13. <meta name="twitter:title" content="{{ $blog->meta_title }}">
  14. <meta name="twitter:description" content="{{ $blog->meta_description }}">
  15. <meta name="twitter:creator" content="@author_handle">
  16. <meta name="twitter:image" content="{{ uploaded_asset($blog->meta_img) }}">
  17. <!-- Open Graph data -->
  18. <meta property="og:title" content="{{ $blog->meta_title }}" />
  19. <meta property="og:type" content="website" />
  20. <meta property="og:url" content="{{ route('blog.details', $blog->slug) }}" />
  21. <meta property="og:image" content="{{ uploaded_asset($blog->meta_img) }}" />
  22. <meta property="og:description" content="{{ $blog->meta_description }}" />
  23. <meta property="og:site_name" content="{{ env('APP_NAME') }}" />
  24. @endsection
  25. @section('content')
  26. <section class="py-4">
  27. <div class="container">
  28. <div class="mb-4">
  29. <img
  30. src="{{ static_asset('assets/img/placeholder-rect.jpg') }}"
  31. data-src="{{ uploaded_asset($blog->banner) }}"
  32. alt="{{ $blog->title }}"
  33. class="img-fluid lazyload w-100"
  34. >
  35. </div>
  36. <div class="row">
  37. <div class="col-xl-8 mx-auto">
  38. <div class="bg-white rounded shadow-sm p-4">
  39. <div class="border-bottom">
  40. <h1 class="h4">
  41. {{ $blog->title }}
  42. </h1>
  43. @if($blog->category != null)
  44. <div class="mb-2 opacity-50">
  45. <i>{{ $blog->category->category_name }}</i>
  46. </div>
  47. @endif
  48. </div>
  49. <div class="mb-4 overflow-hidden">
  50. {!! $blog->description !!}
  51. </div>
  52. @if (get_setting('facebook_comment') == 1)
  53. <div>
  54. <div class="fb-comments" data-href="{{ route("blog",$blog->slug) }}" data-width="" data-numposts="5"></div>
  55. </div>
  56. @endif
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </section>
  62. @endsection
  63. @section('script')
  64. @if (get_setting('facebook_comment') == 1)
  65. <div id="fb-root"></div>
  66. <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v9.0&appId={{ env('FACEBOOK_APP_ID') }}&autoLogAppEvents=1" nonce="ji6tXwgZ"></script>
  67. @endif
  68. @endsection