From 350f000489fa0670644564ffeac50e13bf982d9c Mon Sep 17 00:00:00 2001 From: Tome Perica Date: Wed, 13 Dec 2023 14:18:15 +0100 Subject: [PATCH] Update lead-card.blade.php --- .../views/components/lead-card.blade.php | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/resources/views/components/lead-card.blade.php b/src/resources/views/components/lead-card.blade.php index 39aba3c..7380102 100644 --- a/src/resources/views/components/lead-card.blade.php +++ b/src/resources/views/components/lead-card.blade.php @@ -4,7 +4,8 @@ @@ -24,15 +25,17 @@ {{ $lead->contact->phone }}
- -
    - @foreach($lead->contact->tags as $tag) -
  • {{ $tag->name }}
  • - @endforeach - @foreach($lead->tags as $tag) -
  • {{ $tag->name }}
  • - @endforeach -
+ @if($lead->contact->tags->count() > 0 || $lead->tags->count() > 0) + +
    + @foreach($lead->contact->tags as $tag) +
  • {{ $tag->name }}
  • + @endforeach + @foreach($lead->tags as $tag) +
  • {{ $tag->name }}
  • + @endforeach +
+ @endif
@if($lead->nextCallActivity)
@@ -55,7 +58,7 @@

- {{ __('User') }}: {{ + {{ __('User') }}: {{ $lead->contact->fullname }}