@extends('layouts.app')
@section('landingTitle', 'KlinikSapi.Go | Solusi Penanganan Penyakit')
@section('content')
<section class="bg-white dark:bg-gray-900 pt-20">
  <div class="py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16">
    <h1 class="mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-4xl lg:text-5xl dark:text-white">Solusi Penanganan Penyakit</h1>
    <p class="text-lg font-normal text-gray-500 lg:text-xl sm:px-16 lg:px-48 dark:text-gray-400">Temukan berbagai solusi penanganan penyakit sapi di sini. Kami menyediakan panduan lengkap untuk membantu Anda menjaga kesehatan ternak dengan lebih baik.</p>
  </div>
</section>

<section class="flex px-44 pb-24">
    <div class="w-full" id="accordion-open" data-accordion="open">
        @foreach ($solusi as $data)
            <h2 id="accordion-open-heading-{{ $data->penyakitId }}">
                <button type="button" class="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3" data-accordion-target="#accordion-open-body-{{ $data->penyakitId }}" aria-expanded="false" aria-controls="accordion-open-body-{{ $data->penyakitId }}">
                <span class="flex items-center"><svg class="w-5 h-5 me-2 shrink-0" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>Solusi Penanganan Penyakit: {{ $data->penyakit }}</span>
                <svg data-accordion-icon class="w-3 h-3 rotate-180 shrink-0" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5 5 1 1 5"/>
                </svg>
                </button>
            </h2>
            <div id="accordion-open-body-{{ $data->penyakitId }}" class="hidden" aria-labelledby="accordion-open-heading-{{ $data->penyakitId }}">
                <div class="p-5 border border-b-0 border-gray-200 dark:border-gray-700">
                    <p class="mb-2 text-gray-500 dark:text-gray-400">{{ $data->solusi }}</p>
                </div>
            </div>
        @endforeach
    </div>
</section>
@endsection
