
		<link rel="stylesheet" href="<?php echo e(asset ('core/core/static/css/style.css')); ?>">
	<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

<style type="text/css">


			#tit span.select {
			    color: #1377FE;
			    border-radius: 4px;
			    background: #E7F0F9;
			}
			.text p {
		    background: #0160bf;
		    width: 100px;
		    text-align: center;
		    color: #fff;
		    border-radius: 30px;
		    font-size: 12px;
		    margin-top: 10px;
			}
			.appHeader{
		    background-color: #1C57A8;
		}
			#tit {
			
			    background-color: #000;
			 
			}
			
			
			
			
			.text-muted {
				color: #8D95A0;
				font-size: 14px;
				font-weight: 400;
				display: initial;
				float: right;
			}

			#tit {
				height: auto;
				width: 100%;
				background: none;
				border-radius: 10px;
				white-space: nowrap;
				display: flex;
				overflow: auto;
				margin-top: 10px;
			}
			.postItem .imageWrapper .image {
				width: 100%;
				border-radius: 6px;
			  height: auto;
			}
			#tit span {
			    float: left;
			    height: 40px;
			    line-height: 40px;
			    width: auto;
			    text-align: center;
			    color: #333;
			    margin: 4px;
			    background: #F2F2F2;
			    border-radius: 8px;
			    padding: 0 16px;
			}
			
			.dropload-down {
				width: 100%;
				padding-top:50px;
				margin: 0 auto;
				line-height: 1.6em;
				font-size: 14px;
				text-align: center;
				color: #968b8b;
			}
			.itdjs{
			    width: 120px;
			    height: 30px;
			    margin: auto;
			    margin-top: 10px;
			    display: flex;
			    display: -webkit-flex; /* Safari */
			}
			.daojishi{
			    width: 20px;
			    height: 20px;
			    
			    margin-right: 13px;
			    flex-direction: column;

			}
			
			.daojishi img{
			    width: 20px;
			    height: 20px;
			}
			
			 .content{
			     padding-top: 56px;
			     padding-bottom: 64px;
			 }
			 .gooditem{
			    width: 100%;
			    height: 100%;
                background-color: #FFFFFF;
                border-radius: 16px;
                margin-top: 20px;
			 }
			 .gooditem .top{
			     width: 100%;
			     height: 56px;
			     display: flex;
			     display: -webkit-flex; /* Safari */
                 flex-direction: row ;
                 justify-content: space-between;
			 }
			 .top .left{
			     display: flex;
			     display: -webkit-flex; /* Safari */
                 flex-direction: row ;
			 }
			 .top .image img{
			     width: 56px;
			     height: 56px;
			     margin: 10px;
			 }
			 .top .title{
			     color: #333333;
			     font-weight: 600;
			     font-size: 16px;
			     margin-top: 10px;
			     line-height: 56px;
			     display: inline-block;
                  overflow: hidden;
                  text-overflow:ellipsis;
			 }
			 .top i{
    		    background-color: #1DC62E;
    		    padding: 2px 10px;
    		    border-radius: 0px 8px 0px 8px;
    		    color: #fff;
    		    right: 0;
			 }
			 .gooditem .text{
			     color: #333333;
			     margin-left: 10px;
			     margin-top: 18px;
			    
			 }
			 .textitem{
			     height: 30px;
			     line-height: 30px;
			     display: flex;
			     display: -webkit-flex; /* Safari */
                 flex-direction: row ;
                 justify-content: space-between;
			 }
			 .textdata{margin-right:12px;font-weight: 500;}
			 .textitem .label{
			     font-size: 12px;
			     opacity: 0.8;
			 }
			 .bottom{
			     margin-top: 10px;
			     padding-bottom: 20px;
			 }
			 .details{
			     width: 90%;
			     height: 32px;
			     margin: auto;
			     line-height: 32px;
			     text-align: center;
			     background: #E7F0F9;
			     border-radius: 100px;
			     color: #1377FE;
			 }
		</style>
	</head>

	<body style="background-color:#F8F8FB;">

		<!-- Page loading -->
		<div class="loading">
			<div class="spinner-grow"></div>
		</div>
		<!-- * Page loading -->
		<!-- App Header -->
		<div class="appHeader">
			<div class="left">
				<a href="javascript:;" class="icon goBack">
					<i class="icon ion-ios-arrow-back"></i>
				</a>
			</div>
			<div class="pageTitle">Products</div>
		</div>
