feat: Calculate total customer count from all customers and update jumbotron display text.
This commit is contained in:
parent
26db5d34dc
commit
de6b1aced4
@ -62,7 +62,7 @@ public function mount()
|
|||||||
])
|
])
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
$this->totalMembersCount = Customer::whereNotNull('user_id')->count();
|
$this->totalMembersCount = Customer::count();
|
||||||
|
|
||||||
$this->latestMembers = Customer::whereNotNull('user_id')
|
$this->latestMembers = Customer::whereNotNull('user_id')
|
||||||
->inRandomOrder()
|
->inRandomOrder()
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
<section
|
<section
|
||||||
class="relative w-full lg:w-[35%] pt-24 lg:pt-0 py-0 px-6 lg:px-10 lg:pb-8 flex flex-col lg:min-h-screen lg:justify-between space-y-6 lg:space-y-0 z-20 bg-white">
|
class="relative w-full lg:w-[35%] pt-24 lg:pt-0 py-0 px-6 lg:px-10 lg:pb-8 flex flex-col lg:min-h-screen lg:justify-between space-y-6 lg:space-y-0 z-20 bg-white">
|
||||||
|
|
||||||
<div class="flex flex-col justify-center flex-1 space-y-6 lg:pt-48">
|
<div class="flex flex-col justify-center flex-1 space-y-6 lg:pt-48">
|
||||||
|
|
||||||
@if ($totalMembersCount > 0)
|
@if ($totalMembersCount > 0)
|
||||||
<header class="flex flex-wrap items-center gap-4">
|
<header class="flex flex-wrap items-center gap-4">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
@ -16,7 +14,7 @@ class="border-2 border-home-background w-8 h-8 lg:w-10 lg:h-10 rounded-full over
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border border-home-primary/30 py-1 px-3 rounded-full text-sm lg:text-lg text-home-primary">
|
<div class="border border-home-primary/30 py-1 px-3 rounded-full text-sm lg:text-lg text-home-primary">
|
||||||
Plus <span class="text-home-primary font-bold">{{ $totalMembersCount }}</span> Trusted users!
|
<span class="text-home-primary font-bold">{{ $totalMembersCount }}</span>+ Customer Mempercayai Kami
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@endif
|
@endif
|
||||||
@ -43,7 +41,5 @@ class="flex items-center justify-center w-12 h-12 border border-home-primary rou
|
|||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@include('livewire.home.partials.jumbotron.testimonial')
|
@include('livewire.home.partials.jumbotron.testimonial')
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user