@extends('layouts.user') @section('title', 'AI Skin Checker | Smart Dermatology') @push('styles') @endpush @section('content')

AI Skin Analyzer

Upload a photo for instant dermatological insights.

@if (session('status'))
{{ session('status') }}
@endif
@auth
@csrf

Drag & Drop Image

or click to browse from your device

Skin Preview
@error('file')
{{ $message }}
@enderror
@else

Sign in to analyze and save history

Each image is linked to your account so you and the admin panel can review past results later.

Login to Continue
@endauth @if (session('analysis_result'))

Analysis Results

Predicted Condition:

{{ str_replace('_', ' ', session('analysis_result.disease')) }}

Confidence Score: {{ number_format(session('analysis_result.confidence') * 100, 2) }}%

AI Note:

This is an AI-assisted screening result. Please use it as guidance and consult a medical professional for diagnosis and treatment.

@endif
@auth

Recent Analysis History

Your latest saved predictions.

View Full History
@forelse ($analyses as $analysis) @empty @endforelse
Image Predicted Disease Confidence Date
Analyzed image {{ str_replace('_', ' ', $analysis->disease) }} {{ number_format($analysis->confidence * 100, 2) }}% {{ $analysis->created_at?->format('d M Y h:i A') }}
No analysis history yet.
@endauth
@endsection @push('scripts') @endpush