From 2fd52c1761b0ff76c4e619b1bd9f0b4782578230 Mon Sep 17 00:00:00 2001 From: pushuo Date: Wed, 17 May 2023 06:20:58 +0000 Subject: [PATCH] !102 Add article single file * wip --- themes/default/pages/single.blade.php | 100 ++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 4 deletions(-) diff --git a/themes/default/pages/single.blade.php b/themes/default/pages/single.blade.php index 39ca7145..c7931983 100644 --- a/themes/default/pages/single.blade.php +++ b/themes/default/pages/single.blade.php @@ -4,14 +4,106 @@ @section('keywords', $page->description->meta_keywords) @section('description', $page->description->meta_description) +@push('header') + + + +@endpush + @section('content') -
-
-
- {!! $page_format['content'] !!} +
+
+
+
+

{{ $page->description->title }}

+
+ {{ __('page_category.author') }}: {{ $page->author }} + {{ __('page_category.created_at') }}: {{ $page->created_at }} + {{ __('page_category.views') }}: {{ $page->views }} +
+ {!! $page_format['content'] !!} + + + @if ($products) +
+
+
{{ __('admin/product.product_relations') }}
+
+
+
+ @foreach ($products as $item) +
+ @include('shared.product', ['product' => $item]) +
+ @endforeach +
+
+
+
+
+
+
+
+ @endif +
+
+ + @if ($page->category) +
+
+
+
{{ __('product.category') }}
+
+
+ +
+
+
+ @endif
@endsection + +@push('add-scripts') + +@endpush \ No newline at end of file