@extends('admin.template')

@section('content')
    <div class="content-wrapper">
        <div class="row">
            <div class="col-12 grid-margin stretch-card">
                <div class="card">
                    <div class="card-body">
                        <h4 class="card-title">Tambah Kategori TPS</h4>
                        <p class="card-description">Form tambah data kategori TPS</p>

                        <form action="{{ route('admin.kategori.store') }}" method="POST" enctype="multipart/form-data">
                            @csrf

                            <div class="form-group">
                                <label>Nama Kategori</label>
                                <input type="text" name="nama_kategori" class="form-control" required>
                            </div>

                            <div class="form-group">
                                <label>Kepanjangan Kategori</label>
                                <input type="text" name="kepanjangan_kategori" class="form-control">
                            </div>

                            <div class="form-group">
                                <label for="exampleTextarea1">Deskripsi</label>
                                <textarea name="deskripsi" class="form-control" id="exampleTextarea1" rows="4"></textarea>
                            </div>

                            <div class="form-group">
                                <label>Foto Kategori</label>

                                <input type="file" name="foto_kategori" id="foto_kategori" class="file-upload-default">

                                <div class="input-group col-xs-12">
                                    <input type="text" class="form-control file-upload-info" disabled
                                        placeholder="Upload Foto">
                                    <span class="input-group-append">
                                        <button class="file-upload-browse btn btn-primary" type="button">
                                            Upload
                                        </button>
                                    </span>
                                </div>
                            </div>


                            <button class="btn btn-primary">Simpan</button>
                            <a href="{{ route('admin.kategori.index') }}" class="btn btn-light">Batal</a>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
