
<!-- /.card-header -->
<div class="card-body">
    <form id="validation2" action="{{route('admin::save_product_maincategory')}}" method="POST" enctype="multipart/form-data">
        @csrf


        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Category</label>
                    <input type="text" name="maincategory" class="form-control" placeholder="Enter ...">
                </div>
                @if ($errors->has('maincategory'))
                    <span class="alert alert-danger">{{ $errors->first('maincategory') }}</span>
                @endif


            </div>
        </div>

        <style>
            .hytdgdg {
                display: flex;
                align-items: center;
            }
            label.hyt {
                display: flex;
                align-items: center;
            }
            label.hyt input {
                width: fit-content;
                margin-right: 10px;
            }
        </style>


        <div class="row">
            <div class="col-sm-12">
                <div class="form-group hytdgdg">
                    <label class="mr-4">Use As Menu : </label>
                    
                    <label for="html" class="hyt mr-4">
                        <input type="radio" name="use_as_menu" class="form-control" value="1">
                        Yes
                    </label>
                    
                    <label for="css" class="hyt">
                        <input type="radio" name="use_as_menu" class="form-control" value="0">
                        No
                    </label>
                </div>
                


            </div>
        </div>
    
        
        @if ($errors->has('use_as_menu'))
                    <span class="alert alert-danger">{{ $errors->first('use_as_menu') }}</span>
                @endif

        <div class="row">

            <div class="col-md-12">
                <div class="form-group" style="text-align:center">
                    <input type="submit" value="Submit" class="btn btn-primary">
                </div>
            </div>
        </div>
    </form>
</div>

<!-- /.card-body -->
<script type="text/javascript">
    jQuery("#validation2").validationEngine({promptPosition: 'inline'});
    $('.select2').select2();
</script>
