From 580735a7b43be1757b780cdbd82ca3ee022acefe Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Tue, 12 Jan 2021 23:14:38 +0100 Subject: [PATCH] Stuff --- app/Http/Controllers/PublicController.php | 2 +- .../themes/tenant/kuvia-blog/list.blade.php | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 resources/views/themes/tenant/kuvia-blog/list.blade.php diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index af33a1d..fed9234 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -28,7 +28,7 @@ class PublicController extends BaseController public function listGalleriesView($name) { $tenant = Tenant::query()->where("url", "=", $name)->firstOrFail(); $galleries = Gallery::query()->where("tenant", "=", $tenant->id)->get(); - return view("themes.tenant.kuvia-gallery.list", ["galleries" => $galleries, "tenant" => $tenant]); + return view("themes.tenant.kuvia-blog.list", ["galleries" => $galleries, "tenant" => $tenant]); } public function listGalleryImagesView($tenant, $gallery) { diff --git a/resources/views/themes/tenant/kuvia-blog/list.blade.php b/resources/views/themes/tenant/kuvia-blog/list.blade.php new file mode 100644 index 0000000..4a65be5 --- /dev/null +++ b/resources/views/themes/tenant/kuvia-blog/list.blade.php @@ -0,0 +1,36 @@ +@extends('layout/template') + +@section('content') +
+
+

Galleries

+ + @foreach($galleries as $gallery) +
+
+

{{ $gallery->name }}

+

publishd {{ $gallery->gallery_create_time }}

+

{{ $gallery->description }}

+ More +
+
+ +
+
+ + @endforeach + +
+
+ +@endsection + +@section('js') + + + +@endsection