@extends('layout.main')

@section('content')
<div class="content-wrapper">
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">
                    Profil 
                    </h1>
                </div>
            </div>
        </div>
    </div>
    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <form action="/admin/master/configs/{{ $vision->id }}" method="post">
                            @method('put')
                            @csrf
                            <div class="card-body">
                                <div class="form-group">
                                    <label for="">Visi HMTI</label>
                                    <textarea id="vision" name="value" class="value">
                                        {{ old('value', isset($vision) ? $vision_content : '') }}
                                    </textarea>
                                </div>
                                <input type="hidden" name="type" id="type" value="editor">
                            </div>
                            <div class="card-footer">
                                <div class="row">
                                    <div class="col-12">
                                        <div class="float-right">
                                            <button type="submit" class="btn btn-sm btn-success">Simpan</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="card">
                        <form action="/admin/master/configs/{{ $mission->id }}" method="post">
                            @method('put')
                            @csrf
                            <div class="card-body">
                                <div class="form-group">
                                    <label for="">Misi HMTI</label>
                                    <textarea id="mission" name="value" class="value">
                                        {{ old('value', isset($mission) ? $mission_content : '') }}
                                    </textarea>
                                </div>
                                <input type="hidden" name="type" id="type" value="editor">
                            </div>
                            <div class="card-footer">
                                <div class="row">
                                    <div class="col-12">
                                        <div class="float-right">
                                            <button type="submit" class="btn btn-sm btn-success">Simpan</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div> 
@endsection