File manager - Edit - /var/www/ratemypay_dev/storage/framework/views/cf6b44bcd762998aaaaffce330f91a9a.php
Back
<div x-show="requestAccess.open" x-cloak class="fixed inset-0 z-50 flex items-center justify-center p-4" @keydown.window.escape="requestAccess.open = false"> <div class="absolute inset-0 bg-black/40" @click="requestAccess.open = false"></div> <div x-show="requestAccess.open" x-cloak x-transition:enter="transition ease-out duration-150" x-transition:enter-start="opacity-0 scale-95" x-transition:enter-end="opacity-100 scale-100" class="relative w-full max-w-[520px] bg-white rounded-2xl shadow-2xl p-6 lg:p-8"> <div class="flex items-start justify-between mb-6"> <div class="flex items-center gap-4"> <span class="w-14 h-14 rounded-2xl flex items-center justify-center" :style="`background-color: ${requestAccess.iconBg}`"> <span x-html="requestAccess.icon"></span> </span> <h3 class="text-2xl font-bold text-[#101828]" x-text="requestAccess.name"></h3> </div> <button type="button" @click="requestAccess.open = false" class="w-8 h-8 rounded-full hover:bg-gray-100 flex items-center justify-center text-[#4A5565]"> <svg class="w-5 h-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/> </svg> </button> </div> <div class="rounded-xl border border-[#FDE68A] bg-[#FFFBEB] px-4 py-3 mb-6 flex items-start gap-3"> <svg class="w-5 h-5 text-[#B45309] mt-0.5 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/> </svg> <div> <div class="text-sm font-semibold text-[#101828]">Access Required</div> <div class="text-sm text-[#4A5565] mt-0.5"> You need admin approval to access this solution. Submit your request below. </div> </div> </div> <form action="#" method="POST" class="flex flex-col gap-4" x-data="{ submitting: false, flashSuccess: '', flashError: '' }" @submit.prevent=" submitting = true; flashSuccess = ''; flashError = ''; fetch('<?php echo e(route('business.solutions.request-access')); ?>', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-CSRF-TOKEN': document.querySelector('meta[name=csrf-token]').content, 'Accept': 'application/json', }, body: JSON.stringify({ solution: requestAccess.name, message: $el.querySelector('[name=message]').value, }) }) .then(r => r.json()) .then(data => { if (data.success) { flashSuccess = data.message; setTimeout(() => { requestAccess.open = false; window.location.reload(); }, 2000); } else { flashError = data.message; } }) .catch(() => { flashError = 'Something went wrong. Please try again.'; }) .finally(() => { submitting = false; }); "> <?php echo csrf_field(); ?> <input type="hidden" name="solution" :value="requestAccess.name"> <div x-show="flashSuccess" x-cloak class="rounded-xl border border-[#BBF7D0] bg-[#F0FDF4] px-4 py-3 text-sm text-[#166534]" x-text="flashSuccess"></div> <div x-show="flashError" x-cloak class="rounded-xl border border-[#FCA5A5] bg-[#FEF2F2] px-4 py-3 text-sm text-[#B91C1C]" x-text="flashError"></div> <div> <label class="block text-sm font-semibold text-[#101828] mb-2">Message to Admin (Optional)</label> <textarea name="message" rows="4" placeholder="Explain why you need access to this solution..." class="w-full rounded-xl border border-[#E5E7EB] focus:outline-none focus:ring-2 focus:ring-[#2F3D7E]/20 focus:border-[#2F3D7E] text-sm px-4 py-3 resize-none"></textarea> </div> <div class="grid grid-cols-2 gap-3 mt-2"> <button type="button" class="h-12 rounded-xl border border-[#2F3D7E] text-[#2F3D7E] font-semibold text-sm hover:bg-[#EEF1F7] transition"> Learn More </button> <button type="submit" :disabled="submitting" class="h-12 rounded-xl bg-[#2F3D7E] hover:bg-[#1E2858] text-white font-semibold text-sm transition flex items-center justify-center gap-2 disabled:opacity-60"> <svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/> </svg> Request Access </button> </div> <button type="button" @click="requestAccess.open = false" class="text-center text-sm text-[#4A5565] hover:text-[#101828] mt-1">Cancel</button> <p class="text-xs text-[#94A3B8] text-center"> Your request will be sent to the account administrator for approval </p> </form> </div> </div> <?php /**PATH /var/www/ratemypay_dev/resources/views/business/dashboard/partials/request-access-modal.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings