<div class="card shadow-sm border-0 mb-3">
    <div class="card-body">
        <h6 class="fw-bold mb-3">Case Status</h6>

        <div class="mb-3">
            @if($willsCase->is_open)
                <span class="badge bg-success fs-6 px-3 py-2">
                    <i class="mdi mdi-check-circle me-1"></i>Open
                </span>
            @else
                <span class="badge bg-secondary fs-6 px-3 py-2">
                    <i class="mdi mdi-close-circle me-1"></i>Closed
                </span>
            @endif
        </div>

        @if($willsCase->is_open)
            <button wire:click="close"
                    wire:confirm="Close this case?"
                    class="btn btn-sm btn-outline-secondary w-100">
                <i class="mdi mdi-close me-1"></i>Mark Closed
            </button>
        @else
            <button wire:click="open"
                    wire:confirm="Re-open this case?"
                    class="btn btn-sm btn-outline-success w-100">
                <i class="mdi mdi-refresh me-1"></i>Re-open Case
            </button>
        @endif
    </div>
</div>
