refactor: Replace not-found Lottie animation with boxing-cat across various views.
This commit is contained in:
parent
33d11cedea
commit
3371306c0a
@ -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,
|
||||
|
||||
@ -43,7 +43,7 @@ class="px-2 py-1 inline-flex text-xs font-semibold rounded-full
|
||||
</p>
|
||||
</flux:card>
|
||||
@empty
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
|
||||
@ -132,7 +132,7 @@ class="w-10 h-10 rounded-full bg-home-foreground/5 flex items-center justify-cen
|
||||
</div>
|
||||
</article>
|
||||
@empty
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ class="px-6 pb-6 pt-2 bg-home-primary/5 border-t border-home-primary/10 text-hom
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endif
|
||||
|
||||
<div
|
||||
|
||||
@ -209,7 +209,7 @@ class="w-10 h-10 rounded-lg bg-home-foreground text-white flex items-center just
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endif
|
||||
|
||||
<div class="mt-16">
|
||||
|
||||
@ -192,7 +192,7 @@ class="flex-1 border border-home-foreground/20 text-home-foreground font-bold py
|
||||
{{ $vouchers->links('vendor.livewire.custom-pagination') }}
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endif
|
||||
</main>
|
||||
|
||||
|
||||
@ -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())
|
||||
<flux:card class="flex flex-col items-center justify-center py-12">
|
||||
@include('components.animations.lottie.not-found', [
|
||||
@include('components.animations.lottie.boxing-cat', [
|
||||
'message' => 'Belum ada yang menggunakan kode referral Anda. Ayo ajak teman-temanmu!',
|
||||
])
|
||||
</flux:card>
|
||||
|
||||
@ -88,7 +88,7 @@ class="text-[9px] font-bold text-white/40 border border-white/10 px-2 py-0.5 rou
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found', [
|
||||
@include('components.animations.lottie.boxing-cat', [
|
||||
'message' => 'Belum ada hadiah yang tersedia untuk Anda saat ini.',
|
||||
])
|
||||
@endif
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
@ -163,7 +163,7 @@ class="w-12 h-12 rounded-full -ml-3 first:ml-0">
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
@ -219,7 +219,7 @@ class="text-gray-500">({{ formatRelativeTime($employee->resign_date) }})</span>
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@include('components.animations.lottie.not-found')
|
||||
@include('components.animations.lottie.boxing-cat')
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user