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();
|
||||
|
||||
$this->totalMembersCount = Customer::whereNotNull('user_id')->count();
|
||||
$this->totalMembersCount = Customer::count();
|
||||
|
||||
$this->latestMembers = Customer::whereNotNull('user_id')
|
||||
->inRandomOrder()
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
<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">
|
||||
|
||||
<div class="flex flex-col justify-center flex-1 space-y-6 lg:pt-48">
|
||||
|
||||
@if ($totalMembersCount > 0)
|
||||
<header class="flex flex-wrap items-center gap-4">
|
||||
<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 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>
|
||||
</header>
|
||||
@endif
|
||||
@ -43,7 +41,5 @@ class="flex items-center justify-center w-12 h-12 border border-home-primary rou
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
@include('livewire.home.partials.jumbotron.testimonial')
|
||||
</section>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user