<h1>‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ </h1>

	   <div class="card">
                                
		
		  <div class="container">
	

		
    <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
     
                                                  
                                                    <a>
                                                <div class="gooditem">
                                                 <div class="top">
                                                 <div class="left">
            											        <div class="image">
            									        <img src="<?php echo e(asset(getImage(getFilePath('logoIcon').'/logo_2.png'))); ?>" alt="avatar">
            									        </div>
            									     <div class="title"><?php echo e(__($plan->name)); ?></div>
            								   </div>
            									  <div class="right"><i>Hot</i></div>
            									 </div>
            										<div class="text">
                								<div class="textitem">
            											<div class="label">Price</div> <div class="textdata">   <?php if($plan->fixed_amount == 0): ?>
                                <?php echo e(__($general->cur_sym)); ?><?php echo e(showAmount($plan->minimum)); ?> -
                                <?php echo e(__($general->cur_sym)); ?><?php echo e(showAmount($plan->maximum)); ?>

                            <?php else: ?>
                                <?php echo e(__($general->cur_sym)); ?><?php echo e(showAmount($plan->fixed_amount)); ?>

                            <?php endif; ?> </div>
            									     </div>
            										<div class="textitem">
            											<div class="label">Daily income</div> <div class="textdata"><?php echo e($plan->interest_type != 1 ? $general->cur_sym : ''); ?><?php echo e(showAmount($plan->interest)); ?><?php echo e($plan->interest_type == 1 ? '%' : ''); ?> </div>
            								    </div>
            										<div class="textitem">
            												<div class="label">Validity period</div> <div class="textdata">    <?php if($plan->lifetime == 0): ?>
                            <?php echo e(__($plan->repeat_time)); ?> / <?php echo e(__($plan->time_name)); ?>

                        <?php else: ?>
                            <?php echo app('translator')->get('LIFETIME'); ?>
                        <?php endif; ?> </div>
            									   </div>
            											<div class="textitem">
            											<div class="label">Purchase limit</div> <div class="textdata">3454+ / person</div>
            									     </div>
            									     
            									     
            									     
            									     
            									     
            									     
            									     	<div class="textitem">
            											<div class="label">Total Income</div> <div class="textdata"> <?php if($plan->lifetime == 0): ?>
                                <?php if($plan->capital_back == 1): ?>
                                    <?php echo app('translator')->get('capital'); ?> +
                                <?php endif; ?>
                                <?php echo e(__($plan->interest * $plan->repeat_time)); ?><?php echo e($plan->interest_type == 1 ? '%' : ' ' . __($general->cur_text)); ?>

                            <?php else: ?>
                                <?php echo app('translator')->get('Unlimited'); ?>
                            <?php endif; ?></div>
            									     </div>
            									     
            									     
            									     
            									     
            										 </div>
            										     <form action="<?php echo e(route('user.invest.submit')); ?>" method="post">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="plan_id">
            										 
            										 
            											<div class="itdjs"><span class="daojishi" ><i class="fa fa-list"></i></span><span style="color:red;font-size:20px" id="time'+i+'"></span></div>
            									<div class="bottom"><p class="details investModal" data-bs-toggle="modal"
                data-plan="<?php echo e($plan); ?>" data-bs-target="#investModal" type="submit"  class="details"> View</p></div>
            								</div>

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









<div class="modal fade" id="investModal">
    <div class="modal-dialog modal-dialog-centered modal-content-bg">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">
                    <?php if(auth()->check()): ?>
                        <?php echo app('translator')->get('Confirm to invest on'); ?> <span class="planName"></span>
                    <?php else: ?>
                        <?php echo app('translator')->get('At first sign in your account'); ?>
                    <?php endif; ?>
                </h5>
                <button type="button" class="close" data-bs-dismiss="modal">
                    <i class="las la-times"></i>
                </button>
            </div>
                        <input type="hidden" name="plan_id">
                <?php if(auth()->check()): ?>
                    <div class="modal-body">
                        <div class="form-group">
                     

                            <label><?php echo app('translator')->get('Select Wallet'); ?></label>
                            <select class="form-control form--control form-select" name="wallet_type" required>
                      
                                <?php if(auth()->user()->deposit_wallet > 0): ?>
                                <option value="deposit_wallet"><?php echo app('translator')->get('Recharge Wallet - '.$general->cur_sym.showAmount(auth()->user()->deposit_wallet)); ?></option>
                                <?php endif; ?>
                          
                          
                            </select>
                            <code class="gateway-info rate-info d-none"><?php echo app('translator')->get('Rate'); ?>: 1 <?php echo e($general->cur_text); ?> = <span class="gateway-rate"></span> <span class="method_currency"></span></code>
                        </div>
                        <div class="form-group">
                            <label><?php echo app('translator')->get('Invest Amount'); ?></label>
                            <div class="input-group">
                                <input type="number" step="any" class="form-control form--control" name="amount" required>
                                <div class="input-group-text"><?php echo e($general->cur_text); ?></div>
                            </div>
                            <code class="gateway-info d-none"><?php echo app('translator')->get('Charge'); ?>: <span class="charge"></span> <?php echo e($general->cur_text); ?>. <?php echo app('translator')->get('Total amount'); ?>: <span class="total"></span> <?php echo e($general->cur_text); ?></code>
                        </div>
                    </div>
                <?php endif; ?>
                <div class="modal-footer">
                    <?php if(auth()->check()): ?>
                        <button type="button" class="btn okbtn btn-solid" data-bs-dismiss="modal"><?php echo app('translator')->get('No'); ?></button>
                        <button type="submit" class="btn okbtn btn-solid"><?php echo app('translator')->get('Yes'); ?></button>
                    <?php else: ?>
                        <a href="<?php echo e(route('user.login')); ?>" class="btn btn--base w-100"><?php echo app('translator')->get('At first sign in your account'); ?></a>
                    <?php endif; ?>
                </div>
            </form>
        </div>
    </div>
