
<?php $__env->startSection('title', $title); ?>
<?php $__env->startSection('content'); ?>
<div class="udex-main" id="main">
    <!-- Page title -->
    <div class="page-title">
        <div class="row justify-content-between align-items-center">
            <div class="mb-3 col-md-6 mb-md-0">
                <h5 class="mb-0 text-black h3 font-weight-400">Copy An Expert Today</h5>
            </div>
        </div>
    </div>
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    <div class="row">
        <div class="my-5 col-md-12">
            <div class="card">
                <div class="card-body">
                    <div class="my-5 row d-flex nowrap">
                        <?php $__currentLoopData = $copytradings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $copytrading): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="mb-4 col-lg-4">
								<div class="card-deck">
                                   
									<div class="text-center border-0 rounded-lg shadow-lg card card-pricing hover-scale-110 bg-primary popular">
										<div class="py-0 border-0 card-header">
                                            
											<div class="py-2 text-center">
                                                <div  class='text-left'>
                                                    <span class='badge badge-warning'><?php echo e($copytrading->tag); ?></span>
                                                    </div>
                                                    <img src="<?php echo e(asset('storage/app/public/'.$copytrading->photo)); ?>"  width="85" height="75" class="rounded-circle rounded" alt="<?php echo e($copytrading->name); ?>">
                                                    <h6 class="text-black text-center text-primary"><span class="px-4 mx-auto bg-white shadow-sm  rounded-bottom"><?php echo e($copytrading->name); ?></span></h6>
                                                
												
												
											</div>
										</div>
										<hr class="my-0 divider divider-fade divider-dark" />
										<div class="card-body">
											<ul class="mb-4 text-black list-unstyled">
												<li> 
													<small>Followers</small>
													<p class="text-black h5"><?php echo e(number_format($copytrading->followers)); ?></p>
												</li>
												<li>
													<small>Minimuum Start Up Capital </small>
													<p class="text-black h5"><?php echo e($settings->currency); ?><?php echo e(number_format($copytrading->price )); ?></p>
												</li>
												<li>Percentage Profit: <strong><?php echo e($copytrading->equity); ?>%</strong></li>
												<li>
													Total Profit: 
													<strong>
														<?php echo e($settings->currency); ?><?php echo e($copytrading->total_profit); ?>

													</strong>
												</li>
												<li>
													Rating: <?php if($copytrading->rating >=5): ?>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                     <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                    <?php elseif($copytrading->rating==4): ?>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                     <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star "></span>
                                                    <?php elseif($copytrading->rating==3): ?>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                     <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star "></span>
                                                    <span class="fa fa-star "></span>
                                                    <?php elseif($copytrading->rating==2): ?>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star checked"></span>
                                                     <span class="fa fa-star "></span>
                                                    <span class="fa fa-star "></span>
                                                    <span class="fa fa-star "></span>
                                                    <?php elseif($copytrading->rating==1): ?>
                                                    <span class="fa fa-star checked"></span>
                                                    <span class="fa fa-star "></span>
                                                     <span class="fa fa-star "></span>
                                                    <span class="fa fa-star "></span>
                                                    <span class="fa fa-star "></span>
                                                    <?php endif; ?>
												</li>
                                                <style>
                                                    .checked {
                                      color: orange !important;
                                    }
                                                    </style>
											</ul>
                                            
                                            <div class="">
                                                <?php if($copytrading->name == Auth::user()->copy): ?>
                                                <form method="post" action="<?php echo e(route('cancelcopytrade')); ?>">
                                                    
                                                    
                                                   
                                                    <input type="hidden" name="id" value="<?php echo e($copytrading->id); ?>">
                                                    <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                                                   
                                                    <input type="submit" class="btn btn-block pricing-action btn-success text-white" value="Stop Copying Expert " >
                                                    
                                                   
                                                </form>


                                                <?php else: ?>
                                                <form method="post" action="<?php echo e(route('joincopytrade')); ?>">
                                                    
                                                    
                                                   
                                                    <input type="hidden" name="id" value="<?php echo e($copytrading->id); ?>">
                                                    <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                                                   
                                                    <input type="submit" class="btn btn-block pricing-action btn-success text-white" value="Copy Expert" >
                                                   
                                                </form>
                                              
                                                <?php endif; ?>
                                                
                                                
                                            </div>
										</div>
									</div>
								</div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <!-- Withdrawal Modal -->
                    

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

<?php echo $__env->make('layouts.dasht', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/susanfx1/app.susanfxtradellc.one/resources/views/user/mcopytradings.blade.php ENDPATH**/ ?>