@extends('layouts.admin')

@section('content')
    <div class="row">
        <div class="col-8">
            <div class="card">
                <div class="card-body">
                    <div class="d-md-flex align-items-center">
                        <div>
                            <h4 class="card-title">Kategori Produk</h4>
                        </div>
                    </div>
                    <form method="POST" action="{{ route('admin.product_category') }}" enctype="multipart/form-data">
                        @csrf @method('PUT')
                        <input type="hidden" name="id" value="{{ $product_category->id }}">
                        <div class="mb-3">
                            <label for="name" class="form-label">Nama</label>
                            <input type="text" required value="{{ $product_category->name }}" name="name"
                                class="form-control" id="name">
                        </div>
                        <div class="mb-3">
                            <label for="image" class="form-label">Gambar</label>
                            <input type="file" name="image" class="form-control" id="image">
                        </div>
                        <button type="submit" class="btn btn-primary rounded-2">Simpan</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