</div>


<?php $__env->startPush('script'); ?>
<script>
    (function($){
        "use strict"
        $('.investModal').click(function(){
            var symbol = '<?php echo e($general->cur_sym); ?>';
            var currency = '<?php echo e($general->cur_text); ?>';
            $('.gateway-info').addClass('d-none');
            var modal = $('#investModal');
            var plan = $(this).data('plan');
            modal.find('[name=plan_id]').val(plan.id);
            modal.find('.planName').text(plan.name);
            let fixedAmount = parseFloat(plan.fixed_amount).toFixed(2);
            let minimumAmount = parseFloat(plan.minimum).toFixed(2);
            let maximumAmount = parseFloat(plan.maximum).toFixed(2);
            let interestAmount = parseFloat(plan.interest);

            if (plan.fixed_amount > 0) {
                modal.find('.investAmountRange').text(`Invest: ${symbol}${fixedAmount}`);
                modal.find('[name=amount]').val(parseFloat(plan.fixed_amount).toFixed(2));
                modal.find('[name=amount]').attr('readonly',true);
            }else{
                modal.find('.investAmountRange').text(`Invest: ${symbol}${minimumAmount} - ${symbol}${maximumAmount}`);
                modal.find('[name=amount]').val('');
                modal.find('[name=amount]').removeAttr('readonly');
            }

            if (plan.interest_type == '1') {
                modal.find('.interestDetails').html(`<strong> Interest: ${interestAmount}% </strong>`);
            } else {
                modal.find('.interestDetails').html(`<strong> Interest: ${interestAmount} ${currency}  </strong>`);
            }

            if (plan.lifetime == '0') {
                modal.find('.interestValidity').html(`<strong>  Every ${plan.time_name} for ${plan.repeat_time} times</strong>`);
            } else {
                modal.find('.interestValidity').html(`<strong>  Every ${plan.time_name} for life time </strong>`);
            }

        });

        $('[name=amount]').on('input',function(){
            $('[name=wallet_type]').trigger('change');
        })

        $('[name=wallet_type]').change(function () {
            var amount = $('[name=amount]').val();
            if($(this).val() != 'deposit_wallet' && $(this).val() != 'interest_wallet' && amount){
                var resource = $('select[name=wallet_type] option:selected').data('gateway');
                var fixed_charge = parseFloat(resource.fixed_charge);
                var percent_charge = parseFloat(resource.percent_charge);
                var charge = parseFloat(fixed_charge + (amount * percent_charge / 100)).toFixed(2);
                $('.charge').text(charge);
                $('.gateway-rate').text(parseFloat(resource.rate));
                $('.gateway-info').removeClass('d-none');
                if (resource.currency == '<?php echo e($general->cur_text); ?>') {
                    $('.rate-info').addClass('d-none');
                }else{
                    $('.rate-info').removeClass('d-none');
                }
                $('.method_currency').text(resource.currency);
                $('.total').text(parseFloat(charge) + parseFloat(amount));
            }else{
                $('.gateway-info').addClass('d-none');
            }
        });
    })(jQuery);
</script>
<?php $__env->stopPush(); ?>


<?php /**PATH /home/sites/28b/6/61db25e12e/public_html/perview/solermine/demo/core/resources/views/templates/invester/partials/plan.blade.php ENDPATH**/ ?>