From 3326c73d1055f15ce1bded33cd2f964c6843563e Mon Sep 17 00:00:00 2001 From: Doar Mihai Date: Sun, 28 Jun 2026 03:04:41 +0300 Subject: [PATCH] feat: restyle crimes page with dark crime theme Replace crimes index page with dark syndicate theme styling using: - syndicate color tokens for backgrounds and borders - crime color tokens for action buttons - gold color tokens for reward displays - Improved visual hierarchy and spacing Co-Authored-By: Claude Sonnet 4.6 --- resources/views/game/crimes/index.blade.php | 118 +++++++++----------- 1 file changed, 53 insertions(+), 65 deletions(-) diff --git a/resources/views/game/crimes/index.blade.php b/resources/views/game/crimes/index.blade.php index 19745b9..89e8bdc 100644 --- a/resources/views/game/crimes/index.blade.php +++ b/resources/views/game/crimes/index.blade.php @@ -3,25 +3,20 @@ @section('title', 'Crimes') @section('game-content') -
-
-
-
-

Available Crimes

-
- Energy: {{ $character->energy }}/{{ $character->max_energy }} -
+
+ + {{-- Header card --}} +
+
+

Available Crimes

+
+ Energy: {{ $character->energy }}/{{ $character->max_energy }}
-

- Commit crimes to earn money and experience. Each crime costs energy and has a chance of success or failure. -

@if($availableCrimes->isEmpty()) -

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

+

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

@else
@foreach($availableCrimes as $crime) @@ -30,103 +25,95 @@ $cooldownRemaining = $onCooldown ? $crimeService->getCooldownRemaining($character, $crime) : 0; $successRate = $crime->calculateSuccessRate($character); @endphp - -
+ +
-

{{ $crime->name }}

-

- {{ $crime->difficulty_label }} Difficulty -

+

{{ $crime->name }}

+

{{ $crime->difficulty_label }} Difficulty

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

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

- -
-
- ⚡ + +

{{ 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 }}+ -

+

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

@endif
@endforeach
@endif
+
-
-

Recent Attempts

- + {{-- Recent Attempts --}} +
+
+

Recent Attempts

+
+
@if($recentAttempts->isEmpty()) -

- No recent crime attempts. -

+

No recent crime attempts.

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

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

-

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

+

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

+

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

@if($attempt->success) -

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

-

+{{ $attempt->experience_gained }} EXP

+

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

+

+{{ $attempt->experience_gained }} EXP

@else -

Failed

+

Failed

@endif
@@ -135,5 +122,6 @@ @endif
+
@endsection