

<?php $__env->startSection('title', trans('user.views.index.title')); ?>

<?php $__env->startSection('content'); ?>
<div class="tp-dashboard-head"><!-- page header -->
  <div class="container">
    <div class="row">
      <div class="col-md-12 profile-header">
        <div class="profile-pic col-md-2">
          <?php if($user->logo != null): ?>

          <img src="<?php echo e($user->logo_thumb); ?>" alt="" class="img-circle">
          <?php else: ?>
          <img src="<?php echo e(asset('images/couple-profile.jpg')); ?>" alt="" class="img-circle">
          <?php endif; ?>
        </div>
        <div class="profile-info col-md-9">
          <h1 class="profile-title"><?php echo e($user->name); ?><small>#</small></h1>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- /.page header -->
<div class="tp-dashboard-nav">
  <div class="container">
    <div class="row">
      <div class="col-md-12 dashboard-nav">
          <?php echo $__env->make('vendor._partials.navigation', ['_active_navigation' => 'profile.edit'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
      </div>
    </div>
  </div>
</div>
<div class="main-container">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <div class="dashboard-page-head">
          <div class="page-header">
            <h1>Detalii cont <small>Schimba datele tale personale</small></h1>
            <?php echo $__env->make('vendor._partials.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

            <?php echo Notification::showAll(); ?>

            <?php if(is_null($user->password)): ?>
                <div class="alert alert-info">
                    <?php echo e(trans('user.views.index.no_password')); ?>

                </div>
            <?php endif; ?>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12 profile-dashboard">
        <div class="row">
          <div class="col-md-7 dashboard-form calender">
            <form method="POST" class="form-horizontal" action="<?php echo e(route('furnizor.update.user')); ?>" enctype="multipart/form-data">
              <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
              <div class="bg-white pinside40 mb30">
                <!-- Form Name -->
                <h2 class="form-title">Logo firma</h2>
                <div class="form-group">
                  <div class="col-md-4">
                    <div class="photo-upload">
                      <?php if($user->logo != null): ?>
                      <img src="<?php echo e($user->logo_thumb); ?>" alt="" class="img-circle">
                      <?php else: ?>
                      <img src="<?php echo e(asset('images/couple-profile.jpg')); ?>" alt="" class="img-circle">
                      <?php endif; ?>
                    </div>
                  </div>
                  <div class="col-md-8 upload-file">
                    <input id="filebutton" name="logo" class="input-file" type="file">
                  </div>
                </div>
                <!-- Text input-->

                <h2 class="form-title">Informatii cont</h2>
                <div class="form-group <?php if($errors->has('name')): ?> has-error <?php endif; ?>">
                  <label class="col-md-4 control-label" for="name">Persoana de contact <span class="required">*</span></label>
                  <div class="col-md-8">
                    <input id="name" name="name" type="text"  class="form-control input-md" value="<?php echo e($user->name); ?>" required="">
                  </div>
                </div>
                <div class="form-group <?php if($errors->has('name')): ?> has-error <?php endif; ?>">
                  <label class="col-md-4 control-label" for="name">Nume companie <span class="required">*</span></label>
                  <div class="col-md-8">
                    <input id="name" name="name" type="text"  class="form-control input-md" value="<?php echo e($user->name); ?>" required="">
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-md-4 control-label" for="name">Email<span class="required">*</span></label>
                  <div class="col-md-8">
                    <p class="form-control-static"><?php echo e($user->email); ?></p>
                  </div>
                </div>

                <!-- Button -->
                <div class="form-group">
                  <label class="col-md-4 control-label" for="submit"></label>
                  <div class="col-md-4">
                    <button id="submit" name="submit" class="btn btn-primary">Update Profile</button>
                  </div>
                </div>
              </div>

            </form>
            <div class="bg-white pinside40 mb30">
              <?php if(config('social.facebook.enabled') || config('social.twitter.enabled') || config('social.google.enabled')): ?>
                  <fieldset>
                      <legend>Social log-in details</legend>
                      <form method="POST" class="form-horizontal" action="<?php echo e(route('user.update.social.remove')); ?>">
                          <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                          <?php if(config('social.facebook.enabled')): ?>
                              <div class="form-group">
                                  <label class="col-md-4 control-label"><?php echo e(trans('user.views.index.social.facebook')); ?></label>
                                  <div class="col-md-6">
                                      <?php if(array_key_exists('facebook', $social)): ?>
                                          <div class="form-control-static">
                                              <span class="label label-success"><i class="glyphicon glyphicon-check"></i></span>
                                              <span class="text-muted"><?php echo e($social['facebook']->name); ?> (<?php echo e($social['facebook']->email); ?>)</span>
                                              <button type="submit" name="social_id" value="<?php echo e($social['facebook']->id); ?>" class="btn btn-xs btn-danger">&times;</button>
                                          </div>
                                      <?php else: ?>
                                          <a href="<?php echo e(route('user.update.social.associate', 'facebook')); ?>" class="btn facebook-btn">
                                              <i class="fa fa-facebook"></i> Asociere cu facebook
                                          </a>
                                      <?php endif; ?>
                                  </div>
                              </div>
                          <?php endif; ?>
                          <?php if(config('social.twitter.enabled')): ?>
                              <div class="form-group">
                                  <label class="col-md-4 control-label"><?php echo e(trans('user.views.index.social.twitter')); ?></label>
                                  <div class="col-md-6">
                                      <?php if(array_key_exists('twitter', $social)): ?>
                                          <div class="form-control-static">
                                              <span class="label label-success"><i class="glyphicon glyphicon-check"></i></span>
                                              <span class="text-muted"><?php echo e($social['twitter']->name); ?> (<?php echo e($social['twitter']->email); ?>)</span>
                                              <button type="submit" name="social_id" value="<?php echo e($social['twitter']->id); ?>" class="btn btn-xs btn-danger">&times;</button>
                                          </div>
                                      <?php else: ?>
                                          <a href="<?php echo e(route('user.update.social.associate', 'twitter')); ?>" class="btn btn-block btn-social btn-twitter">
                                              <i class="fa fa-facebook"></i> <?php echo e(trans('user.views.index.social.twitter_associate')); ?>

                                          </a>
                                      <?php endif; ?>
                                  </div>
                              </div>
                          <?php endif; ?>
                          <?php if(config('social.google.enabled')): ?>
                              <div class="form-group">
                                  <label class="col-md-4 control-label"><?php echo e(trans('user.views.index.social.google')); ?></label>
                                  <div class="col-md-6">
                                      <?php if(array_key_exists('google', $social)): ?>
                                          <div class="form-control-static">
                                              <span class="label label-success"><i class="glyphicon glyphicon-check"></i></span>
                                              <span class="text-muted"><?php echo e($social['google']->name); ?> (<?php echo e($social['google']->email); ?>)</span>
                                              <button type="submit" name="social_id" value="<?php echo e($social['google']->id); ?>" class="btn btn-xs btn-danger">&times;</button>
                                          </div>
                                      <?php else: ?>
                                          <a href="<?php echo e(route('user.update.social.associate', 'google')); ?>" class="btn btn-block btn-social btn-google">
                                              <i class="fa fa-google-plus"></i> <?php echo e(trans('user.views.index.social.google_associate')); ?>

                                          </a>
                                      <?php endif; ?>
                                  </div>
                              </div>
                          <?php endif; ?>
                      </form>
                  </fieldset>
              <?php endif; ?>
            </div>
          </div>
          <div class="col-md-5 dashboard-form">
            <form class="form-horizontal" action="<?php echo e(route('furnizor.update.password')); ?>"  method="POST">
              <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
              <div class="bg-white pinside30">
                <!-- Form Name -->
                <h2 class="form-title">Schimbare parola</h2>

                <!-- Text input-->
                <?php if(!is_null($user->password)): ?>
                <div class="form-group <?php if($errors->has('old_password')): ?> has-error <?php endif; ?>">
                  <label class="col-md-4 control-label" for="oldpassword">Parola veche</label>
                  <div class="col-md-8">
                    <input id="oldpassword" name="old_password" type="password" placeholder="Parola veche" class="form-control input-md" required="">
                  </div>
                </div>
                <?php endif; ?>
                <div class="form-group <?php if($errors->has('password')): ?> has-error <?php endif; ?>">
                  <label class="col-md-4 control-label" for="newpassword">Parola noua</label>
                  <div class="col-md-8">
                    <input id="newpassword" name="password" type="password" placeholder="Parola noua" class="form-control input-md" required="">
                  </div>
                </div>
                <div class="form-group <?php if($errors->has('password_confirmation')): ?> has-error <?php endif; ?>">
                  <label class="col-md-4 control-label" for="ConfirmPassword">Confirmare parola</label>
                  <div class="col-md-8">
                    <input id="ConfirmPassword" name="password_confirmation" type="password" placeholder="Confirmare parola" class="form-control input-md" required="">
                  </div>
                </div>

                <!-- Button -->
                <div class="form-group">
                  <label class="col-md-4 control-label" for="submit"></label>
                  <div class="col-md-4">
                    <button id="submit" name="submit" class="btn btn-primary btn-lg">Modificare parola</button>
                  </div>
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>