관리-도구
편집 파일: 5a15f32aacdd8e55f8ffd8012394d088591cbaa1.php
<?php $investor = content('investor.content'); $topInvestor = App\Models\Payment::where('payment_status', 1) ->groupBy('user_id') ->selectRaw('sum(amount) as sum, user_id') ->orderBy('sum', 'desc') ->get() ->map(function ($a) { return App\Models\User::find($a->user_id); }); ?> <div class="investor-slider"> <?php if($topInvestor->count() > 0): ?> <?php $__currentLoopData = $topInvestor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $top): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="single-slide"> <div class="investor-item"> <div class="thumb" style="background-image: url('<?php echo e(getFile('user', $top->image)); ?>');"> </div> <div class="content"> <h4><?php echo e(__($top->full_name)); ?></h4> <p><?php echo e(__('Invest Amount')); ?> <span class="site-color"><?php echo e(number_format($top->payments()->where('payment_status', 1)->sum('amount'), 2) . ' ' . $general->site_currency); ?></span> </p> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <?php /**PATH /home/inprosysltd/public_html/cityscape.inprosysltd.com/core/resources/views/backend/frontend/not_editable/investor.blade.php ENDPATH**/ ?>