<?php $__env->startSection('styles'); ?>
    <link href="/assets/pages/css/profile.min.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet"
          type="text/css"/>
    <link href="/assets/global/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet"
          type="text/css"/>
    <link href="/assets/global/plugins/bootstrap-editable/bootstrap-editable/css/bootstrap-editable.css"
          rel="stylesheet" type="text/css"/>
    <link href="/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/global/plugins/bootstrap-editable/inputs-ext/address/address.css" rel="stylesheet"
          type="text/css"/>
    <link href="/assets/global/plugins/select2/css/select2.min.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/global/plugins/select2/css/select2-bootstrap.min.css" rel="stylesheet" type="text/css"/>

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

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('admin.flash_message', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <h1 class="page-title"> Thông tin người dùng <?php echo e($account->name); ?>

    </h1>
    <div class="row">
        <div class="col-md-12">
            <!-- BEGIN PROFILE SIDEBAR -->
            <!-- END BEGIN PROFILE SIDEBAR -->
            <!-- BEGIN PROFILE CONTENT -->
            <div class="profile-content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="portlet light ">
                            <div class="portlet-title tabbable-line">
                                <div class="caption caption-md">
                                    <i class="icon-globe theme-font hide"></i>
                                    <span class="caption-subject font-blue-madison bold uppercase">Thông tin tài khoản</span>
                                </div>
                                <ul class="nav nav-tabs">
                                    <li class="active">
                                        <a href="#tab_1_1" data-toggle="tab">Thông tin cá nhân</a>
                                    </li>
                                    <li>
                                        <a href="#tab_1_3" data-toggle="tab">Thay đổi mật khẩu</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="portlet-body">
                                <div class="tab-content">
                                    <!-- PERSONAL INFO TAB -->
                                    <div class="tab-pane active" id="tab_1_1">
                                        <form enctype="multipart/form-data" role="form"
                                              action="<?php echo e(url('/admin/account/update', ['id' => $account->id])); ?>"
                                              method="post">
                                            <div class="form-group">
                                                <?php echo csrf_field(); ?>


                                                <div class="fileinput fileinput-new"
                                                     data-provides="fileinput">

                                                    <div class="fileinput-new thumbnail"
                                                         style="max-width: 200px;">
                                                        <img src="<?php echo e($account->image); ?>"
                                                             alt=""></div>
                                                    <div class="fileinput-preview fileinput-exists thumbnail"
                                                         style="max-width: 200px"></div>
                                                    <div>
                                                                            <span class="btn default btn-file">
                                                                                <span class="fileinput-new"> Chọn hình ảnh đại diện </span>
                                                                                <span class="fileinput-exists"> Thay đổi </span>
                                                                                <input type="file" name="image"> </span>
                                                        <a href="javascript:;"
                                                           class="btn default fileinput-exists"
                                                           data-dismiss="fileinput"> Xóa </a>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label">Họ tên đệm</label>
                                                <input type="text" placeholder="Điền họ tên đệm" name="sur_name"
                                                       value="<?php echo e($account->sur_name); ?>" class="form-control"></div>
                                            <div class="form-group">
                                                <label class="control-label">Tên</label>
                                                <input type="text" placeholder="Điền tên" value="<?php echo e($account->name); ?>"
                                                       class="form-control"></div>
                                            <div class="form-group">
                                                <label class="control-label">Email</label>
                                                <input type="text" placeholder="Điền email" name="email"
                                                       value="<?php echo e($account->email); ?>" class="form-control"></div>
                                            <div class="form-group">
                                                <label class="control-label">SĐT</label>
                                                <input type="text" placeholder="Điền SĐT" value="<?php echo e($account->phone); ?>"
                                                       name="phone"
                                                       class="form-control"></div>

                                            <div class="form-group">
                                                <label class="control-label">Giới tính</label>
                                                <select class="form-control" name="gender">
                                                    <option value="">Vui lòng chọn</option>
                                                    <option value="Nam" <?php if($account->gender == 'Nam'): ?> selected <?php endif; ?>>
                                                        Nam
                                                    </option>
                                                    <option value="Nữ" <?php if($account->gender == 'Nữ'): ?> selected <?php endif; ?>>
                                                        Nữ
                                                    </option>
                                                </select>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label">Địa chỉ</label>
                                                <textarea class="form-control" rows="3" name="address"
                                                          placeholder="Điền địa chỉ"> <?php echo e($account->address); ?></textarea>
                                            </div>

                                            <div class="margiv-top-10">
                                                <button type="submit" href="javascript:;" class="btn green"> Cập nhật
                                                </button>
                                            </div>
                                        </form>
                                    </div>
                                    <!-- END PERSONAL INFO TAB -->
                                    <!-- CHANGE AVATAR TAB -->

                                    <!-- END CHANGE AVATAR TAB -->
                                    <!-- CHANGE PASSWORD TAB -->
                                    <div class="tab-pane" id="tab_1_3">
                                        <form action="<?php echo e(url('admin/account/change-password')); ?>" method="post">
                                            <?php echo csrf_field(); ?>

                                            <div class="form-group">
                                                <label class="control-label">Mật khẩu hiện tại</label>
                                                <input type="password" name="current_password" class="form-control"></div>
                                            <div class="form-group">
                                                <label class="control-label">Mật khẩu mới</label>
                                                <input type="password" name="new_password" class="form-control"></div>
                                            <div class="form-group">
                                                <label class="control-label">Nhập lại mật khẩu</label>
                                                <input type="password" name="retype_password" class="form-control">
                                            </div>
                                            <div class="margin-top-10">
                                                <button type="submit" class="btn green"> Cập nhật mật khẩu</button>
                                            </div>
                                        </form>
                                    </div>
                                    <!-- END CHANGE PASSWORD TAB -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END PROFILE CONTENT -->
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<script src="/assets/global/plugins/bootstrap-wysihtml5/wysihtml5-0.3.0.js" type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.js" type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"
        type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"
        type="text/javascript"></script>
<script src="/assets/global/plugins/moment.min.js" type="text/javascript"></script>
<script src="/assets/global/plugins/jquery.mockjax.js" type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.js"
        type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-editable/inputs-ext/address/address.js" type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-editable/inputs-ext/wysihtml5/wysihtml5.js"
        type="text/javascript"></script>
<script src="/assets/global/plugins/bootstrap-typeahead/bootstrap3-typeahead.min.js" type="text/javascript"></script>
<script src="/assets/global/plugins/select2/js/select2.full.min.js" type="text/javascript"></script>


<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>