From 3e76ceebf1cb9d2f97dea7292440207a9557b427 Mon Sep 17 00:00:00 2001 From: alex-chevski Date: Wed, 20 Dec 2023 16:44:46 +0300 Subject: [PATCH] added liked plan --- resources/css/app.css | 12 ++++ resources/views/livewire/plan/like.blade.php | 68 ++++++++++++++++++-- resources/views/plan/show.blade.php | 68 ++------------------ 3 files changed, 83 insertions(+), 65 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 0adfaac..a827885 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -9,3 +9,15 @@ .my-custom-tags .taggle_list { margin-top: -1.8em; } + + +/* Plan-show like */ +.announcement__footer-action-liked{ + background-color: #2f80ed; + color: #fff; +} + + +.active-icon-heart{ + color: #2f80ed; +} diff --git a/resources/views/livewire/plan/like.blade.php b/resources/views/livewire/plan/like.blade.php index 2a3810f..05faddb 100644 --- a/resources/views/livewire/plan/like.blade.php +++ b/resources/views/livewire/plan/like.blade.php @@ -1,4 +1,64 @@ - +
+
+
+
+
+ Время прохождения плана: +
+
+ {{ $plan->duration }} дней +
+
+
+
+ Проходят план: +
+
+ 2 пользователя +
+
+
+ + +
+ +

+ {{ $plan->details }} +

+ + +
+ + + @if ($plan->type['slim'] === true) + + + + @endif + + @if ($plan->type['fit'] === true) + + + + @endif + + @if ($plan->type['wellness'] === true) + + + + @endif + + @if ($plan->type['behavior'] === true) + + + + @endif +
+ +
diff --git a/resources/views/plan/show.blade.php b/resources/views/plan/show.blade.php index 6812b79..e3f8519 100644 --- a/resources/views/plan/show.blade.php +++ b/resources/views/plan/show.blade.php @@ -60,67 +60,13 @@ -
-
-
-
- Время прохождения плана: -
-
- {{ $plan->duration }} дней -
-
-
-
- Проходят план: -
-
- 2 пользователя -
-
-
- -
- -

- {{ $plan->details }} -

- - -
- - - @if ($plan->type['slim'] === true) - - - - @endif - - @if ($plan->type['fit'] === true) - - - - @endif - - @if ($plan->type['wellness'] === true) - - - - @endif - - @if ($plan->type['behavior'] === true) - - - - @endif -
- - + {{-- --}} @livewire('plan.accordion', ['plan' => $plan])