관리-도구
편집 파일: 0980726586320f8b58b0c5cdfeb95ca6.php
<?php $backendSetting = get_theme_option(key: 'backend_general') ?? null; $currency = $backendSetting['currency'] ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); ?> <?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('Sale/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' => 'Sale Report','pageTo' => 'Sale']] + (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' => 'Sale Report','page-to' => 'Sale']); ?> <?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 Sale','value' => ''.e($currencySymbol).''.e($reports['total_sales'] ?? 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 Sale','value' => ''.e($currencySymbol).''.e($reports['total_sales'] ?? 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' => 'Platform Fee','value' => ''.e($currencySymbol).''.e($reports['total_platform_fee'] ?? 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' => 'Platform Fee','value' => ''.e($currencySymbol).''.e($reports['total_platform_fee'] ?? 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 Course Sale','value' => ''.e($currencySymbol).''.e($reports['total_course_sale'] ?? 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 Course Sale','value' => ''.e($currencySymbol).''.e($reports['total_course_sale'] ?? 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' => 'primary','title' => 'Total Bundle Sale','value' => ''.e($currencySymbol).''.e($reports['total_bundle_sale'] ?? 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 Bundle Sale','value' => ''.e($currencySymbol).''.e($reports['total_bundle_sale'] ?? 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"> <div class="overflow-x-auto scrollbar-table"> <?php if(count($sales) > 0): ?> <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('Purchase 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('Student')); ?> </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('Instructor')); ?> </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('Platform Fee')); ?> </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('Discount Price')); ?> </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('Price')); ?> </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('Item')); ?> </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('Sales Type')); ?> </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('Purchase 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"> <?php echo e(translate('Payment Method')); ?> </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('Payment Status')); ?> </th> </tr> </thead> <tbody class="divide-y divide-gray-200 dark:divide-dark-border-three"> <?php $__currentLoopData = $sales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $studentInfo = $sale->user->userable ?? null; $studentTranslations = []; if ($studentInfo) { $studentTranslations = parse_translation($studentInfo); } $firstName = $studentTranslations['first_name'] ?? ($studentInfo?->first_name ?? ''); $lastName = $studentTranslations['last_name'] ?? ($studentInfo?->last_name ?? ''); $instructors = $sale->course->instructors ?? []; $courseTranslations = parse_translation($sale?->course); $bundleTranslations = parse_translation($sale?->courseBundle); $courseTitle = $courseTranslations['title'] ?? $sale?->course?->title; $bundleTitle = $bundleTranslations['title'] ?? $sale?->courseBundle?->title; $itemId = $sale?->course->id ?? ($sale?->courseBundle?->id ?? 0); ?> <tr> <td class="px-3.5 py-4"> #<?php echo e($sale->purchase_number); ?> </td> <td class="px-3.5 py-4"> <div class="flex items-center gap-3.5"> <div> <h6 class="leading-none text-heading dark:text-white font-semibold capitalize"> <a href="#"> <?php echo e($firstName . ' ' . $lastName); ?> </a> </h6> <p class="mb-1 text-sm"> <?php echo e($studentInfo?->user?->email); ?></p> <p class="text-sm"><?php echo e($studentInfo->phone); ?></p> </div> </div> </td> <td class="px-3.5 py-4"> <div class="flex items-center gap-3.5"> <?php $__currentLoopData = $instructors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $instructor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $instructorInfo = $instructor->userable ?? null; $instructorTranslations = []; if ($studentInfo) { $instructorTranslations = parse_translation($instructorInfo); } $firstName = $instructorTranslations['first_name'] ?? ($studentInfo?->first_name ?? ''); $lastName = $instructorTranslations['last_name'] ?? ($studentInfo?->last_name ?? ''); ?> <div> <h6 class="leading-none text-heading dark:text-white font-semibold capitalize"> <a href="#"> <?php echo e($firstName . ' ' . $lastName); ?> </a> </h6> <p class="mb-1 text-sm"> <?php echo e($instructorInfo?->user?->email); ?></p> <p class="text-sm"><?php echo e($instructorInfo->phone); ?></p> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </td> <td class="px-3.5 py-4"> <?php echo e($currencySymbol); ?><?php echo e($sale?->platform_fee); ?></td> <td class="px-3.5 py-4"> <?php echo e($currencySymbol); ?><?php echo e($sale?->discount_price); ?></td> <td class="px-3.5 py-4"> <?php if($sale?->price): ?> <?php echo e($currencySymbol); ?><?php echo e($sale?->price); ?> <?php else: ?> <?php echo e(translate('Free')); ?> <?php endif; ?> </td> <td class="px-3.5 py-4"> <?php echo e(str_limit($courseTitle ?? $bundleTitle, 20)); ?> <p class="text-sm mt-1"> <?php echo e(translate('Item Id')); ?> :#<?php echo e($itemId); ?></p> </td> <td class="px-3.5 py-4"> <?php echo e(translate($sale->purchase_type ?? '')); ?> </td> <td class="px-3.5 py-4"> <?php echo e(customDateFormate($sale->updated_at, $format = 'd M y h:i A')); ?></td> <td class="px-3.5 py-4"> <?php echo e(translate($sale?->purchase?->payment_method)); ?></td> <td class="px-3.5 py-4"> <?php echo e(translate($sale?->purchase?->status)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <?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 Sale Course']] + (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 Sale Course']); ?> <?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> </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\organization\financial\sale\index.blade.php ENDPATH**/ ?>