@extends("layouts.app") @section("title", __("My Interests")) @section("header")

{{ __("My Interests") }}

@endsection @section("content")
@if(session("success"))
{{ session("success") }}
@endif @if(session("error"))
{{ session("error") }}
@endif

{{ __("Add Interest") }}

@csrf

{{ __("My Interests") }}

@if($interests->count() > 0)
@foreach($interests as $interest)
{{ $interest->interest }}
@csrf @method("DELETE")
@endforeach
@else

{{ __("You have not added any interests yet.") }}

@endif

{{ __("AI Suggestions") }}

{{ __("Based on your interests, the AI suggests the following subjects") }}

@csrf
@if(session("suggestions"))
@foreach(session("suggestions") as $suggestion)

{{ $suggestion["name"] ?? "" }}

{{ __("Suggestion") }}
@if(!empty($suggestion["description"]))

{{ $suggestion["description"] }}

@endif @if(!empty($suggestion["introduction"]))

{{ \Illuminate\Support\Str::limit($suggestion["introduction"], 100) }}

@endif
@csrf
@endforeach
@else

{{ __("Click 'Generate Suggestions' to receive AI-powered subject ideas based on your interests.") }}

@endif
@endsection