
<?php $__env->startSection('page_title'); ?>
	<h1>Modify User</h1>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_subtitle'); ?>
	"<?php echo $item->fname; ?> <?php echo $item->lname; ?>"
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_content'); ?>

<div class="content-box">
	<div class="content-box-header">
		<h3>User Details</h3>

		<ul class="content-box-tabs">
			<li><a href="#details-tab" class="default-tab current">Details</a></li>
			<li><a href="#password-tab" class="confirm" alt="Please create a user prior to updating the password.">Password</a></li>
		</ul>
	</div>
	<div class="content-box-content">
		<div class="table">

			<!--  Page Details  -->
			<div class="tab-content default-tab" id="details-tab">
				
				<?php if ($errors->count() > 0): ?>
					<div class='err'><?php echo $errors->first(); ?></div>
				<?php elseif (isset($saved_success) && $saved_success): ?>
					<div class='saved_success'>Item successfully saved.</div>
				<?php endif; ?>
				
				<?php echo Form::model($item, array('url' => "admin/users/$item->id", 'method' => 'PUT')); ?>
					<?php echo $__env->make('admin.modules.users.fields', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				<?php echo Form::close(); ?>

			</div>

			<!--  Meta Information   -->
			<div class="tab-content" id="password-tab">
				<?php if (isset($method) && $method == 'edit'): ?>
				<?php echo $__env->make('admin.modules.users.passwords', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				<?php endif; ?>
			</div>

		</div>
	</div>

	<input type="hidden" id="item_id" value="<?php echo $item->id; ?>" />
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.module',array('module_path'=>'users'), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>