<div class="modal fade bs-modal-lg" id="edit-unit" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dm modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h3>Edit Main Unit</h3>
            </div>
            <br />
            <form class="form-horizontal" role="form" action="{{ route('save_edit_data_unit') }}" method="post" enctype = 'multipart/form-data'>
                @csrf
                <div class="row col-sm-12" style="display: none;">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Code</label>
                            <div class="col-sm-9">
                                {!! Form::text('code', null, ['placeholder'=>'Code','class' => 'form-control','id'=>'code']) !!}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="col-sm-2 required control-label">Name</label>
                            <div class="col-sm-9">
                                <input type="text" name="name" id="name" class="form-control"required>
                                <input type="hidden" name="id" id="id">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12" style="display: none;">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Brand</label>
                            <div class="col-sm-9">
                                {!! Form::text('brand', null, ['placeholder'=>'Brand','class' => 'form-control','id'=>'brand']) !!}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12" style="display: none;">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Size</label>
                            <div class="col-sm-9">
                                {!! Form::text('size', null, ['placeholder'=>'Size','class' => 'form-control','id'=>'size']) !!}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Description</label>
                            <div class="col-sm-9">
                                <textarea name="description" id="description" class="form-control"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-sm-12" style="display: none;">
                    <div class="col-sm-12">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Feature Image</label>
                            <div class="col-sm-9">
                                <input type="hidden" name="image_old" id="image-old">
                                <div class="imageupload panel panel-default">
                                    <img src='' width="100px" class="hide_img" id="image-upload">
                                    <div class="file-tab panel-body">
                                        <label class="btn button_warning btn-file">
                                            <span>Browse</span>
                                            <input type="file" name="image">
                                        </label>
                                        <button type="button" class="btn button_danger">Remove</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" data-dismiss="modal" class="button_danger"><i class="fa fa-close"></i> No</button>
                    <button type="submit" class="button_success" data-toggle="modal"><i class="fa fa-save"></i> Save</button>
                </div>
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<style>
    .modal-lg {
        width: 800px;
    }
</style>