<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?>
<?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title', null, []); ?> <?php echo e(translate('Payout/manage')); ?> <?php $__env->endSlot(); ?>
    <!-- BREADCRUMB -->
    <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['title' => 'Payout Request','pageTo' => 'Payout']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.breadcrumb'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Payout Request','page-to' => 'Payout']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>

    <div class="card">
        <div class="grid grid-cols-12 gap-4">
            <?php if (isset($component)) { $__componentOriginalf71c875fb7323a7f8d9f1abd403e0664 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.course-overview-card','data' => ['colorType' => 'primary','title' => 'Total Request Amount','value' => '$'.e($reports['total_request_amount'] ?? 0).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.course-overview-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['color-type' => 'primary','title' => 'Total Request Amount','value' => '$'.e($reports['total_request_amount'] ?? 0).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664)): ?>
<?php $attributes = $__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664; ?>
<?php unset($__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf71c875fb7323a7f8d9f1abd403e0664)): ?>
<?php $component = $__componentOriginalf71c875fb7323a7f8d9f1abd403e0664; ?>
<?php unset($__componentOriginalf71c875fb7323a7f8d9f1abd403e0664); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalf71c875fb7323a7f8d9f1abd403e0664 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.course-overview-card','data' => ['colorType' => 'warning','title' => 'Total Pending Amount','value' => '$'.e($reports['total_pending_amount'] ?? 0).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.course-overview-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['color-type' => 'warning','title' => 'Total Pending Amount','value' => '$'.e($reports['total_pending_amount'] ?? 0).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664)): ?>
<?php $attributes = $__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664; ?>
<?php unset($__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf71c875fb7323a7f8d9f1abd403e0664)): ?>
<?php $component = $__componentOriginalf71c875fb7323a7f8d9f1abd403e0664; ?>
<?php unset($__componentOriginalf71c875fb7323a7f8d9f1abd403e0664); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalf71c875fb7323a7f8d9f1abd403e0664 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.course-overview-card','data' => ['colorType' => 'success','title' => 'Total Paid Amount','value' => '$'.e($reports['total_paid_amount'] ?? 0).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.course-overview-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['color-type' => 'success','title' => 'Total Paid Amount','value' => '$'.e($reports['total_paid_amount'] ?? 0).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664)): ?>
<?php $attributes = $__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664; ?>
<?php unset($__attributesOriginalf71c875fb7323a7f8d9f1abd403e0664); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf71c875fb7323a7f8d9f1abd403e0664)): ?>
<?php $component = $__componentOriginalf71c875fb7323a7f8d9f1abd403e0664; ?>
<?php unset($__componentOriginalf71c875fb7323a7f8d9f1abd403e0664); ?>
<?php endif; ?>
        </div>
    </div>

    <div class="card">
        <?php if($payoutRequests->count() > 0): ?>
        <div class="overflow-x-auto scrollbar-table">
            <table
                class="table-auto w-full whitespace-nowrap text-left text-gray-500 dark:text-dark-text font-medium leading-none">
                <thead class="text-primary">
                    <tr>
                        <th
                            class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                            <?php echo e(translate('Payout ID')); ?>

                        </th>

                        <th
                            class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                            <?php echo e(translate('User')); ?>

                        </th>
                        <th
                            class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                            <?php echo e(translate('Amount')); ?>

                        </th>
                        <th
                            class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                            <?php echo e(translate('Date')); ?>

                        </th>
                   

                        <th
                        class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right w-10">
                        <?php echo e(translate('Status')); ?>

                    </th>
                    </tr>
                </thead>
                <tbody class="divide-y divide-gray-200 dark:divide-dark-border-three">
                    <?php $__currentLoopData = $payoutRequests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payoutRequest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $userInfo = $payoutRequest->user->userable ?? null;
                            $userTranslations = [];
                            $designationTranslations = [];
                            if ($userInfo) {
                                $userTranslations = parse_translation($userInfo);
                            }
                            $firstName = $userTranslations['first_name'] ?? ($userInfo?->first_name ?? '');
                            $lastName = $userTranslations['last_name'] ?? ($userInfo?->last_name ?? '');
                            $name = $userTranslations['name'] ?? ($userInfo?->name ?? '');
                        ?>
                        <tr>
                            <td class="px-3.5 py-4"> <h6 class="text-md leading-none"> <a href="#">#<?php echo e($payoutRequest->payout_number); ?></a> </h6></td>
                            <td class="px-3.5 py-4"> <h6 class="text-md leading-none"> 
                                 <p class="mb-1"> <b><?php echo e(translate('Name')); ?></b> :<?php if(isset( $userInfo?->first_name, $userInfo?->last_name)): ?>
                                    <?php echo e($firstName); ?>

                                    <?php echo e($lastName); ?>

                                 <?php else: ?>
                                   <?php echo e($name); ?>

                                 <?php endif; ?></p>
                               <p class="mb-1 text-sm"> <?php echo e($payoutRequest?->user?->email); ?></p>
                               <p class="text-sm"> <?php echo e($userInfo->phone); ?></p>
                            </h6></td>
                            <td class="px-3.5 py-4">$<?php echo e($payoutRequest->amount); ?></td>
                            <td class="px-3.5 py-4"><?php echo e(customDateFormate($payoutRequest->created_at, $format ='d M y h:i A')); ?></td>
                            <td class="px-3.5 py-4">
                                <?php if( $payoutRequest->status =='approved'): ?>
                                   <span class="badge b-outline badge-success-outline">  <?php echo e(translate( $payoutRequest->status)); ?></span>
                                <?php else: ?> 
                                <select name="status" class="select-status-change form-input form-select" data-action="<?php echo e(route('payout.status', ['id' => $payoutRequest->id ])); ?>">
                                    <option selected disabled><?php echo e(translate('Selected status Payout')); ?></option>
                                    <option value="pending" <?php echo e($payoutRequest->status =='pending' ? 'selected':''); ?>><?php echo e(translate('Pending')); ?></option>
                                    <option value="approved" <?php echo e($payoutRequest->status =='approved' ? 'selected':''); ?>><?php echo e(translate('Approved')); ?></option>
                                </select>
                                <?php endif; ?>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
        <?php echo e($payoutRequests->links('portal::admin.pagination.paginate')); ?>

        <?php else: ?> 
        <?php if (isset($component)) { $__componentOriginal5d13c2904e1f07d85da185576dbff28d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5d13c2904e1f07d85da185576dbff28d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.empty-card','data' => ['title' => 'No Payout Request']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.empty-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'No Payout Request']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5d13c2904e1f07d85da185576dbff28d)): ?>
<?php $attributes = $__attributesOriginal5d13c2904e1f07d85da185576dbff28d; ?>
<?php unset($__attributesOriginal5d13c2904e1f07d85da185576dbff28d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5d13c2904e1f07d85da185576dbff28d)): ?>
<?php $component = $__componentOriginal5d13c2904e1f07d85da185576dbff28d; ?>
<?php unset($__componentOriginal5d13c2904e1f07d85da185576dbff28d); ?>
<?php endif; ?>
        <?php endif; ?>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\admin\financial\payout\index.blade.php ENDPATH**/ ?>