AI Drug Interaction Checker

Select multiple drugs to check for potential interactions using AI analysis

@if($availableDrugs->count() > 0)

Available Drugs

@foreach($availableDrugs as $drug)
{{ ucwords(strtolower($drug->name)) }}

{{ ucwords(strtolower($drug->generic_name)) }}

{{ ucwords(strtolower($drug->category ?? '')) }}

@endforeach
@endif @if(count($selectedDrugs) > 0)

Selected Drugs ({{ count($selectedDrugs) }})

@foreach($this->selectedDrugsModels as $drug)
{{ ucwords(strtolower($drug->name)) }}

{{ ucwords(strtolower($drug->generic_name)) }}

@endforeach
@endif @if($interactionResults)

AI Analysis Results

@if($interactionResults['ai_generated']) AI Generated @else Fallback Analysis @endif
Risk Level: {{ ucfirst($interactionResults['risk_level']) }}
@if(!empty($interactionResults['interactions']))
Identified Interactions:
    @foreach($interactionResults['interactions'] as $interaction)
  • @if(is_array($interaction)) {{ $interaction['drug'] ?? 'Unknown' }}: {{ $interaction['interaction'] ?? 'No details available' }} @else {{ $interaction }} @endif
  • @endforeach
@endif @if(!empty($interactionResults['clinical_significance']))
Clinical Significance:

{{ $interactionResults['clinical_significance'] }}

@endif @if(!empty($interactionResults['recommendations']))
Recommendations:

{{ $interactionResults['recommendations'] }}

@endif

Important Disclaimer

This AI analysis is for informational purposes only and should not replace professional medical advice. Always consult with a qualified healthcare provider or pharmacist before making any medical decisions.

@endif