@extends('layouts.admin')

@section('title', 'Detail Edukasi')

@section('content')

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

        <h4>{{ $edukasi->judul }}</h4>

        <hr>

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

        <!-- ISI -->
        <div style="max-width:100%; overflow:hidden;">
            {!! $edukasi->isi !!}
        </div>

        <br>

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

    </div>
</div>

@endsection