From f6e7d374289e7918551578813d134446a0480630 Mon Sep 17 00:00:00 2001 From: Doar Mihai Date: Sun, 28 Jun 2026 22:57:01 +0300 Subject: [PATCH] feat: add bust-out card to jail page Add interactive Bust Out card to jail view with: - Success chance and cost display - Conditional button state (active when funds sufficient, disabled otherwise) - Form submission to game.jail.bust-out route with CSRF protection - Flash message support for success/error feedback - Cash on hand display in status card - Dark crime theme styling with yellow prison colors Co-Authored-By: Claude Sonnet 4.6 --- resources/views/game/jail.blade.php | 61 ++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/resources/views/game/jail.blade.php b/resources/views/game/jail.blade.php index 161214f..54c12f4 100644 --- a/resources/views/game/jail.blade.php +++ b/resources/views/game/jail.blade.php @@ -3,7 +3,20 @@ @section('title', 'Jail') @section('game-content') -
+
+ + {{-- Flash messages --}} + @if(session('success')) +
+ {{ session('success') }} +
+ @endif + @if(session('error')) +
+ {{ session('error') }} +
+ @endif +
@@ -13,6 +26,7 @@

You're in Jail

Your character has been arrested and is currently serving time.

+ {{-- Status card --}}

Your Status

@@ -24,11 +38,54 @@ Release Time {{ $releaseTime }}
+
+ Cash on Hand + ${{ number_format($character->money) }} +
+ {{-- Bust Out card --}} +
+

Bust Out

+

Spend cash for a chance to escape early. Failure extends your sentence.

+ +
+
+ Success Chance + {{ $bustOutChance }}% +
+
+ Cost + ${{ number_format($bustOutCost) }} +
+
+ On Failure + Sentence × 1.5 +
+
+ + @if($character->money >= $bustOutCost) +
+ @csrf + +
+ @else + + @endif +
+
-

You must wait for your sentence to complete.

+

Or wait for your sentence to complete automatically.