seller_shop_without_verification.blade.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @extends('frontend.layouts.app')
  2. @section('meta_title'){{ $shop->meta_title }}@stop
  3. @section('meta_description'){{ $shop->meta_description }}@stop
  4. @section('meta')
  5. <!-- Schema.org markup for Google+ -->
  6. <meta itemprop="name" content="{{ $shop->meta_title }}">
  7. <meta itemprop="description" content="{{ $shop->meta_description }}">
  8. <meta itemprop="image" content="{{ uploaded_asset($shop->logo) }}">
  9. <!-- Twitter Card data -->
  10. <meta name="twitter:card" content="product">
  11. <meta name="twitter:site" content="@publisher_handle">
  12. <meta name="twitter:title" content="{{ $shop->meta_title }}">
  13. <meta name="twitter:description" content="{{ $shop->meta_description }}">
  14. <meta name="twitter:creator" content="@author_handle">
  15. <meta name="twitter:image" content="{{ uploaded_asset($shop->meta_img) }}">
  16. <!-- Open Graph data -->
  17. <meta property="og:title" content="{{ $shop->meta_title }}" />
  18. <meta property="og:type" content="Shop" />
  19. <meta property="og:url" content="{{ route('shop.visit', $shop->slug) }}" />
  20. <meta property="og:image" content="{{ uploaded_asset($shop->logo) }}" />
  21. <meta property="og:description" content="{{ $shop->meta_description }}" />
  22. <meta property="og:site_name" content="{{ $shop->name }}" />
  23. @endsection
  24. @section('content')
  25. @php
  26. $total = 0;
  27. $rating = 0;
  28. foreach ($shop->user->products as $key => $seller_product) {
  29. $total += $seller_product->reviews->count();
  30. $rating += $seller_product->reviews->sum('rating');
  31. }
  32. @endphp
  33. <section class="py-5 mb-4 bg-white">
  34. <div class="container">
  35. <div class="row">
  36. <div class="col-md-6 mx-auto">
  37. <div class="d-flex justify-content-center">
  38. <img
  39. height="70"
  40. class="lazyload"
  41. src="{{ static_asset('assets/img/placeholder.jpg') }}"
  42. data-src="@if ($shop->logo !== null) {{ uploaded_asset($shop->logo) }} @else {{ static_asset('assets/img/placeholder.jpg') }} @endif"
  43. alt="{{ $shop->name }}"
  44. >
  45. <div class="pl-4">
  46. <h1 class="fw-600 h4 mb-0">{{ $shop->name }}
  47. @if ($shop->verification_status == 1)
  48. <span class="ml-2"><i class="fa fa-check-circle" style="color:green"></i></span>
  49. @else
  50. <span class="ml-2"><i class="fa fa-times-circle" style="color:red"></i></span>
  51. @endif
  52. </h1>
  53. <div class="rating rating-sm mb-1">
  54. @if ($total > 0)
  55. {{ renderStarRating($rating/$total) }}
  56. @else
  57. {{ renderStarRating(0) }}
  58. @endif
  59. </div>
  60. <div class="location opacity-60">{{ $shop->address }}</div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </section>
  67. <section class="mb-4">
  68. <div class="container">
  69. <div class="row">
  70. <div class="col-xxl-5 col-xl-6 col-md-8 mx-auto">
  71. <div class="bg-white rounded shadow-sm p-4 text-center">
  72. <h3 class="fw-600 h4">
  73. {{$shop->user->name}} {{ translate('has not been verified yet.')}}
  74. </h3>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </section>
  80. @endsection