<?php $__env->startSection('title', session('locale') == 'bn' ? 'প্রোফাইল' : 'Profile'); ?>
<?php $lang = session('locale', 'en'); ?>

<?php $__env->startSection('content'); ?>

    <div class="mb-8">
        <h1 class="text-3xl font-extrabold text-slate-800 dark:text-white tracking-tight"><?php echo e($lang == 'bn' ? 'প্রোফাইল সেটিং' : 'Profile Settings'); ?></h1>
        <p class="text-sm text-slate-500 dark:text-slate-400 mt-1"><?php echo e($lang == 'bn' ? 'আপনার ব্যক্তিগত তথ্য এবং পাসওয়ার্ড আপডেট করুন।' : 'Update your personal information and password.'); ?></p>
    </div>

    <?php if(session('success')): ?>
        <div class="bg-emerald-50 dark:bg-emerald-500/10 border border-emerald-200 dark:border-emerald-500/20 text-emerald-600 dark:text-emerald-400 px-4 py-3 rounded-xl mb-6 flex items-center gap-3 shadow-sm">
            <i class="fas fa-check-circle text-lg"></i> <?php echo e(session('success')); ?>

        </div>
    <?php endif; ?>
    <?php if(session('error')): ?>
        <div class="bg-red-50 dark:bg-red-500/10 border border-red-200 dark:border-red-500/20 text-red-600 dark:text-red-400 px-4 py-3 rounded-xl mb-6 flex items-center gap-3 shadow-sm">
            <i class="fas fa-exclamation-triangle text-lg"></i> <?php echo e(session('error')); ?>

        </div>
    <?php endif; ?>

    <div class="bg-white dark:bg-[#0f172a] border border-slate-200 dark:border-[#1e293b] rounded-2xl p-8 mb-8 shadow-sm flex items-center gap-6 relative overflow-hidden">
        <div class="absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-blue-500 to-indigo-600"></div>
        <div class="w-24 h-24 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center text-white text-4xl font-bold shadow-lg border-4 border-white dark:border-[#0f172a]">
            <?php echo e(strtoupper(substr($user->username, 0, 1))); ?>

        </div>
        <div>
            <h2 class="text-2xl font-extrabold text-slate-800 dark:text-white"><?php echo e($user->username); ?></h2>
            <div class="text-slate-500 dark:text-slate-400 mt-1 flex items-center gap-2"><i class="fas fa-envelope"></i> <?php echo e($user->email); ?></div>
            <div class="mt-3 bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 px-3 py-1 rounded-lg text-xs font-bold inline-block border border-emerald-200 dark:border-emerald-500/20">
                <i class="fas fa-circle text-[8px] mr-1"></i> Active Member
            </div>
        </div>
    </div>

    <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
        <div class="bg-white dark:bg-[#0f172a] border border-slate-200 dark:border-[#1e293b] rounded-2xl p-6 shadow-sm h-fit">
            <h3 class="text-lg font-bold text-slate-800 dark:text-white mb-6 border-b border-slate-200 dark:border-slate-700 pb-3 flex items-center gap-2">
                <i class="fas fa-user-edit text-blue-500"></i> <?php echo e($lang == 'bn' ? 'ব্যক্তিগত তথ্য' : 'Personal Information'); ?>

            </h3>
            <form action="<?php echo e(route('user.profile.update')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="space-y-4 mb-6">
                    <div>
                        <label class="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2">Username</label>
                        <input type="text" value="<?php echo e($user->username); ?>" class="w-full bg-slate-100 dark:bg-slate-800 border border-slate-200 dark:border-slate-700 text-slate-500 rounded-lg p-3 cursor-not-allowed" disabled>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2">Email Address</label>
                        <input type="email" value="<?php echo e($user->email); ?>" class="w-full bg-slate-100 dark:bg-slate-800 border border-slate-200 dark:border-slate-700 text-slate-500 rounded-lg p-3 cursor-not-allowed" disabled>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2">Phone Number</label>
                        <input type="text" name="phone" value="<?php echo e($user->phone); ?>" class="w-full bg-slate-50 dark:bg-[#1e293b] border border-slate-200 dark:border-[#334155] text-slate-800 dark:text-white rounded-lg focus:ring-blue-500 p-3 outline-none transition-colors" required>
                    </div>
                </div>
                <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 rounded-xl shadow-lg shadow-blue-500/30 transition-all hover:scale-[1.02]">
                    <?php echo e($lang == 'bn' ? 'আপডেট করুন' : 'Update Profile'); ?>

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

        <div class="bg-white dark:bg-[#0f172a] border border-slate-200 dark:border-[#1e293b] rounded-2xl p-6 shadow-sm h-fit">
            <h3 class="text-lg font-bold text-slate-800 dark:text-white mb-6 border-b border-slate-200 dark:border-slate-700 pb-3 flex items-center gap-2">
                <i class="fas fa-lock text-purple-500"></i> <?php echo e($lang == 'bn' ? 'পাসওয়ার্ড পরিবর্তন' : 'Change Password'); ?>

            </h3>
            <form action="<?php echo e(route('user.profile.password')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <div class="space-y-4 mb-6">
                    <div>
                        <label class="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2">Current Password</label>
                        <input type="password" name="current_password" class="w-full bg-slate-50 dark:bg-[#1e293b] border border-slate-200 dark:border-[#334155] text-slate-800 dark:text-white rounded-lg focus:ring-purple-500 p-3 outline-none transition-colors" required>
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2">New Password</label>
                        <input type="password" name="new_password" class="w-full bg-slate-50 dark:bg-[#1e293b] border border-slate-200 dark:border-[#334155] text-slate-800 dark:text-white rounded-lg focus:ring-purple-500 p-3 outline-none transition-colors" required minlength="6">
                    </div>
                    <div>
                        <label class="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2">Confirm New Password</label>
                        <input type="password" name="confirm_password" class="w-full bg-slate-50 dark:bg-[#1e293b] border border-slate-200 dark:border-[#334155] text-slate-800 dark:text-white rounded-lg focus:ring-purple-500 p-3 outline-none transition-colors" required minlength="6">
                    </div>
                </div>
                <button type="submit" class="w-full bg-slate-800 hover:bg-slate-900 dark:bg-purple-600 dark:hover:bg-purple-700 text-white font-bold py-3 rounded-xl shadow-lg transition-all hover:scale-[1.02]">
                    <?php echo e($lang == 'bn' ? 'পরিবর্তন করুন' : 'Change Password'); ?>

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

<?php $__env->stopSection(); ?>

<?php echo $__env->make('user.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/anstserv/shop.bd1b.com/resources/views/user/profile.blade.php ENDPATH**/ ?>