<div class="nk-block">
    <form action="{{ route('admin.storeCoin') }}" method="POST">
                @csrf
                 
                                    <div class="row g-3">
                                        <div class="col-12">
                                            <div class="form-group">
                                                <label class="form-label" for="product-title">Coin Name</label>
                                                <div class="form-control-wrap">
                                                    <input type="text" class="form-control" id="product-title"name="name" placeholder="Bitcoin..">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-12">
                                            <div class="form-group">
                                                <label class="form-label" for="product-title">Coin ShortName</label>
                                                <div class="form-control-wrap">
                                                    <input type="text" class="form-control" id="product-title"name="sname" placeholder="bitcoin..">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="form-label" for="regular-price">Coin Icon URL</label>
                                                <div class="form-control-wrap">
                                                    <input type="text" class="form-control" id="regular-price" name="icon" required placeholder="https://assets.coingecko.com/coins/images/1/standard/bitcoin.png?1696501400">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="form-label" for="sale-price">Coin Wallet Address</label>
                                                <div class="form-control-wrap">
                                                    <input type="text" class="form-control" id="sale-price" name="wallet_address" placeholder="bc1qnugawy03ruqd58grnrckmx4drua9rnv9v7j9wa">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="form-label" for="stock">Coin Symbol</label>
                                                <div class="form-control-wrap">
                                                    <input type="text" class="form-control" id="stock" name="symbol"  required placeholder="BTC">
                                                </div>
                                            </div>
                                        </div>
                                        <style>
                                          .box{
                                              
                                              
                                              display: none;
                                              
                                          }
                                          .red{ background: #ff0000; }
                                          .green{ background: #228B22; }
                                          .blue{ background: #0000ff; }
                                      </style>
                                 <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
                                 <script>
                                 $(document).ready(function(){
                                     $("select").change(function(){
                                         $(this).find("option:selected").each(function(){
                                             var optionValue = $(this).attr("value");
                                             if(optionValue){
                                                 $(".box").not("." + optionValue).hide();
                                                 $("." + optionValue).show();
                                             } else{
                                                 $(".box").hide();
                                             }
                                         });
                                     }).change();
                                 });
                                 </script>                                      
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="form-label" for="SKU">Custom Coin</label>
                                                <div class="form-control-wrap">
                                                    <select name="customcoin" class="form-control">
                                                        <option value="0">NO</option>
                                                        <option value="1">YES</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="1 col-12 box">
                                            <div class="form-group">
                                                <label class="form-label" for="category">Custom Coin Price ({{$currency}})</label>
                                                <div class="form-control-wrap">
                                                    <input type="text" class="form-control" id="category" name="customprice" value="0" placeholder="100">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="form-label" for="SKU">Status</label>
                                                <div class="form-control-wrap">
                                                    <select name="status" class="form-control">
                                                        <option value="active">Active</option>
                                                        <option value="inactive">Inactive</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="form-label" for="SKU">Feature Coin</label>
                                                <div class="form-control-wrap">
                                                    <select name="featurecoin" class="form-control">
                                                        <option value="0">NO</option>
                                                        <option value="1">YES</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-12">
                                            <div class="form-group">
                                                <label class="form-label" for="tags">Description of Coin</label>
                                                <div class="form-control-wrap">
                                                    <textarea type="text" class="form-control" minlenght="20" maxlenght="255" id="tags" name="description" ></textarea>
                                                </div>
                                            </div>
                                        </div>
                                         
                                        <div class="col-12">
                                            <button type="submit" class="btn btn-primary"><em class="icon ni ni-plus"></em><span>Add Coin</span></button>
                                        </div>
                                    </div>
                                </div><!-- .nk-block -->
