GOOD SHELL MAS BOY
Server: Apache/2.4.52 (Ubuntu)
System: Linux vmi1836763.contaboserver.net 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User: www-data (33)
PHP: 8.4.10
Disabled: NONE
Upload Files
File: /var/www/admin.fixgini.com/storage/framework/views/ad0a1ef60ed9653abb1fb2fe4e4d4b30.php
<div class="row">
    <div class="col-md-6 col-lg-3">
        <div class="rounded iq-card iq-card-block iq-card-stretch iq-card-height bg-primary">
            <div class="iq-card-body">
                <div class="d-flex align-items-center justify-content-between">
                    <div class="rounded shadow icon iq-icon-box iq-bg-primary" data-wow-delay="0.2s">
                        <i class="las la-users"></i>
                    </div>
                    <div class="iq-text">
                        <h6 class="text-white">Customers</h6>
                        <h3 class="text-white"><?php echo e($buyer); ?></h3>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-md-6 col-lg-3">
        <div class="rounded iq-card iq-card-block iq-card-stretch iq-card-height bg-warning">
            <div class="iq-card-body">
                <div class="d-flex align-items-center justify-content-between">
                    <div class="rounded shadow icon iq-icon-box iq-bg-warning" data-wow-delay="0.2s">
                        <i class="lab la-product-hunt"></i>
                    </div>
                    <div class="iq-text">
                        <h6 class="text-white">Providers</h6>
                        <h3 class="text-white"><?php echo e($seller); ?></h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-lg-3">
        <div class="rounded iq-card iq-card-block iq-card-stretch iq-card-height bg-success">
            <div class="iq-card-body">
                <div class="d-flex align-items-center justify-content-between">
                    <div class="rounded shadow icon iq-icon-box iq-bg-success" data-wow-delay="0.2s">
                        <i class="las la-user-tie"></i>
                    </div>
                    <div class="iq-text">
                        <h6 class="text-white"> Services</h6>
                        <h3 class="text-white"><?php echo e($gig); ?></h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-6 col-lg-3">
        <div class="rounded iq-card iq-card-block iq-card-stretch iq-card-height bg-danger">
            <div class="iq-card-body">
                <div class="d-flex align-items-center justify-content-between">
                    <div class="rounded shadow icon iq-icon-box iq-bg-danger" data-wow-delay="0.2s">
                        <i class="lab la-buffer"></i>
                    </div>
                    <div class="iq-text">
                        <h6 class="text-white">Tasks</h6>
                        <h3 class="text-white"><?php echo e($task); ?></h3>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-8">
                <div class="iq-card iq-card-block iq-card-stretch">
                    <div class="iq-card-header d-flex justify-content-between">
                        <div class="iq-header-title">
                            <h4 class="card-title">Payment Sales Trend</h4>
                        </div>
                    </div>
                    <div class="rounded iq-card-body">
                        <div class="d-flex justify-content-around">
                            <div class="mr-5 price-week-box">
                                <span>This Year</span>
                                <h3>₦<span class="counter"><?php echo e(number_format($yearPayments, 2)); ?></span>
                                    <i class="ri-funds-line text-success font-size-18"></i>
                                </h3>
                            </div>
                            <div class="price-week-box">
                                <span>Last Month</span>
                                <h3>₦<span class="counter"><?php echo e(number_format($lastMonthPayments, 2)); ?></span>
                                    <i class="ri-funds-line text-danger font-size-18"></i>
                                </h3>
                            </div>
                        </div>
                    </div>
                    <div class="iq-card-header d-flex justify-content-between"></div>
                    <div class="rounded iq-card-body">
                        <div class="d-flex justify-content-around">
                            <div class="mr-5 price-week-box">
                                <span>This Month</span>
                                <h3>₦<span class="counter"><?php echo e(number_format($thisMonthPayments, 2)); ?></span>
                                    <i class="ri-funds-line text-success font-size-18"></i>
                                </h3>
                            </div>
                            <div class="price-week-box">
                                <span>This Week</span>
                                <h3>₦<span class="counter"><?php echo e(number_format($thisWeekPayments, 2)); ?></span>
                                    <i class="ri-funds-line text-danger font-size-18"></i>
                                </h3>
                            </div>
                        </div>
                    </div>
                    <div class="iq-card-header d-flex justify-content-between"></div>
                    <div class="rounded iq-card-body">
                        <div class="d-flex justify-content-around">
                            <div class="mr-5 price-week-box">
                                <span>Last Week</span>
                                <h3>₦<span class="counter"><?php echo e(number_format($lastWeekPayments, 2)); ?></span>
                                    <i class="ri-funds-line text-success font-size-18"></i>
                                </h3>
                            </div>
                            <div class="price-week-box">
                                <span>Today Payments</span>
                                <h3>₦<span class="counter"><?php echo e(number_format($todayPayments, 2)); ?></span>
                                    <i class="ri-funds-line text-danger font-size-18"></i>
                                </h3>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-lg-4">
                <div class="iq-card iq-card-block iq-card-stretch iq-card-height">
                    <div class="iq-card-header d-flex justify-content-between">
                        <div class="iq-header-title">
                            <h4 class="card-title">Locations</h4>
                        </div>
                    </div>

                    <div class="mb-1 iq-card-body">
                        <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="mt-4 iq-details">
                            <span class="title text-dark"><?php echo e($location->state); ?></span>
                            <div class="float-right percentage text-primary"><?php echo e($location->percentage); ?> <span>%</span>
                            </div>
                            <div class="iq-progress-bar-linear d-inline-block w-100">
                                <div class="iq-progress-bar">
                                    <span class="bg-primary" style="width: <?php echo e($location->percentage); ?>%;"></span>
                                </div>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-lg-6">
        <div class="iq-card iq-card-block iq-card-stretch iq-card-height">
            <div class="iq-card-header d-flex justify-content-between">
                <div class="iq-header-title">
                    <h4 class="card-title">Recent Customers</h4>
                </div>
                <div class="iq-card-header-toolbar d-flex align-items-center">
                    <a href="<?php echo e(route('get.buyers')); ?>"> See all</a>
                </div>
            </div>
            <div class="iq-card-body">
                <ul class="p-0 m-0 tikit-lists">
                    <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $buyers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $buyer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li class="mb-4 d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <div class="user-img img-fluid">
                                <img src="<?php echo e($buyer->profile_photo_url ?? 'icon.png'); ?>" class="rounded avatar-40">
                            </div>
                            <div class="ml-3 media-support-info">
                                <h6><?php echo e($buyer->name); ?></h6>
                                <p class="mb-0 font-size-12"><?php echo e($buyer->city); ?>, <?php echo e($buyer->state); ?></p>
                            </div>
                        </div>
                        <span>
                            <?php echo e($buyer->created_at->isToday() ? 'Today' : ($buyer->created_at->isYesterday() ? 'Yesterday' : $buyer->created_at->format('d-m-Y'))); ?>

                        </span>
                    </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                </ul>
            </div>
        </div>
    </div>

    <div class="col-lg-6">
        <div class="iq-card iq-card-block iq-card-stretch iq-card-height">
            <div class="iq-card-header d-flex justify-content-between">
                <div class="iq-header-title">
                    <h4 class="card-title">Recent Providers</h4>
                </div>
                 <div class="iq-card-header-toolbar d-flex align-items-center">
                    <a href="<?php echo e(route('get.sellers')); ?>"> See all</a>
                </div>
            </div>
            
            <div class="iq-card-body">
                <ul class="p-0 m-0 tikit-lists">
                    <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $sellers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $seller): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li class="mb-4 d-flex align-items-center justify-content-between">
                        <div class="d-flex align-items-center">
                            <div class="user-img img-fluid">
                                <img src="<?php echo e($seller->profile_photo_url ?? 'icon.png'); ?>" class="rounded avatar-40">
                            </div>
                            <div class="ml-3 media-support-info">
                                <h6><?php echo e($seller->name); ?></h6>
                                <p class="mb-0 font-size-12"><?php echo e($seller->city); ?>, <?php echo e($seller->state); ?></p>
                            </div>
                        </div>
                        <span>
                            <?php echo e($seller->created_at->isToday() ? 'Today' : ($seller->created_at->isYesterday() ? 'Yesterday' : $seller->created_at->format('d-m-Y'))); ?>

                        </span>
                    </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                </ul>
            </div>
        </div>
    </div>

    <div class="col-lg-12">
        <div class="iq-card iq-card-block iq-card-stretch iq-card-height">
            <div class="iq-card-header d-flex justify-content-between">
                <div class="iq-header-title">
                    <h4 class="card-title"> Recent Tasks </h4>
                </div>
                <div class="iq-card-header-toolbar d-flex align-items-center">
                    <a href="<?php echo e(route('task.index')); ?>"> See all</a>
                </div>
            </div>
            <div class="iq-card-body">
                <div class="table-responsive">
                    <table class="table mb-0 table-borderless">
                        <thead>
                            <tr>
                                <th scope="col">SN</th>
                                <th scope="col">Buyer name</th>
                                <th scope="col">Service name</th>
                                <th scope="col">Price</th>
                                <th scope="col">Start time</th>
                                <th scope="col">End time</th>
                                <th scope="col">Time left</th>
                                <th scope="col">Service Provider</th>
                                <th scope="col">Status</th>
                            </tr>
                        </thead>
                        <tbody>
                        <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $recentTasks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $task): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                                $start_time = \Carbon\Carbon::parse($task->start_time);
                                $end_time =\Carbon\Carbon::parse($task->end_time);
                                $timeleft = $end_time->diffForHumans($start_time, [
                                    'syntax' => \Carbon\Carbon::DIFF_ABSOLUTE,
                                    'parts' => 3, // Limit to the top 3 largest units (e.g., months, days, hours)
                                ]);

                            ?>         
                            <tr>
                                <td>#<?php echo e($task->id); ?></td>
                                <td><?php echo e($task->customer->name); ?> </td>
                                <td><?php echo e($task->gig->title); ?> </td>
                                <td><?php echo e($task->gig->currency); ?><?php echo e(number_format($task->agreed_amount,2)); ?> </td>
                               <td><?php echo e(\Carbon\Carbon::parse($task->start_time)->format('Y-m-d h:i A')); ?> </td>
                                <td><?php echo e(\Carbon\Carbon::parse($task->end_time)->format('Y-m-d h:i A')); ?> </td>

                                <td class="iq-bg-primary fw-bold"><?php echo e($timeleft); ?> </td>
                                <td><?php echo e($task->provider->name); ?> </td>                                
                               <td>
                                    <div class="badge badge-pill 
                                        <?php if($task->status == 'pending'): ?>
                                            badge-primary
                                        <?php elseif($task->status == 'ongoing'): ?>
                                            badge-warning
                                        <?php elseif($task->status == 'completed'): ?>
                                            badge-success
                                        <?php endif; ?>
                                    ">
                                        <?php echo e($task->status); ?>

                                    </div>
                                </td>

                            </tr>                             
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

</div><?php /**PATH /var/www/admin.fixgini.com/resources/views/livewire/dashboard/index.blade.php ENDPATH**/ ?>