<?php $__env->startSection('content'); ?>
    <div class="col-md-12">
        <div class="row">
            <h2 class="content-heading"><i class="fa fa-user fa-fw"></i> <?php echo e(t('Update Avatar')); ?></h2>
			<div class="col-md-2 col-sm-2 col-xs-2 avatar-holder">
				<img class="img-responsive" src="<?php echo e(url('/')); ?>/uploads/avatars/<?php echo e(auth()->user()->avatar); ?>" align='left' width='120' title='<?php echo e(auth()->user()->fullname); ?>' alt="<?php echo e(auth()->user()->fullname); ?>">
			</div><br />
            <?php echo Form::open(['url'=>'settings/updateavatar','files'=> true,'role'=>'form']); ?>

            <div class="form-group">
                <?php echo Form::file('avatar',['accept'=>'image/*']); ?>

            </div>
            <div class="form-group">
                <?php echo Form::submit(t('Update Avatar'),['class'=>'btn btn-default btn-lg btn-success']); ?>

            </div><br />
            <?php echo Form::close(); ?>


            <h2 class="content-heading"><i class="fa fa-cogs fa-fw"></i>  <?php echo e($title); ?></h2>

            <?php echo Form::open(); ?>

            <div class="form-group">
                <?php echo Form::label('fullname', t('Full Name')); ?>*
                <?php echo Form::input('text','fullname',auth()->user()->fullname, ['required', 'class' => 'form-control input-lg', 'placeholder' => t('Title')]); ?>

            </div>
            <div class="form-group">
                <?php echo Form::label('about', t('About')); ?>*
                <?php echo Form::textarea('about',auth()->user()->about, ['class' => 'form-control input-lg', 'id' => 'editor', 'placeholder' => t('Description')]); ?>

            </div>
            <div class="form-group"><i class="fa fa-external-link fa-fw"></i>
                <?php echo Form::label('url', t('Website URL')); ?>*
                <?php echo Form::text('url',auth()->user()->url, ['class' => 'form-control input-lg', 'placeholder' => t('Website URL')]); ?>

            </div>
            <div class="form-group"><i class="fa fa-facebook fa-fw"></i>
                <?php echo Form::label('tw_url', t('Twitter Profile URL')); ?>*
                <?php echo Form::text('tw_url',auth()->user()->tw_url, ['class' => 'form-control input-lg', 'placeholder' => t('Twitter Profile URL')]); ?>

            </div>

            <div class="form-group">
                <?php echo Form::label('is_freelancer', t('I\'m freelancer list me')); ?>

                <?php echo Form::checkbox('is_freelancer', 1, auth()->user()->is_freelancer, ['id' => 'is_freelancer']); ?>

                <small>( <?php echo e(t('Allow people to contact me')); ?> )</small>
            </div>

            <div class="form-group form-group-lg">
                <label for="category"><?php echo e(t('Category')); ?>*</label>
                <select class="form-control select-box" name="category" disabled>
                    <?php if(auth()->user()->category_id): ?><option value="<?php echo e(auth()->user()->category->id); ?>" selected><?php echo e(ucfirst(auth()->user()->category->name)); ?></option><?php endif; ?>
                    <option disabled></option>
                    <?php foreach(siteCategories() as $category): ?>
                        <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="form-group form-group-lg">
                <?php echo Form::label('tags', 'Tags'); ?>

                <select class="form-control tagging" multiple="multiple" name="tags[]" disabled>
                    <?php foreach(explode(',',auth()->user()->tags) as $tag): ?>
                        <?php if($tag): ?>
                            <option selected="selected"><?php echo e($tag); ?></option>
                        <?php endif; ?>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="form-group">
                <?php echo Form::submit(t('Update'), ['class' => 'btn btn-info btn-lg btn-block']); ?>

            </div>
            <?php echo Form::close(); ?>


            <br>
            <h3 class="content-heading"><i class="fa fa-key fa-fw"></i> <?php echo e(t('Change Password')); ?></h3>
            <?php echo Form::open(['url'=>'settings/changepassword']); ?>

            <div class="form-group">
                <label for="currentpassword"><?php echo e(t('Current Password')); ?></label>
                <?php echo Form::password('currentpassword',['class'=>'form-control input-lg', 'required', 'placeholder' => t('Current Password')]); ?>

            </div>
            <div class="form-group">
                <label for="password"><?php echo e(t('New Password')); ?></label>
                <?php echo Form::password('password',['class'=>'form-control input-lg', 'required', 'placeholder' => t('New Password')]); ?>

            </div>
            <div class="form-group">
                <label for="password_confirmation"><?php echo e(t('Confirm Password')); ?></label>
                <?php echo Form::password('password_confirmation',['class'=>'form-control input-lg', 'required', 'placeholder' => t('Confirm Password') ]); ?>

            </div>
            <div class="form-group">
                <?php echo Form::submit(t('Change Password'),['class'=>'btn btn-default btn-lg btn-block btn-success']); ?>

            </div>
            <?php echo Form::close(); ?>

        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master.index', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>