Files
thecrimesynticate/resources/views/game/partials/stats-bar.blade.php
T

33 lines
1.4 KiB
PHP

@php $character = auth()->user()->character; @endphp
<div class="flex items-center space-x-3 text-sm">
{{-- HP --}}
<div class="flex items-center space-x-1 bg-syndicate-800 border border-syndicate-700 rounded px-2 py-1">
<span class="text-red-400">❤</span>
<span class="text-gray-300">{{ $character->health }}<span class="text-gray-600">/{{ $character->max_health }}</span></span>
</div>
{{-- Energy --}}
<div class="flex items-center space-x-1 bg-syndicate-800 border border-syndicate-700 rounded px-2 py-1">
<span class="text-yellow-400">⚡</span>
<span class="text-gray-300">{{ $character->energy }}<span class="text-gray-600">/{{ $character->max_energy }}</span></span>
</div>
{{-- Cash --}}
<div class="flex items-center space-x-1 bg-syndicate-800 border border-syndicate-700 rounded px-2 py-1">
<span class="text-gold-400">$</span>
<span class="text-gray-300">{{ number_format($character->money) }}</span>
</div>
{{-- Level --}}
<div class="bg-syndicate-700 text-gray-300 rounded px-2 py-1 text-xs font-medium">
Lv.{{ $character->level }}
</div>
{{-- Non-active status badge --}}
@if($character->status !== \App\Enums\CharacterStatus::ACTIVE)
<span class="px-2 py-1 text-xs rounded {{ $character->status->color() }}">
{{ $character->status->label() }}
</span>
@endif
</div>