<?php $__env->startSection('title', 'Bank Transaction Entry'); ?>

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

<?php $__env->stopPush(); ?>
<!-- page content -->
<?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> Edit Customer Information 
                                <a href="<?php echo e(route('customer.list')); ?>" class="btn btn-success"> Customer List</a>
                            </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 action="<?php echo e(route('customer.update',$customer->id)); ?>" method="post">
                                <?php echo e(csrf_field()); ?>

                                
                                <div class="row">
                                    <div class="col-sm-3"></div>
                                    <div class="col-sm-6">
                                        <div class="form-group">
                                            <label for="customer_name">Customer Name</label>
                                            <input type="text" value="<?php echo e($customer->name); ?>" class="form-control" name="customer_name" id="customer_name">
                                            <p class="error"><?php echo e($errors->first('customer_name')); ?></p>
                                        </div>
                                        <div class="form-group">
                                            <label for="customer_phone">Customer Phone</label>
                                            <input type="text" value="<?php echo e($customer->phone); ?>" class="form-control" name="customer_phone" id="customer_phone">
                                            <p class="error"><?php echo e($errors->first('customer_phone')); ?></p>
                                        </div>
                                        <div class="form-group">
                                            <label for="customer_email">Customer Email</label>
                                            <input type="text" value="<?php echo e($customer->email); ?>" class="form-control" name="customer_email" id="customer_email">
                                            <p class="error"><?php echo e($errors->first('customer_email')); ?></p>
                                        </div>
                                        <div class="form-group">
                                            <label for="customer_address">Customer Address</label>
                                            <input type="text" value="<?php echo e($customer->address); ?>" class="form-control" name="customer_address" id="customer_address">
                                            <p class="error"><?php echo e($errors->first('customer_address')); ?></p>
                                        </div>
                                        <div class="box-footer">
                                            <button type="submit" name="btnSave" class="btn btn-primary" >Update Customer</button>
                                        </div>
                                    </div>
                                    <div class="col-sm-3"></div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /page content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>

<?php $__env->stopPush(); ?>
<?php echo $__env->make('backend.layouts..master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>