@extends('back-end.master.app')
@section('title', 'Product Category')
@section('body')
    <main class="app-content">
        <div class="row">
            <div class="col-md-12">
                <div class="card">

                    <div class="card-body ">
                        <div class="row">
                            <div class="col-md-9">
                                <h3 class="">Edit</h3>
                            </div>
                            <div class="col-md-3">

                            </div>
                        </div>
                        <div class="row mt-5">
                            <div class="col-md-12">
                                <form method="POST" action="{{ route('plcategories.update', $category->id) }}"
                                    onsubmit="return validation();" enctype="multipart/form-data">
                                    @method('put')
                                    @csrf
                                    <div class="row">
                                        <div class="col-md-12 mb-2">
                                            <div data-mdb-input-init class="form-outline">
                                                <input type="text" id="title_en" value="{{ $category->title_en }}"
                                                    name="title_en" class="form-control" />
                                                <label class="form-label" for="title_en">Title English</label>
                                            </div>
                                        </div>
                                        <div class="col-md-12 mb-2">
                                            <div data-mdb-input-init class="form-outline">
                                                <input type="text" id="title_ps" name="title_ps"
                                                    value="{{ $category->title_ps }}" class="form-control" />
                                                <label class="form-label" for="title_ps">Title Pashto</label>
                                            </div>
                                        </div>
                                        <div class="col-md-12 mb-2">
                                            <div data-mdb-input-init class="form-outline">
                                                <input type="text" id="title_dr" name="title_dr"
                                                    value="{{ $category->title_dr }}" class="form-control" />
                                                <label class="form-label" for="title_dr">Title Dari</label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group row mb-0">
                                        <div class="col-md-6 ">
                                            <button type="submit" class="btn btn-primary">
                                                {{ __('Edit') }}
                                            </button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </main>
@endsection
@section('pageJs')
    <script type="text/javascript">
        $(".app-menu").removeClass("active");
        $("#nav_configi").addClass("active");
        $("#nav_configi").addClass("is-expanded");
        $("#nav_scat").addClass("active");
    </script>
@endsection
