<x-app-layout>
    @section('title')
        Pages Management
    @endsection
    <!-- Page Heading -->
    <h1 class="h3 mb-2 text-gray-800">

    </h1>
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">
                Product
            </h6>
        </div>
        <div class="card-body">
            <form action="{{ route('admin.product.update', $data->id) }}" method="post" enctype="multipart/form-data">
                @csrf
                @method('put')
                <div class="row">
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Product name</label>
                            <input type="text" class="form-control" value="{{ $data->name }}" name="name"
                                placeholder="Product name" required>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Price</label>
                            <input type="number" class="form-control" value="{{ $data->price }}" name="price"
                                placeholder="Product price" required>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Image</label>
                            <img width="60px" src="{{ asset($data->image) }}" alt="">
                            <input type="file" class="form-control" name="image" >
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Sort Description</label>
                            <textarea name="sort_description" class="form-control" required>{{ $data->sort_description }} </textarea>
                        </div>
                    </div>
                    <div class="col-12">
                        <div class="mt-3">
                            <label for="">Long Description</label>
                            <textarea name="long_description" class="form-control summernote" required>{{ $data->long_description }}</textarea>
                        </div>
                    </div>

                    <div class="col-12">
                        <div class="mt-3">
                            <button type="submit" class="btn btn-primary">Update</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</x-app-layout>
