<?php $__env->startSection('title', 'My Profile'); ?>

<?php $__env->startSection('content'); ?>
<section class="mx-auto max-w-5xl px-4 py-10 sm:px-6">
    <?php echo $__env->make('account.partials.nav', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <?php if($errors->any()): ?>
        <div class="mb-5 rounded-2xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-800">
            <ul class="list-inside list-disc"><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><li><?php echo e($error); ?></li><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></ul>
        </div>
    <?php endif; ?>

    <form method="POST" action="<?php echo e(route('account.profile.update')); ?>" class="max-w-xl space-y-5 rounded-3xl bg-white p-6 shadow-sm ring-1 ring-slate-200 sm:p-8">
        <?php echo csrf_field(); ?>
        <label class="block"><span class="mb-1 block text-xs font-bold uppercase tracking-wide text-slate-500">Full name</span>
            <input name="name" value="<?php echo e(old('name', auth()->user()->name)); ?>" required class="w-full rounded-xl border-slate-200"></label>
        <label class="block"><span class="mb-1 block text-xs font-bold uppercase tracking-wide text-slate-500">Email</span>
            <input value="<?php echo e(auth()->user()->email); ?>" disabled class="w-full rounded-xl border-slate-200 bg-stone-50 text-slate-400"></label>
        <label class="block"><span class="mb-1 block text-xs font-bold uppercase tracking-wide text-slate-500">Phone</span>
            <input name="phone" value="<?php echo e(old('phone', auth()->user()->phone)); ?>" class="w-full rounded-xl border-slate-200"></label>
        <label class="block"><span class="mb-1 block text-xs font-bold uppercase tracking-wide text-slate-500">Address</span>
            <input name="address" value="<?php echo e(old('address', auth()->user()->address)); ?>" class="w-full rounded-xl border-slate-200"></label>
        <div class="border-t border-slate-100 pt-5">
            <p class="mb-3 text-sm font-bold text-slate-700">Change password <span class="font-normal text-slate-400">(optional)</span></p>
            <div class="grid gap-4 sm:grid-cols-2">
                <label><span class="mb-1 block text-xs font-bold uppercase tracking-wide text-slate-500">New password</span>
                    <input type="password" name="password" minlength="8" class="w-full rounded-xl border-slate-200"></label>
                <label><span class="mb-1 block text-xs font-bold uppercase tracking-wide text-slate-500">Confirm</span>
                    <input type="password" name="password_confirmation" class="w-full rounded-xl border-slate-200"></label>
            </div>
        </div>
        <button class="rounded-xl bg-slate-950 px-6 py-3 text-sm font-bold text-white hover:bg-slate-800">Save changes</button>
    </form>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.site', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\wamp64\www\hms\resources\views/account/profile.blade.php ENDPATH**/ ?>