From 3371306c0ae51280e09ee3d095b81f9bef2894f6 Mon Sep 17 00:00:00 2001
From: Yoga Pangestu
Date: Mon, 5 Jan 2026 20:14:48 +0700
Subject: [PATCH] refactor: Replace `not-found` Lottie animation with
`boxing-cat` across various views.
---
app/Livewire/Member/Referral.php | 6 ++----
.../lottie/{not-found.blade.php => boxing-cat.blade.php} | 0
resources/views/components/sections/ui/audit.blade.php | 2 +-
resources/views/livewire/home/article/index.blade.php | 2 +-
resources/views/livewire/home/faqs.blade.php | 2 +-
resources/views/livewire/home/product/index.blade.php | 2 +-
resources/views/livewire/home/vouchers.blade.php | 2 +-
resources/views/livewire/member/referral.blade.php | 2 +-
resources/views/livewire/member/rewards.blade.php | 2 +-
resources/views/livewire/studio/master/formulas.blade.php | 2 +-
.../views/livewire/studio/master/outlet/index.blade.php | 2 +-
resources/views/livewire/studio/master/user/index.blade.php | 2 +-
12 files changed, 12 insertions(+), 14 deletions(-)
rename resources/views/components/animations/lottie/{not-found.blade.php => boxing-cat.blade.php} (100%)
diff --git a/app/Livewire/Member/Referral.php b/app/Livewire/Member/Referral.php
index c670293..b1910c8 100644
--- a/app/Livewire/Member/Referral.php
+++ b/app/Livewire/Member/Referral.php
@@ -3,9 +3,7 @@
namespace App\Livewire\Member;
use App\Models\ReferralUsage;
-use App\Models\User;
use Illuminate\Contracts\View\View;
-use Illuminate\Support\Facades\Auth;
use Livewire\Attributes\Layout;
use Livewire\Attributes\Title;
use Livewire\Component;
@@ -42,8 +40,8 @@ public function render(): View
];
});
- $message = 'Halo! Ayo bergabung di Yadi Parfum dan dapatkan keuntungan eksklusif. Gunakan kode referral saya: ' . ($referralCode?->code ?? '') . ' saat mendaftar! ' . url('/auth/register');
- $whatsappUrl = 'https://wa.me/?text=' . urlencode($message);
+ $message = 'Halo! Ayo bergabung di Yadi Parfum dan dapatkan keuntungan eksklusif. Gunakan kode referral saya: '.($referralCode?->code ?? '').' saat mendaftar! '.url('/auth/register');
+ $whatsappUrl = 'https://wa.me/?text='.urlencode($message);
return view('livewire.member.referral', [
'referralCode' => $referralCode,
diff --git a/resources/views/components/animations/lottie/not-found.blade.php b/resources/views/components/animations/lottie/boxing-cat.blade.php
similarity index 100%
rename from resources/views/components/animations/lottie/not-found.blade.php
rename to resources/views/components/animations/lottie/boxing-cat.blade.php
diff --git a/resources/views/components/sections/ui/audit.blade.php b/resources/views/components/sections/ui/audit.blade.php
index d98356a..e3a61cc 100644
--- a/resources/views/components/sections/ui/audit.blade.php
+++ b/resources/views/components/sections/ui/audit.blade.php
@@ -43,7 +43,7 @@ class="px-2 py-1 inline-flex text-xs font-semibold rounded-full
@empty
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endforelse
diff --git a/resources/views/livewire/home/article/index.blade.php b/resources/views/livewire/home/article/index.blade.php
index fccac4a..1126858 100644
--- a/resources/views/livewire/home/article/index.blade.php
+++ b/resources/views/livewire/home/article/index.blade.php
@@ -132,7 +132,7 @@ class="w-10 h-10 rounded-full bg-home-foreground/5 flex items-center justify-cen
@empty
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endforelse
diff --git a/resources/views/livewire/home/faqs.blade.php b/resources/views/livewire/home/faqs.blade.php
index a0b26ee..b3a2b0d 100644
--- a/resources/views/livewire/home/faqs.blade.php
+++ b/resources/views/livewire/home/faqs.blade.php
@@ -72,7 +72,7 @@ class="px-6 pb-6 pt-2 bg-home-primary/5 border-t border-home-primary/10 text-hom
@endforeach
@else
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endif
diff --git a/resources/views/livewire/home/vouchers.blade.php b/resources/views/livewire/home/vouchers.blade.php
index 7f05997..23fe67a 100644
--- a/resources/views/livewire/home/vouchers.blade.php
+++ b/resources/views/livewire/home/vouchers.blade.php
@@ -192,7 +192,7 @@ class="flex-1 border border-home-foreground/20 text-home-foreground font-bold py
{{ $vouchers->links('vendor.livewire.custom-pagination') }}
@else
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endif
diff --git a/resources/views/livewire/member/referral.blade.php b/resources/views/livewire/member/referral.blade.php
index 4cc8ffd..a65fc13 100644
--- a/resources/views/livewire/member/referral.blade.php
+++ b/resources/views/livewire/member/referral.blade.php
@@ -31,7 +31,7 @@ class="px-4 py-2 bg-zinc-100 dark:bg-zinc-800 rounded-lg border border-zinc-200
@if ($usages->isEmpty())
- @include('components.animations.lottie.not-found', [
+ @include('components.animations.lottie.boxing-cat', [
'message' => 'Belum ada yang menggunakan kode referral Anda. Ayo ajak teman-temanmu!',
])
diff --git a/resources/views/livewire/member/rewards.blade.php b/resources/views/livewire/member/rewards.blade.php
index 87d58bd..b902410 100644
--- a/resources/views/livewire/member/rewards.blade.php
+++ b/resources/views/livewire/member/rewards.blade.php
@@ -88,7 +88,7 @@ class="text-[9px] font-bold text-white/40 border border-white/10 px-2 py-0.5 rou
@endforeach
@else
- @include('components.animations.lottie.not-found', [
+ @include('components.animations.lottie.boxing-cat', [
'message' => 'Belum ada hadiah yang tersedia untuk Anda saat ini.',
])
@endif
diff --git a/resources/views/livewire/studio/master/formulas.blade.php b/resources/views/livewire/studio/master/formulas.blade.php
index b85696b..a3d8e22 100644
--- a/resources/views/livewire/studio/master/formulas.blade.php
+++ b/resources/views/livewire/studio/master/formulas.blade.php
@@ -68,7 +68,7 @@
@endforeach
@else
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endif
diff --git a/resources/views/livewire/studio/master/outlet/index.blade.php b/resources/views/livewire/studio/master/outlet/index.blade.php
index 0922441..6c48119 100644
--- a/resources/views/livewire/studio/master/outlet/index.blade.php
+++ b/resources/views/livewire/studio/master/outlet/index.blade.php
@@ -163,7 +163,7 @@ class="w-12 h-12 rounded-full -ml-3 first:ml-0">
@endforeach
@else
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endif
diff --git a/resources/views/livewire/studio/master/user/index.blade.php b/resources/views/livewire/studio/master/user/index.blade.php
index 9c0fd95..d0b7cac 100644
--- a/resources/views/livewire/studio/master/user/index.blade.php
+++ b/resources/views/livewire/studio/master/user/index.blade.php
@@ -219,7 +219,7 @@ class="text-gray-500">({{ formatRelativeTime($employee->resign_date) }})
@endforeach
@else
- @include('components.animations.lottie.not-found')
+ @include('components.animations.lottie.boxing-cat')
@endif