

<?php $__env->startSection('title', 'About Information'); ?>

<?php $__env->startPush('css'); ?>

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

<?php $__env->startSection('content'); ?>
	<div class="right_col" role="main">
        <div class="">
            <div class="clearfix"></div>
            <?php if(Session::has('success')): ?>
                <div class="alert alert-success">
                    <?php echo e(Session::get('success')); ?>

                </div>
            <?php endif; ?>
            <?php if(Session::has('error')): ?>
                <div class="alert alert-danger">
                    <?php echo e(Session::get('error')); ?>

                </div>
            <?php endif; ?>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>About Information </h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="#">Settings 1</a>
                                        </li>
                                        <li><a href="#">Settings 2</a>
                                        </li>
                                    </ul>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
							<form id="demo-form2" action="<?php echo e(route('about.update',$about->id)); ?>" method="post" data-parsley-validate class="form-horizontal form-label-left" enctype="multipart/form-data" >
								<?php echo e(csrf_field()); ?>

								<?php echo e(method_field('PUT')); ?>

								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">Bangla Name <span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input type="text" id="bang-name" name="bang_name" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo e($about->bangla_name); ?>">
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12" for="last-name">English Name <span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input type="text" id="last-name" name="eng_name" required="required" class="form-control col-md-7 col-xs-12" value="<?php echo e($about->english_name); ?>">
									</div>
								</div>
								<div class="form-group">
									<label for="middle-name" class="control-label col-md-3 col-sm-3 col-xs-12">Founder</label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input id="middle-name" class="form-control col-md-7 col-xs-12" type="text" name="founder" value="<?php echo e($about->founder); ?>">
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Establish Year<span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input id="" class="date-picker form-control col-md-7 col-xs-12" name="est_year" required="required" type="text" placeholder="xxxx" value="<?php echo e($about->establish_year); ?>">
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Phone Number<span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input type="text" class="form-control" name="phone" placeholder="01xxxxxxxx" value="<?php echo e($about->phone); ?>">
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Email Address<span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input type="text"  name="email" class="date-picker form-control col-md-7 col-xs-12" value="<?php echo e($about->email); ?>" >
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Web<span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input type="text"  name="web" class="date-picker form-control col-md-7 col-xs-12" value="<?php echo e($about->web); ?>" >
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Address<span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input id="" name="address" class="date-picker form-control col-md-7 col-xs-12" required="required" type="text" value="<?php echo e($about->address); ?>">
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">About<span class="required">*</span></label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<textarea id="" name="about" class="date-picker form-control col-md-7 col-xs-12" ><?php echo e($about->about); ?></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Favicon Image<span class="required">*</span></label>
									<div class="col-md-3 col-sm-3 col-xs-6">
										<input type="file" id="favicon" onChange="docImg(this)" name="favicon" class="form-control">
									</div>
									<div class="col-md-3 col-sm-3 col-xs-6"> 
										<img src="<?php echo e(asset('storage/about/'.$about->favicon)); ?>" class="img-responsive img-thumbnail" id="docImage" width="40px" height="50px"/>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3 col-sm-3 col-xs-12">Logo image</label>
									<div class="col-md-3 col-sm-3 col-xs-6">
										<input type="file" id="profile_img" onChange="readURL(this)" name="logo" class="form-control">
									</div>
									<div class="col-md-3 col-sm-3 col-xs-6">
										<div class="form-group">
											<img src="<?php echo e(asset('storage/about/'.$about->logo)); ?>" class="img-responsive img-thumbnail" id="profile_img_tag" width="85px" height="100px"/>
										</div>
									</div>
								</div>
								<hr/>	
								<div class="form-group">
									<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-5">
										<a href="<?php echo e(route('about.index')); ?>" class="btn btn-danger">Cancel</a>
										<button class="btn btn-warning" type="reset">Reset</button>
										<button type="submit" class="btn btn-success">Update</button>
									</div>
								</div>	
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('js'); ?>
<script>
	$(document).ready(function(){
		
		
	})
// profile photo display section
	function readURL(input) 
		{
			if (input.files && input.files[0]) 
				{
					var reader = new FileReader();
					reader.onload = function (e) {
					$('#profile_img_tag').attr('src', e.target.result);
					}
					reader.readAsDataURL(input.files[0]);
				}
		}

	// document file display section
	function docImg(input) 
		{
			if (input.files && input.files[0]) 
				{
					var reader = new FileReader();
					reader.onload = function (e) {
					$('#docImage').attr('src', e.target.result);
					}
					reader.readAsDataURL(input.files[0]);
				}
		}
	</script>
<?php $__env->stopPush(); ?>									
<?php echo $__env->make('backend.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>