Viewing file: 4aae1567753230a7035676e8de51581d.php (24.94 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="mx-auto flex flex-col gap-6 py-6 rounded-xl border border-gray-100 w-full max-w-[424px] shadow-[0px_4px_8px_0px_rgba(28,33,38,0.08)]"> <div class="px-6 flex items-center gap-4"> <img class="w-20 h-20 rounded-full object-cover" src="<?php echo e($user->image_url); ?>" alt=""> <div class="flex flex-col gap-1"> <h3 class="heading-06 text-gray-900"> <?php echo e($user->name); ?></h3> <p class="body-md-400 text-gray-600"><?php echo e(__('member_since')); ?> <?php echo e($user->created_at->format('M, Y')); ?></p>
<?php if(hasMemberBadge($user->id)): ?> <span class="flex items-center gap-[0.25rem] caption-04 text-success-500"> <?php if (isset($component)) { $__componentOriginalb9904c2fedb68e49344fb792ca92a266 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb9904c2fedb68e49344fb792ca92a266 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.check-badge','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.check-badge'); ?> <?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($__attributesOriginalb9904c2fedb68e49344fb792ca92a266)): ?> <?php $attributes = $__attributesOriginalb9904c2fedb68e49344fb792ca92a266; ?> <?php unset($__attributesOriginalb9904c2fedb68e49344fb792ca92a266); ?> <?php endif; ?> <?php if (isset($__componentOriginalb9904c2fedb68e49344fb792ca92a266)): ?> <?php $component = $__componentOriginalb9904c2fedb68e49344fb792ca92a266; ?> <?php unset($__componentOriginalb9904c2fedb68e49344fb792ca92a266); ?> <?php endif; ?> <?php echo e(__('verified_customer')); ?>
</span> <?php endif; ?>
</div> </div>
<?php if($user->web): ?> <div class="w-full"> <a href="<?php echo e($user->web); ?>" class="bg-primary-50 hover:bg-primary-500 transition-all duration-300 px-6 py-3 text-primary-500 hover:text-white w-full flex items-center gap-2 heading-07" style="border-bottom: 2px solid var(--primary-500);"> <?php if (isset($component)) { $__componentOriginal09d51d3590e02146431219e872821c63 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal09d51d3590e02146431219e872821c63 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.arrow-square-up','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.arrow-square-up'); ?> <?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($__attributesOriginal09d51d3590e02146431219e872821c63)): ?> <?php $attributes = $__attributesOriginal09d51d3590e02146431219e872821c63; ?> <?php unset($__attributesOriginal09d51d3590e02146431219e872821c63); ?> <?php endif; ?> <?php if (isset($__componentOriginal09d51d3590e02146431219e872821c63)): ?> <?php $component = $__componentOriginal09d51d3590e02146431219e872821c63; ?> <?php unset($__componentOriginal09d51d3590e02146431219e872821c63); ?> <?php endif; ?> <span><?php echo e($user->web); ?></span> </a> </div> <?php endif; ?>
<?php if($user->bio): ?> <div class="p-6 pt-0 border-b flex flex-col gap-2 border-b-gray-100"> <h6 class="heading-07 text-gray-900"><?php echo e(__('about_seller')); ?></h6> <p class="body-md-400 text-gray-700"><?php echo e($user->bio); ?></p> </div> <?php endif; ?>
<div class="px-[1.5rem] space-y-[0.75rem] w-full"> <h6 class="heading-07 text-gray-900"><?php echo e(__('contact_information')); ?></h6> <div class="divide-y divide-gray-100">
<?php if($user->phone): ?> <div class="flex items-start space-x-[0.75rem] pb-[1rem]"> <span> <?php if (isset($component)) { $__componentOriginal25294fd395bf31c45cbb06fc58fde840 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal25294fd395bf31c45cbb06fc58fde840 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.phone-blue','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.phone-blue'); ?> <?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($__attributesOriginal25294fd395bf31c45cbb06fc58fde840)): ?> <?php $attributes = $__attributesOriginal25294fd395bf31c45cbb06fc58fde840; ?> <?php unset($__attributesOriginal25294fd395bf31c45cbb06fc58fde840); ?> <?php endif; ?> <?php if (isset($__componentOriginal25294fd395bf31c45cbb06fc58fde840)): ?> <?php $component = $__componentOriginal25294fd395bf31c45cbb06fc58fde840; ?> <?php unset($__componentOriginal25294fd395bf31c45cbb06fc58fde840); ?> <?php endif; ?> </span> <div class="space-y-[0.13rem]"> <small class="body-xs-500 text-gray-500 leading-[1rem] uppercase"><?php echo e(__('phone_number')); ?></small> <p class="body-md-500 leading-[1.5rem] text-gray-900"><?php echo e($user->phone); ?></p> </div> </div> <?php endif; ?>
<?php if($user->email): ?> <div class="flex items-start space-x-[0.75rem] py-[1rem]"> <span> <?php if (isset($component)) { $__componentOriginal1f72a98195135ac98c60a7b439b2a338 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1f72a98195135ac98c60a7b439b2a338 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.email-blue','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.email-blue'); ?> <?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($__attributesOriginal1f72a98195135ac98c60a7b439b2a338)): ?> <?php $attributes = $__attributesOriginal1f72a98195135ac98c60a7b439b2a338; ?> <?php unset($__attributesOriginal1f72a98195135ac98c60a7b439b2a338); ?> <?php endif; ?> <?php if (isset($__componentOriginal1f72a98195135ac98c60a7b439b2a338)): ?> <?php $component = $__componentOriginal1f72a98195135ac98c60a7b439b2a338; ?> <?php unset($__componentOriginal1f72a98195135ac98c60a7b439b2a338); ?> <?php endif; ?> </span> <div class="space-y-[0.13rem]"> <small class="body-xs-500 text-gray-500 leading-[1rem] uppercase"><?php echo e(__('email_address')); ?></small> <p class="body-md-500 leading-[1.5rem] text-gray-900"><?php echo e($user->email); ?></p> </div> </div> <?php endif; ?>
<?php if($user->address): ?> <div class="flex items-start space-x-[0.75rem] pt-[1rem]"> <span> <?php if (isset($component)) { $__componentOriginal0fac00e43455640d026b3b31f5d5f2cd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0fac00e43455640d026b3b31f5d5f2cd = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.map-blue','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.map-blue'); ?> <?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($__attributesOriginal0fac00e43455640d026b3b31f5d5f2cd)): ?> <?php $attributes = $__attributesOriginal0fac00e43455640d026b3b31f5d5f2cd; ?> <?php unset($__attributesOriginal0fac00e43455640d026b3b31f5d5f2cd); ?> <?php endif; ?> <?php if (isset($__componentOriginal0fac00e43455640d026b3b31f5d5f2cd)): ?> <?php $component = $__componentOriginal0fac00e43455640d026b3b31f5d5f2cd; ?> <?php unset($__componentOriginal0fac00e43455640d026b3b31f5d5f2cd); ?> <?php endif; ?> </span> <div class="space-y-[0.13rem]"> <small class="body-xs-500 text-gray-500 leading-[1rem] uppercase"><?php echo e(__('address')); ?></small> <p class="body-md-500 leading-[1.5rem] text-gray-900"><?php echo e($user->address); ?></p> </div> </div> <?php endif; ?>
</div> </div>
<!-- Report Seller Button If Authenticated --> <?php if(auth('user')->check() && $user->id != auth('user')->id()): ?> <button type="button" data-modal-target="report-seller-modal" data-modal-toggle="report-seller-modal" class="flex items-center text-gray-400 mody-md-500 gap-3 w-full px-6"> <?php if (isset($component)) { $__componentOriginal43dde6d26da4928deb5d0cb81288b60c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal43dde6d26da4928deb5d0cb81288b60c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.warning','data' => []] + (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([]); ?> <?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; ?> <?php echo e(__('report_seller')); ?>
</button> <form action="<?php echo e(route('block.user')); ?>" method="POST" class=" ml-3" style="margin-left:20px" id="blockUserForm"> <?php echo csrf_field(); ?> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> <button type="submit" class="inline-flex justify-center items-center"> <span class="icon mr-1"> <?php if (isset($component)) { $__componentOriginal235008fb128550479ff6d72ea3e41fa8 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal235008fb128550479ff6d72ea3e41fa8 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.block','data' => ['stroke' => '#FF0000']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.block'); ?> <?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' => '#FF0000']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal235008fb128550479ff6d72ea3e41fa8)): ?> <?php $attributes = $__attributesOriginal235008fb128550479ff6d72ea3e41fa8; ?> <?php unset($__attributesOriginal235008fb128550479ff6d72ea3e41fa8); ?> <?php endif; ?> <?php if (isset($__componentOriginal235008fb128550479ff6d72ea3e41fa8)): ?> <?php $component = $__componentOriginal235008fb128550479ff6d72ea3e41fa8; ?> <?php unset($__componentOriginal235008fb128550479ff6d72ea3e41fa8); ?> <?php endif; ?> </span> <?php echo e(__('Block User')); ?>
</button> </form> <script> document.getElementById('blockUserForm').addEventListener('submit', function(event) { event.preventDefault(); if (confirm('Are you sure you want to block this user?')) { this.submit(); } }); </script>
<!-- Modal Start --> <div id="report-seller-modal" tabindex="-1" aria-hidden="true" class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-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"> <!-- Modal content --> <div class="relative bg-white rounded-lg shadow"> <form action="<?php echo e(route('frontend.seller.report')); ?>" method="post" class="report-modal-form"> <?php echo csrf_field(); ?> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> <input type="hidden" name="username" value="<?php echo e($user->username); ?>">
<!-- 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_seller')); ?></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="report-seller-modal"> <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> <span class="sr-only">Close modal</span> </button> </div>
<!-- displaying flash messages --> <div class="flash-messages-report-seller px-4"></div>
<div class="p-4 space-y-4"> <label for="reasonn"><?php echo e(__('reason')); ?></label> <textarea name="reason" id="reasonn" required rows="6" class="<?php $__errorArgs = ['reason']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid border-danger <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> 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(__('type_report_description_here')); ?>"></textarea>
<?php $__errorArgs = ['reason']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class=" 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 p-4 md:p-5 rounded-b "> <button id="submit-button" type="button" class="btn-primary"> <?php echo e(__('submit')); ?>
</button>
</div> </form> </div> </div> </div> <!-- Modal End --> <?php endif; ?> <!-- Report Seller Button If Authenticated -->
<!-- Report Seller Button If Unauthorize --> <?php if( !auth('user')->check() && $user->id != auth('user')->id()): ?> <a href="<?php echo e(route('users.login')); ?>" class="login_required flex items-center text-gray-400 mody-md-500 gap-3 w-full px-6"> <?php if (isset($component)) { $__componentOriginal43dde6d26da4928deb5d0cb81288b60c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal43dde6d26da4928deb5d0cb81288b60c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.warning','data' => []] + (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([]); ?> <?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; ?> <?php echo e(__('report_seller')); ?>
</a> <?php endif; ?> <!-- Report Seller Button If Unauthorize -->
</div>
<?php $__env->startPush('js'); ?> <script> // Reson modal script start $(document).ready(function() { $('#submit-button').click(function(e) { e.preventDefault();
var form = $('#report-seller-modal form'); var formData = form.serialize();
$.ajax({ type: 'POST', url: form.attr('action'), data: formData, success: function(data) { // Clear existing flash messages $('.flash-messages-report-seller').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-report-seller').append(successAlert);
// Optionally, you can clear the form or close the modal here $('#reasonn').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-report-seller').append(errorAlert); } }, error: function(xhr, status, error) { // Handle AJAX error $('.flash-messages-report-seller').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-report-seller').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-700"></div>') .append(errorText); // Append the error message to the flash-messages element $('.flash-messages-report-seller').append(errorAlert); } } }); }); }); // Reson modal script end </script> <?php $__env->stopPush(); ?> <?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/frontend/layouts/partials/seller-dashboard-sidebar.blade.php ENDPATH**/ ?>
|