36 lines
1.7 KiB
PHP
36 lines
1.7 KiB
PHP
<flux:main>
|
|
<flux:heading size="xl" level="1">{{ $pageTitle }}</flux:heading>
|
|
|
|
<div class="mt-6">
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
|
|
@foreach ($stats as $stat)
|
|
<div class="rounded-lg px-6 py-4 bg-zinc-200 dark:bg-zinc-700">
|
|
<div class="flex items-center justify-between">
|
|
<flux:heading size="lg">{{ $stat['title'] }}</flux:heading>
|
|
</div>
|
|
<flux:heading class="text-4xl! font-bold py-3 ">{{ $stat['value'] }}</flux:heading>
|
|
<flux:text size="lg">{{ $stat['description'] }}</flux:text>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="bg-zinc-200 dark:bg-zinc-700 rounded-xl p-6 shadow-md mb-8">
|
|
<h2 class="text-xl font-semibold mb-4">Proses ke Tier {{ $nextTierName }}</h2>
|
|
<div class="relative">
|
|
<div class="flex justify-between mb-2 text-sm text-gray-600">
|
|
<flux:text>Sekarang: {{ $currentSpending }}</flux:text>
|
|
<flux:text>Target: {{ $nextTierSpending }}</flux:text>
|
|
</div>
|
|
<div class="h-4 bg-white rounded-full overflow-hidden">
|
|
<div class="h-full bg-gradient-to-r from-emerald-500 to-emerald-600 rounded-full transition-all duration-500"
|
|
style="width: {{ $progress }}%"></div>
|
|
</div>
|
|
<flux:heading class="mt-2">{{ $progress }} %</flux:heading>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</flux:main>
|
|
@assets
|
|
<script src="https://unpkg.com/@lottiefiles/dotlottie-wc@0.8.5/dist/dotlottie-wc.js" type="module"></script>
|
|
@endassets
|