
                <textarea class="form-control" name="product_description" id="product_description" rows="3">
                {{ $product->product_description }}
                </textarea>
            </div>
            <div class="form-row">
                <div class="form-group col-md-3">
                    <input type="hidden" class="form-control" name="thumbnail" id="thumbnail" value="{{ $product->thumbnail }}">
                </div>
                <div class="form-group col-md-1">
                    <input type="hidden" class="form-control" name="thumbnail1" id="thumbnail1" value="{{ $product->thumbnail1 }}">
                </div>
                <div class="form-group col-md-1">
                    <input type="hidden" class="form-control" name="thumbnail2" id="thumbnail2" value="{{ $product->thumbnail2 }}">
                </div>
                <div class="form-group col-md-1">
                    <input type="hidden" class="form-control" name="thumbnail3" id="thumbnail3" value="{{ $product->thumbnail3 }}">
                </div>
                <div class="form-group col-md-1">
                    <input type="hidden" class="form-control" name="thumbnail4" id="thumbnail4" value="{{ $product->thumbnail4 }}">
                </div>
                <div class="form-group col-md-1">
                    <input type="hidden" class="form-control" name="thumbnail5" id="thumbnail5" value="{{ $product->thumbnail5 }}">
                </div>
            </div>
            <div class="form-row">
                <div class="form-group col-md-1">
                    <strong><label for="product_thumbnail">Ảnh đại diện</label></strong>
                    <img src="{{ asset('public/uploads/'.$product->thumbnail) }}" id="show_img" style="width:90%" class="rounded" />
                </div>
                <div class="form-group col-md-11">
                    <strong><label for="list_thumbnail">Bộ sưu tập</label></strong>
                    <div class="form-row">
                        <div class="form-group col-md-1">
                            <img src="{{ asset('public/uploads/'.$product->thumbnail1 ) }}" id="show_img1" style="width:100%" class="rounded" />
                        </div>
                        <div class="form-group col-md-1">
                            <img src="{{ asset('public/uploads/'.$product->thumbnail2 ) }}" id="show_img2" style="width:100%" class="rounded" />
                        </div>
                        <div class="form-group col-md-1">
                            <img src="{{ asset('public/uploads/'.$product->thumbnail3 ) }}" id="show_img3" style="width:100%" class="rounded" />
                        </div>
                        <div class="form-group col-md-1">
                            <img src="{{ asset('public/uploads/'.$product->thumbnail4 ) }}" id="show_img4" style="width:100%" class="rounded" />
                        </div>
                        <div class="form-group col-md-1">
                            <img src="{{ asset('public/uploads/'.$product->thumbnail5 ) }}" id="show_img5" style="width:100%" class="rounded" />
                        </div>
                    </div>
                </div>
            </div><br>
            <div class="form-row">
                <div class="form-group col-md-3">
                    <button type="button" class="btn btn-dark" data-toggle="modal" data-target="#primaryImagesModal">
                        Ảnh đại diện
                    </button>
                    <button type="button" class="btn btn-warning" data-toggle="collapse" href="#imageCollapse">
                        Bộ sưu tập
                    </button>
                </div>
            </div>
            @endforeach
            <!-- Image Collapse -->
            <div class="form-row collapse" id="imageCollapse">
                <div class="form-group col-md-1">
                    <button type="button" class="btn btn-info" data-toggle="modal" data-target="#images1Modal">Ảnh 1</button>
                </div>
                <div class="form-group col-md-1">
                    <button type="button" class="btn btn-info" data-toggle="modal" data-target="#images2Modal">Ảnh 2</button>
                </div>
                <div class="form-group col-md-1">
                    <button type="button" class="btn btn-info" data-toggle="modal" data-target="#images3Modal">Ảnh 3</button>
                </div>
                <div class="form-group col-md-1">
                    <button type="button" class="btn btn-info" data-toggle="modal" data-target="#images4Modal">Ảnh 4</button>
                </div>
                <div class="form-group col-md-1">
                    <button type="button" class="btn btn-info" data-toggle="modal" data-target="#images5Modal">Ảnh 5</button>
                </div>
            </div>
            <button type="submit" class="btn btn-success" style="float:right">Cập nhật</button>
        </form>
    </div>
</div>


<!-- Upload Modal -->
<div class="modal fade" id="primaryImagesModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-custom" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Upload Images</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <iframe src="{{url('public/filemanager/dialog.php?field_id=thumbnail')}}" style="width:100%; height:500px; overflow-y:auto; border:none;"></iframe>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Đóng</button>
            </div>
        </div>
    </div>
</div>

<!-- Upload 1 Modal -->
<div class="modal fade" id="images1Modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-custom" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Upload Images</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <iframe src="{{url('public/filemanager/dialog.php?field_id=thumbnail1')}}" style="width:100%; height:500px; overflow-y:auto; border:none;"></iframe>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Đóng</button>
            </div>
        </div>
    </div>
</div>
<!-- Upload 2 Modal -->
<div class="modal fade" id="images2Modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-custom" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Upload Images</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>