<div>
    @if($client->claim()->exists())
        @php($claim = $client->claim)
        <livewire:claim.care-setting-manager :claim="$claim"/>
        <livewire:claim.application.beneficiary :claim="$claim"/>

        <livewire:claim.application.terminal-illness :claim="$claim"/>
        <livewire:claim.application.bank-detail :claim="$claim"/>
        <livewire:claim.application.impact-factors :claim="$claim"/>
    @else
        <div class="card">
            <div class="card-body">
                <h4 class="fw-bold mb-3 d-flex justify-content-between align-items-center">
                    Claim Info
                    @if(!$client->claim()->exists())
                        <a href="{{ route('claims.create', $client) }}" class="btn btn-sm btn-primary">
                            <i class="mdi mdi-plus"></i>
                        </a>
                    @endif
                </h4>
                <div class="text-center p-5 text-muted">
                    <i class="mdi mdi-account-details" style="font-size: 48px;"></i>
                    <p class="mt-3 fw-bold">No claim found. Add it with the button above.</p>
                </div>
            </div>
        </div>
    @endif
</div>
