@extends('layouts.user')

@section('content')

<h4>Detail Edukasi</h4>

<div class="card shadow-sm">
    <div class="card-body">

     
        <h5 class="mb-3">{{ $edukasi->judul }}</h5>

        @if($edukasi->gambar)
            <img src="{{ asset('uploads/'.$edukasi->gambar) }}"
                 class="img-fluid mb-3 rounded"
                 style="max-height:300px; object-fit:cover;">
        @endif

       
        <div>
            {!! $edukasi->isi !!}
        </div>

        <a href="{{ route('user.edukasi') }}" class="btn btn-secondary mt-3">
            ← Kembali
        </a>

    </div>
</div>

@endsection