<?php echo $__env->make('layouts.header', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<main>
<div class="mb-4 pb-4"></div>
<section class="login-register container mb-5">
<h2 class="d-none">User Profile</h2>
<ul class="nav nav-tabs mb-5" id="login_register" role="tablist">
<li class="nav-item" role="presentation">
<a class="nav-link nav-link_underscore" id="register-tab" data-bs-toggle="tab" href="#tab-item-register" role="tab" aria-controls="tab-item-register" aria-selected="false">User Profile</a>
</li>
</ul>
<div class="tab-content pt-2" id="login_register_tab_content">
<!--<div class="tab-pane fade" id="tab-item-register" role="tabpanel" aria-labelledby="register-tab">-->
    <div class="register-form">

        <?php if(session('success')): ?>
        <div class="alert alert-success" style="padding-top: 10px; padding-bottom: 10px;">
            <?php echo e(session('success')); ?>

        </div> 
         <?php elseif(session('error')): ?>
        <div class="alert alert-danger" style="padding-top: 10px; padding-bottom: 10px;">
            <?php echo e(session('error')); ?>

        </div>
        <?php endif; ?>

    <form action="<?php echo e(route('update.account', $user->id)); ?>" method="POST" class="needs-validation" novalidate>
     <?php echo csrf_field(); ?>   
    <div class="form-floating mb-3">
    <input name="name" type="text" class="form-control form-control_gray" id="customerNameRegisterInput" placeholder="Username" value="<?php echo e($user->name); ?>" >
    <label for="customerNameRegisterInput">Username</label>
    <?php if($errors->has('name')): ?>
        <p class="text-danger"><?php echo e($errors->first('name')); ?></p>
    <?php endif; ?>
    </div>
    <div class="pb-3"></div>
    
    <div class="form-floating mb-3">
    <input name="email" type="email" class="form-control form-control_gray" id="customerEmailRegisterInput" value="<?php echo e($user->email); ?>" placeholder="Email address *">
    <label for="customerEmailRegisterInput">Email address *</label>
    <?php if($errors->has('email')): ?>
        <p class="text-danger"><?php echo e($errors->first('email')); ?></p>
    <?php endif; ?>
    </div>

    <div class="pb-3"></div>
    <div class="form-floating mb-3">
    <input name="mobile" type="tel" class="form-control form-control_gray" id="customerPasswodRegisterInput" placeholder="Mobile *" value="<?php echo e($user->mobile); ?>" pattern="[0-9]{10}" maxlength="10">
    <label for="customerPasswodRegisterInput">Mobile *</label>
    <?php if($errors->has('mobile')): ?>
        <p class="text-danger"><?php echo e($errors->first('mobile')); ?></p>
    <?php endif; ?>
    </div>

    <button class="btn btn-primary w-100 text-uppercase" type="submit">Update</button>
    </form>
    </div>
<!--</div>-->
</div>
</section>
</main>
 
<?php echo $__env->make('layouts.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/hubto/public_html/griffin/resources/views/my-account.blade.php ENDPATH**/ ?>