custom_page.blade.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @extends('frontend.layouts.app')
  2. @section('meta_title'){{ $page->meta_title }}@stop
  3. @section('meta_description'){{ $page->meta_description }}@stop
  4. @section('meta_keywords'){{ $page->tags }}@stop
  5. @section('meta')
  6. <!-- Schema.org markup for Google+ -->
  7. <meta itemprop="name" content="{{ $page->meta_title }}">
  8. <meta itemprop="description" content="{{ $page->meta_description }}">
  9. <meta itemprop="image" content="{{ uploaded_asset($page->meta_img) }}">
  10. <!-- Twitter Card data -->
  11. <meta name="twitter:card" content="website">
  12. <meta name="twitter:site" content="@publisher_handle">
  13. <meta name="twitter:title" content="{{ $page->meta_title }}">
  14. <meta name="twitter:description" content="{{ $page->meta_description }}">
  15. <meta name="twitter:creator" content="@author_handle">
  16. <meta name="twitter:image" content="{{ uploaded_asset($page->meta_img) }}">
  17. <!-- Open Graph data -->
  18. <meta property="og:title" content="{{ $page->meta_title }}" />
  19. <meta property="og:type" content="website" />
  20. <meta property="og:url" content="{{ URL($page->slug) }}" />
  21. <meta property="og:image" content="{{ uploaded_asset($page->meta_img) }}" />
  22. <meta property="og:description" content="{{ $page->meta_description }}" />
  23. <meta property="og:site_name" content="{{ env('APP_NAME') }}" />
  24. @endsection
  25. @section('content')
  26. <section class="pt-4 mb-4">
  27. <div class="container text-center">
  28. <div class="row">
  29. <div class="col-lg-6 text-center text-lg-left">
  30. <h1 class="fw-600 h4">{{ $page->getTranslation('title') }}</h1>
  31. </div>
  32. <div class="col-lg-6">
  33. <ul class="breadcrumb bg-transparent p-0 justify-content-center justify-content-lg-end">
  34. <li class="breadcrumb-item opacity-50">
  35. <a class="text-reset" href="{{ route('home') }}">{{ translate('Home')}}</a>
  36. </li>
  37. <li class="text-dark fw-600 breadcrumb-item">
  38. <a class="text-reset" href="{{ route('custom-pages.show_custom_page', $page->slug ) }}">"{{ $page->title }}"</a>
  39. </li>
  40. </ul>
  41. </div>
  42. </div>
  43. </div>
  44. </section>
  45. <section class="mb-4">
  46. <div class="container">
  47. <div class="p-4 bg-white rounded shadow-sm overflow-hidden mw-100 text-left">
  48. @php echo $page->getTranslation('content'); @endphp
  49. </div>
  50. </div>
  51. </section>
  52. @endsection