@extends('layouts.v_template')
<style>
    .one-line {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
</style>

@section('content')
    <div class="container-fluid">
        <!-- ========== title-wrapper start ========== -->
        <div class="title-wrapper pt-30">
            <div class="row align-items-center">
                <div class="col-md-6">
                    <div class="title">
                        <h2>Database Study Kasus</h2>
                    </div>
                </div>
                <!-- end col -->
                <div class="col-md-6">
                    <div class="breadcrumb-wrapper">
                        <nav aria-label="breadcrumb">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item">
                                    <a href="#0">Database Study Kasus</a>
                                </li>
                                <li class="breadcrumb-item">
                                    <a href="{{ URL::to('/study-kasus') }}">Dashboard</a>
                                </li>
                            </ol>
                        </nav>
                    </div>
                </div>
                <!-- end col -->
            </div>
            <!-- end row -->
        </div>
        <!-- ========== title-wrapper end ========== -->
        <div class="tables-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <div class="card-style mb-30">
                        <div class="d-flex justify-content-between mb-15">
                            <h6 class="mb-25">Study Kasus</h6>
                            <a href="{{ URL::to('/study-kasus') }}" class="btn btn-sm btn-primary">Kembali</a>
                        </div>
                        <form action="{{ url('/study-kasus/store') }}" method="POST" enctype="multipart/form-data">

                            @csrf

                            <div class="select-style-1 w-50">
                                <label for="">kategori</label>
                                <div class="select-position">
                                    <select name="kategori">
                                        @foreach ($kategori as $p)
                                            <option value="{{ $p->id }}">{{ $p->nama_kategori }}</option>
                                        @endforeach
                                    </select>
                                </div>
                            </div>

                            <label>
                                Case
                            </label>

                            <div class="input-style-1">

                                <input type="text" id="title" name="title" required />

                            </div>

                            <label>
                                Deskripsi
                            </label>

                            <div class="input-style-1">

                                <textarea rows="10" id="description" name="description"></textarea>

                            </div>

                            <label>
                                Gambar
                            </label>

                            <div class="input-style-1">

                                <input type="file" name="image" accept="image/*">

                            </div>

                            <button type="submit" class="main-btn primary-btn btn-hover">
                                Simpan
                            </button>

                        </form>
                    </div>
                    <!-- end card -->
                </div>
                <!-- end col -->
            </div>
            <!-- end row -->
        </div>
        <!-- end row -->
    </div>
@endsection

@section('script')
    <script>

    </script>
@endsection

<!-- ========== section end ========== -->

<!-- ========== footer start =========== -->