@extends('student.layouts.app')
@section('title', 'Tipe Kepribadian | Career Development and Consultation (CDC)')
@section('header')
    <div class="py-5 toolbar py-lg-5" id="kt_toolbar">
        <div id="kt_toolbar_container" class="flex-wrap container-xxl d-flex flex-stack">
            <div class="page-title d-flex flex-column me-3">
                <h1 class="my-1 d-flex text-dark fw-bolder fs-3">Tipe Kepribadian</h1>
                <ul class="my-1 text-gray-600 breadcrumb breadcrumb-dot fw-bold fs-7">
                    <li class="text-gray-600 breadcrumb-item">
                        <a href="{{ route('student.dashboard') }}" class="text-gray-600 text-hover-primary">Dashboard</a>
                    </li>
                    <li class="text-gray-600 breadcrumb-item">Tipe Kepribadian</li>
                    <li class="text-gray-600 breadcrumb-item">Detail</li>
                </ul>
            </div>
            <a href="{{ route('student.personality') }}" class="btn btn-primary fw-bolder">Kembali</a>
        </div>
    </div>
@endsection
@section('content')
    <div class="card">
        <div class="card-body p-lg-20 pb-lg-0">
            <div class="d-flex flex-column flex-xl-row">
                <div class="flex-lg-row-fluid me-xl-15">
                    <div class="mb-14">
                        <div class="mb-8">
                            <div class="flex-wrap mb-6 d-flex">
                                <div class="my-1 me-9">
                                    <span class="svg-icon svg-icon-primary svg-icon-2 me-1">
                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
                                            viewBox="0 0 24 24" fill="none">
                                            <rect x="2" y="2" width="9" height="9" rx="2" fill="black" />
                                            <rect opacity="0.3" x="13" y="2" width="9" height="9" rx="2"
                                                fill="black" />
                                            <rect opacity="0.3" x="13" y="13" width="9" height="9" rx="2"
                                                fill="black" />
                                            <rect opacity="0.3" x="2" y="13" width="9" height="9" rx="2"
                                                fill="black" />
                                        </svg>
                                    </span>
                                    <span class="text-gray-400 fw-bolder">{{ $personality->created_at }}</span>
                                </div>
                            </div>
                            <span class="text-dark text-hover-primary fs-1 fw-bolder">{{ $personality->personality }}
                            </span>
                            <div class="mt-8 overlay">
                                <div class="bgi-no-repeat bgi-position-center bgi-size-cover card-rounded min-h-200px"
                                    style="background-image:url('{{ $personality->image_url ? asset('storage/illustrations/' . $personality->image_url) : asset('assets/archive/images/default.png') }}'); background-size: contain;">
                                </div>
                            </div>
                        </div>
                        <div class="text-gray-600 fs-4 fw-bold">
                            {!! $personality->desc !!}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
