@extends('frontend.main_master') @section('body-class', 'profile-page panel-scrollable ai-comments-page') @section('title', t('my-comments') . ' - ' . t('site-title')) @php $typeMeta = [ 'natal' => [ 'label' => 'Natal', 'icon' => 'fa-earth-americas', 'bg' => '#eef6f4', 'fg' => 'var(--astro-deep-teal)', ], 'annual' => ['label' => 'Anual', 'icon' => 'fa-calendar-days', 'bg' => '#fef8ec', 'fg' => 'var(--astro-gold)'], 'transit' => [ 'label' => 'Transit', 'icon' => 'fa-arrows-rotate', 'bg' => '#edf3f8', 'fg' => 'var(--astro-ocean)', ], 'synastry' => ['label' => 'Relación', 'icon' => 'fa-heart', 'bg' => '#fceef0', 'fg' => 'var(--astro-brick)'], 'firdaria' => [ 'label' => 'Firdaria', 'icon' => 'fa-hourglass-half', 'bg' => '#eef3f4', 'fg' => 'var(--astro-dark-teal)', ], ]; @endphp @push('styles') @endpush @section('content')
{{-- HEADER --}}
{{--
{{ t('messages-ai-analyze-center') }}
--}}

{{ t('messages-ai-analyze-center') }}

{{--

{{ t('my-ai-comments-description') }}

--}}
@if (!$comments->isEmpty())
{{ $comments->total() }} {{ t('analysis') }}
@endif
@if ($comments->isEmpty())
{{ t('no-comments-yet') }}
{{ t('create-now') }}
@else {{-- GRID VIEW --}}
@foreach ($comments as $comment) @php $type = strtolower($comment->type); $meta = $typeMeta[$type] ?? [ 'label' => $comment->type, 'icon' => 'fa-star', 'bg' => '#f0f0f0', 'fg' => '#666', ]; @endphp
{{ $meta['label'] }} {{ $comment->title ?? 'Untitled Analysis' }}

{{ Str::limit(preg_replace('/^#{1,3}\s+/m', '', strip_tags($comment->content)), 150) }}

{{ $comment->created_at?->translatedFormat('d M Y') }}
PDF
@endforeach
{{-- LIST VIEW --}}
@foreach ($comments as $comment) @php $type = strtolower($comment->type); $meta = $typeMeta[$type] ?? [ 'label' => $comment->type, 'icon' => 'fa-star', 'bg' => '#f0f0f0', 'fg' => '#666', ]; @endphp
{{ $comment->title ?? 'Untitled Analysis' }} {{ $comment->created_at?->diffForHumans() }}

{{ Str::limit(strip_tags($comment->content), 180) }}

{{ t('download-pdf') }}
@endforeach
{{ $comments->links('pagination::bootstrap-5') }}
@endif
{{-- PREVIEW MODAL --}} {{-- Content Storage --}} @foreach ($comments as $comment) @endforeach @endsection