

<?php $__env->startSection('content'); ?>
<div class="min-h-screen bg-gray-50 flex flex-col font-sans pb-28 w-full overflow-x-hidden relative">
      <main class="flex-1 max-w-2xl mx-auto w-full pb-8">
        
        <div class="bg-gray-900 rounded-b-[2.5rem] p-6 pt-8 text-white shadow-xl relative overflow-hidden">
          <div class="absolute top-0 right-0 w-64 h-64 bg-[#109E38]/20 rounded-full blur-3xl -translate-y-1/2 translate-x-1/3"></div>
          
          <div class="flex items-center gap-5 relative z-10">
            <div class="relative">
              <div class="w-24 h-24 rounded-full bg-white p-1 shadow-lg">
                <img src="https://api.dicebear.com/7.x/avataaars/svg?seed=Instafix&backgroundColor=b6e3f4" alt="Profile" class="w-full h-full rounded-full object-cover bg-gray-100" />
              </div>
              <button class="absolute bottom-0 right-0 bg-[#109E38] p-2 rounded-full border-2 border-white shadow-md hover:scale-110 transition-transform">
                <i data-lucide="camera" class="w-4 h-4 text-white"></i>
              </button>
            </div>

            <div class="flex-1">
              <div class="flex items-center gap-2 mb-1">
                <h1 class="text-2xl font-black text-white leading-tight"><?php echo e($user->name ?? 'Partner'); ?></h1>
                <i data-lucide="badge-check" class="w-5 h-5 text-blue-400"></i>
              </div>
              <p class="text-sm font-bold text-gray-300">ID: IFX-<?php echo e($user->id ?? '0000'); ?></p>
              <p class="text-xs font-bold text-[#109E38] bg-green-900/40 px-2 py-1 rounded-md inline-block mt-2 border border-[#109E38]/30">
                💎 Diamond Partner
              </p>
            </div>
          </div>

          <div class="grid grid-cols-3 gap-3 mt-6 pt-6 border-t border-gray-700/50">
            <div class="text-center">
              <div class="flex items-center justify-center gap-1 text-yellow-400 mb-1">
                <i data-lucide="star" class="w-4 h-4 fill-current"></i> <span class="font-black text-lg">4.8</span>
              </div>
              <p class="text-[10px] text-gray-400 font-bold uppercase">Rating</p>
            </div>
            <div class="text-center border-x border-gray-700/50">
              <div class="text-white font-black text-lg mb-1">240+</div>
              <p class="text-[10px] text-gray-400 font-bold uppercase">Jobs Done</p>
            </div>
            <div class="text-center">
              <div class="text-[#109E38] font-black text-lg mb-1">98%</div>
              <p class="text-[10px] text-gray-400 font-bold uppercase">Acceptance</p>
            </div>
          </div>
        </div>

        <div class="px-4 mt-6 space-y-6">
          
          <div>
            <h3 class="text-sm font-black text-gray-400 uppercase tracking-wider mb-3 px-2">Work Setup</h3>
            <div class="bg-white rounded-3xl p-2 shadow-sm border border-gray-100 space-y-1">
              <button onclick="openModal('modal-areas')" class="w-full flex items-center justify-between p-4 hover:bg-gray-50 rounded-2xl transition-colors">
                <div class="flex items-center gap-3">
                  <div class="bg-red-50 p-2 rounded-lg"><i data-lucide="map-pin" class="w-5 h-5 text-red-500"></i></div>
                  <div class="text-left">
                    <p class="font-black text-gray-900 text-sm">Service Areas</p>
                    <p class="text-xs font-bold text-gray-500 truncate max-w-[200px]">Laxmi Nagar, Geeta Colony</p>
                  </div>
                </div>
                <i data-lucide="chevron-right" class="w-5 h-5 text-gray-300"></i>
              </button>

              <button onclick="openModal('modal-hours')" class="w-full flex items-center justify-between p-4 hover:bg-gray-50 rounded-2xl transition-colors border-t border-gray-50">
                <div class="flex items-center gap-3">
                  <div class="bg-blue-50 p-2 rounded-lg"><i data-lucide="clock" class="w-5 h-5 text-blue-500"></i></div>
                  <div class="text-left">
                    <p class="font-black text-gray-900 text-sm">Working Hours</p>
                    <p id="workHoursText" class="text-xs font-bold text-gray-500">09:00 AM - 08:00 PM</p>
                  </div>
                </div>
                <i data-lucide="chevron-right" class="w-5 h-5 text-gray-300"></i>
              </button>
            </div>
          </div>

          <div>
            <h3 class="text-sm font-black text-gray-400 uppercase tracking-wider mb-3 px-2">Finance & Identity</h3>
            <div class="bg-white rounded-3xl p-2 shadow-sm border border-gray-100 space-y-1">
              <a href="/earnings" class="w-full flex items-center justify-between p-4 hover:bg-gray-50 rounded-2xl transition-colors">
                <div class="flex items-center gap-3">
                  <div class="bg-[#109E38]/10 p-2 rounded-lg"><i data-lucide="wallet" class="w-5 h-5 text-[#109E38]"></i></div>
                  <span class="font-black text-gray-900 text-sm">Wallet & Payouts</span>
                </div>
                <i data-lucide="chevron-right" class="w-5 h-5 text-gray-300"></i>
              </a>

              <button onclick="openModal('modal-upi')" class="w-full flex items-center justify-between p-4 hover:bg-gray-50 rounded-2xl transition-colors border-t border-gray-50">
                <div class="flex items-center gap-3">
                  <div class="bg-indigo-50 p-2 rounded-lg"><i data-lucide="qr-code" class="w-5 h-5 text-indigo-600"></i></div>
                  <div class="text-left">
                    <p class="font-black text-gray-900 text-sm">UPI & Payment Details</p>
                    <p class="text-xs font-bold text-green-600 flex items-center gap-1"><i data-lucide="check-circle-2" class="w-3 h-3"></i> rahul@ybl</p>
                  </div>
                </div>
                <i data-lucide="chevron-right" class="w-5 h-5 text-gray-300"></i>
              </button>
            </div>
          </div>

          <div class="pt-4 pb-8">
            <a href="/" class="w-full bg-red-50 hover:bg-red-100 text-red-600 font-black text-sm p-4 rounded-2xl flex items-center justify-center gap-2 border border-red-100">
              <i data-lucide="log-out" class="w-5 h-5"></i> Log Out of Instafix24
            </a>
          </div>
        </div>
      </main>

      <div id="modal-overlay" class="hidden fixed inset-0 z-[100] bg-black/60 backdrop-blur-sm flex items-end justify-center md:items-center sm:p-4">
        <div class="bg-white w-full max-w-md rounded-t-3xl md:rounded-3xl shadow-2xl overflow-hidden flex flex-col max-h-[85vh]">
            
            <div class="px-6 py-4 border-b border-gray-100 flex justify-between items-center bg-gray-50">
              <h2 id="modal-title" class="text-lg font-black text-gray-900">Manage</h2>
              <button onclick="closeModal()" class="p-2 bg-gray-200 hover:bg-gray-300 rounded-full transition-colors"><i data-lucide="x" class="w-5 h-5 text-gray-600"></i></button>
            </div>

            <div id="modal-content" class="p-6 overflow-y-auto">
                </div>
        </div>
      </div>

    <script>
        function openModal(type) {
            const overlay = document.getElementById('modal-overlay');
            const title = document.getElementById('modal-title');
            const content = document.getElementById('modal-content');
            
            overlay.classList.remove('hidden');

            if(type === 'modal-hours') {
                title.innerText = "Working Hours";
                content.innerHTML = `
                    <div class="space-y-4">
                        <div>
                            <label class="text-xs font-black text-gray-500 uppercase tracking-wider">Start Time</label>
                            <input type="time" id="timeStart" value="09:00" class="w-full mt-1 border-2 border-gray-200 rounded-xl px-4 py-3 text-sm font-bold focus:border-[#109E38] outline-none" />
                        </div>
                        <div>
                            <label class="text-xs font-black text-gray-500 uppercase tracking-wider">End Time</label>
                            <input type="time" id="timeEnd" value="20:00" class="w-full mt-1 border-2 border-gray-200 rounded-xl px-4 py-3 text-sm font-bold focus:border-[#109E38] outline-none" />
                        </div>
                        <button onclick="closeModal()" class="w-full h-12 mt-4 bg-[#109E38] text-white font-black rounded-xl">Save Timing</button>
                    </div>`;
            } else if(type === 'modal-upi') {
                title.innerText = "Payout Details";
                content.innerHTML = `
                    <div class="space-y-4">
                        <div>
                            <label class="text-xs font-black text-gray-500 uppercase tracking-wider">UPI ID (VPA)</label>
                            <input type="text" value="rahul@ybl" class="w-full mt-1 border-2 border-gray-200 rounded-xl px-4 py-3 text-sm font-bold focus:border-[#109E38] outline-none" />
                        </div>
                        <div class="mt-4 border-2 border-dashed border-gray-300 rounded-2xl p-6 flex flex-col items-center justify-center text-center bg-gray-50">
                            <i data-lucide="qr-code" class="w-12 h-12 text-gray-400 mb-2"></i>
                            <p class="text-sm font-black text-gray-700">Payment QR Code</p>
                            <button onclick="closeModal()" class="mt-4 bg-white border border-gray-200 text-gray-700 text-xs font-black px-4 py-2 rounded-lg flex items-center gap-2 shadow-sm">
                                <i data-lucide="upload" class="w-4 h-4"></i> Upload New QR
                            </button>
                        </div>
                    </div>`;
            } else if(type === 'modal-areas') {
                title.innerText = "Manage Service Areas";
                content.innerHTML = `
                    <p class="text-sm text-gray-600 font-bold mb-4">Current Areas: Laxmi Nagar, Geeta Colony</p>
                    <button onclick="closeModal()" class="w-full h-12 mt-4 bg-[#109E38] text-white font-black rounded-xl">Close</button>
                `;
            }
            lucide.createIcons();
        }

        function closeModal() {
            document.getElementById('modal-overlay').classList.add('hidden');
        }
    </script>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.tech', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Asus\OneDrive\Documents\instafix24-app\resources\views/technician/dashboard.blade.php ENDPATH**/ ?>