<?php $__env->startSection('content'); ?>



 <div class="page-content"><div class="container"><div class="row"><div class="main-content col-lg-12"><div class="content-area card"><div class="card-innr"><div class="card-head"> <h4 class="card-title">Create New Offer</h4></div><div class="card-text"><p>Please select any of the following e-currencies to continue your sales.</p></div><div class="token-currency-choose"><div class="row guttar-15px">




<script type="text/javascript">

        function goDoSomething(identifier){

 document.getElementById("curname").innerHTML = $(identifier).data('option');
 document.getElementById("curname2").innerHTML = $(identifier).data('option');
 document.getElementById("curid").value = $(identifier).data('id');
 document.getElementById("cur").innerHTML = $(identifier).data('cur');
 var z = Math.floor($(identifier).data('price'));
 document.getElementById("price").innerHTML = z;
        }

    </script>
<script>
function myFunction() {
 var usd = $('#usd').val() ;
 var rate = usd*'<?php echo e($basic->rate); ?>';
 document.getElementById("local").value = "<?php echo e($basic->currency_sym); ?>"+rate;

 };
</script>


<?php $__currentLoopData = $currency; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="col-6 a1"><div class="pay-option depoButton" data-toggle="modal"   data-target="#depoModal"  onclick="goDoSomething(this);" id="option1"
       data-id="<?php echo e($data->id); ?>" data-price="<?php echo e($data->price); ?>"  data-cur="<?php echo e($data->symbol); ?>"
       data-option="<?php echo e($data->name); ?>"><input  class="pay-option-check" type="radio"  ><label class="pay-option-label" for="<?php echo e($data->id); ?>"><span class="pay-title"><em class="pay-icon cf cf-<?php if($data->icon =='paypal'): ?>pivx <?php else: ?><?php echo e($data->icon); ?><?php endif; ?>"></em><span class="pay-cur"><?php echo e($data->symbol); ?></span></span><span class="pay-amount"><?php echo e($basic->currency_sym); ?><?php echo e(number_format($data->buy, $basic->decimal)); ?></span></label></div>       </div>


<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



 <!-- Modal -->
    <div class="modal fade" id="depoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
         aria-hidden="true">
        <div class="modal-dialog modal-dialog-md modal-dialog-centered"><div class="modal-content"><a href="#" class="modal-close" data-dismiss="modal" aria-label="Close"><em class="ti ti-close"></em></a><div class="popup-body"><h4 class="popup-title">Sell <a id="curname"></a> on the market place<a id="name"> <a/></h4><p class="lead text-primary">Rate: 1<a id="cur"></a>  =  <a id="price"></a>$ </p>


 <div class="note note-plane note-light mgb-1x"><em class="fas fa-info-circle"></em><p>The sold <a id="curname2"></a> will be approved after your transaction has been confirmed by the buyer and fund will be credited to the seller .</p></div><div class="note note-plane note-danger"><em class="fas fa-info-circle"></em><p>Ensure you have updated your  <strong>payment account details</strong> and note that <?php echo e($basic->sitename); ?> will not be liable for any loss arising from your trading outside the platform.</p></div>
 <div class="note note-plane note-info"><em class="fas fa-info-circle"></em><p>You will be charged <?php echo e($basic->escrow); ?>% of any successful sales made on the <?php echo e($basic->sitename); ?> cryptocurrency market place.</p></div>
<br>
<form method="POST" action="<?php echo e(route('sellonmarketpost')); ?>">
<?php echo csrf_field(); ?>
<div class="row">

<div class="col-md-6"><div class="input-item input-with-label"><label class="input-item-label text-exlight">Amount In USD</label><input id="usd" onkeyup="myFunction()" name="amount" placeholder="$0.00" class="input-bordered" type="text"></div></div>
<input type="hidden" name="coin" id="curid"/>

<div class="col-md-6"><div class="input-item input-with-label"><label class="input-item-label text-exlight">Equivalent in <?php echo e($basic->currency); ?></label><input   placeholder="<?php echo e($basic->currency_sym); ?>0.00" id="local" onkeyup="myFunction()" class="input-bordered" name="local" type="text"></div></div></div>

<div class="input-item input-with-label"><label class="input-item-label text-exlight">Details about sales</label>
<textarea placeholder="Please enter small comment on sales" class="input-bordered"  name="details" row="5"></textarea></div>





<div class="row"><div class="col-md-12"><div class="input-item input-with-label"><label class="input-item-label text-exlight">Select Buyers</label>

<select required  class="select-bordered select-block" name="buyer">

<option>Choose...</option>
<option  value="1"><b>Any User</b></option>
<option  value="2"><b>Verified Users Only</b></option>
</select></div></div></div>








 <!-- .input-item -->
<ul class="d-flex flex-wrap align-items-center guttar-30px"><li><button type="submit"   class="btn btn-primary  btn-outline">Proceed To Sell</button></li> </form></ul><div class="gaps-2x"></div><div class="gaps-1x d-none d-sm-block"></div> </div></div><!-- .modal-content --></div><!-- .modal-dialog -->
    </div>













</div><!-- .row --></div>






<div class="card-head"><span class="card-sub-title text-primary font-mid">Please Note that you will be charged <?php echo e($basic->escrow); ?>% of any succesful transaction on the <?php echo e($basic->sitename); ?> market place</span></div>
  <!-- .container --></div><!-- .container --></div><!-- .page-content -->





<?php $__env->stopSection(); ?>

<?php echo $__env->make('include.userdashboard', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>