@extends('layouts.game') @section('title', 'Crimes') @section('game-content')
{{-- Header card --}}

Available Crimes

Energy: {{ $character->energy }}/{{ $character->max_energy }}
@if($availableCrimes->isEmpty())

No crimes available. Try leveling up or restoring your energy.

@else
@foreach($availableCrimes as $crime) @php $onCooldown = $crimeService->isOnCooldown($character, $crime); $cooldownRemaining = $onCooldown ? $crimeService->getCooldownRemaining($character, $crime) : 0; $successRate = $crime->calculateSuccessRate($character); @endphp

{{ $crime->name }}

{{ $crime->difficulty_label }} Difficulty

{{ number_format($successRate * 100, 1) }}% Success

{{ Str::limit($crime->description, 100) }}

⚡ {{ $crime->energy_cost }} Energy
💰 ${{ $crime->reward_min }}-{{ $crime->reward_max }}
📈 {{ $crime->experience }} EXP
⏱ {{ $crime->cooldown }}s Cooldown
@if($onCooldown) @else
@csrf
@endif @if($crime->requires_level)

Requires Level {{ $crime->requires_level }}+

@endif
@endforeach
@endif
{{-- Recent Attempts --}}

Recent Attempts

@if($recentAttempts->isEmpty())

No recent crime attempts.

@else
@foreach($recentAttempts as $attempt)
@if($attempt->success) ✅ @else ❌ @endif

{{ $attempt->crime->name }}

{{ $attempt->attempted_at->diffForHumans() }}

@if($attempt->success)

+${{ number_format($attempt->reward) }}

+{{ $attempt->experience_gained }} EXP

@else

Failed

@endif
@endforeach
@endif
@endsection