diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index e2f3ff4..4e9eb37 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -12,7 +12,7 @@ use Spatie\Tags\Tag; class ClientController extends Controller { - public $paginate = 10; + public $paginate = 12; // public function welcome() diff --git a/resources/views/segments/posts_page/GridPostList/GridPostList.blade.php b/resources/views/segments/posts_page/GridPostList/GridPostList.blade.php new file mode 100644 index 0000000..2a7d21e --- /dev/null +++ b/resources/views/segments/posts_page/GridPostList/GridPostList.blade.php @@ -0,0 +1,66 @@ +
+
+
+ @foreach(\App\Models\Post::where('status',1)->where('is_pinned',1)->limit(2)->get() as $post) +
+
+
+ {{$post->mainGroup->name}} +
+ + {{$post->title}} + +
+

+ {{$post->title}} +

+ + {{$post->created_at->ldate('Y/m/d l')}} + +
+
+
+ @endforeach +
+
+
+ +
+
+ @foreach($posts as $post) +
+
+
+ {{$post->mainGroup->name}} +
+ {{$post->title}} +

+ {{$post->title}} +

+
+ + + {{$post->created_at->ldate('Y/m/d l')}} + + + + {{$post->view}} + +
+

+ {{$post->subtitle}} +
+

+ + {{__("Read more")}} + +
+
+ @endforeach +
+ {{$posts->links()}} +
+
+
+
diff --git a/resources/views/segments/posts_page/GridPostList/GridPostList.js b/resources/views/segments/posts_page/GridPostList/GridPostList.js new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/segments/posts_page/GridPostList/GridPostList.json b/resources/views/segments/posts_page/GridPostList/GridPostList.json new file mode 100644 index 0000000..f32cf82 --- /dev/null +++ b/resources/views/segments/posts_page/GridPostList/GridPostList.json @@ -0,0 +1,10 @@ +{ + "name": "GridPostList", + "version": "1.0", + "author": "xStack", + "email": "xshop@xstack.ir", + "license": "GPL-3.0-or-later", + "url": "https:\/\/xstack.ir", + "author_url": "https:\/\/4xmen.ir", + "packages": [] +} \ No newline at end of file diff --git a/resources/views/segments/posts_page/GridPostList/GridPostList.php b/resources/views/segments/posts_page/GridPostList/GridPostList.php new file mode 100644 index 0000000..13e2148 --- /dev/null +++ b/resources/views/segments/posts_page/GridPostList/GridPostList.php @@ -0,0 +1,21 @@ +