  <?php $__env->startSection('content'); ?>
<?php Fun::lang()?>
<div class="title-add">
    <div class="page-bar"> 
        <ul class="page-breadcrumb"> 
            <li> <a class="ng-binding" href="#"><i class="fa fa-dashboard"></i> Dashboard</a> </li>
            <li><a href="#">Manage User</a></li>
            <li><a href="#">Branchs</a></li>
            <li><a href="#">Edit Branch</a></li>
        </ul> 
    </div>
</div>
    <div class="page">
        <div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="title-page">
                        <div class="pull-left">
                            <h3>Edit Branch</h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12 col-xs-12">

                <div class="form-wrapper">

                    <?php echo Form::model($branches, ['method' => 'PATCH','route' => ['branches.update', $branches->id],'enctype'=>'multipart/form-data']); ?>

                    <div class="row">

                        <div class="form-group col-sm-6 col-xs-6">
                            <label class="required">Branch English</label>
                            <?php echo Form::text('branch_en', null, array('placeholder' => 'Branch English','class' => 'form-control')); ?>

                        </div>
                        <div class="form-group col-sm-6 col-xs-6">
                            <label class="required">Branch <Khmer></Khmer></label>
                            <?php echo Form::text('branch_kh', null, array('placeholder' => 'Branch Khmer','class' => 'form-control')); ?>

                        </div>

                    </div>
                    <div class="row">

                        <div class="form-group col-sm-6 col-xs-6">
                            <label class="required">Phone</label>
                            <?php echo Form::text('branch_phone', null, array('placeholder' => 'Phone','class' => 'form-control')); ?>

                        </div>
                        <div class="form-group col-sm-6 col-xs-6">
                            <label class="required">Email</label>
                            <?php echo Form::text('branch_email', null, array('placeholder' => 'Email','class' => 'form-control')); ?>

                        </div>

                    </div>
                    <div class="row">

                        <div class="form-group col-sm-6 col-xs-6">
                            <label class="required">Address</label>
                            <?php echo Form::text('branch_address', null, array('placeholder' => 'Address','class' => 'form-control')); ?>

                        </div>
                        <div class="form-group col-sm-6 col-xs-6">
                            <label>Note</label>
                            <?php echo Form::textarea('branch_note', null, array('placeholder' => 'Note','class' => 'form-control','rows'=>'3')); ?>

                        </div>

                    </div>
                    <div class="col-xs-4 col-sm-4 col-md-4">
                            <div class="box">
                                <div class="m-card-profile">
                                    <label for="required" class="required">Logo Image </label>
                                    <p class="text-danger"></p>
                                    <div class="m-card-profile__pic">
                                        <div class="m-card-profile__pic-wrapper">
                                            <input type="hidden" name="hidden_image_name" value='<?php echo e($branches->branch_img); ?>'>
                                            <img src='/assets/images/resize/<?php echo e($branches->branch_img); ?>' width="100px" class="hide_img">
                                            <div class="imageupload panel panel-default">
                                                <div class="file-tab panel-body">
                                                    <label class="btn button_warning btn-file">
                                                        <span>Browse</span>
                                                        <input type="file" name="image">
                                                        
                                                    </label>
                                                    <button type="button" class="btn button_danger">Remove</button>
                                                </div>  
                                            </div>


                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <div class="col-sm-12 col-xs-12">
                        <div class="form-group">
                            <button type="submit" class="button_sm button_primary pull-right"><span class="fa fa-save"></span> Save</button>
                            <button type="button"  onClick="javascript:history.go(-1)" class="button_sm button_warning pull-right">
                                    <span class=" fa fa-arrow-circle-left"></span> Back</button>
                        </div>
                    </div>

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

                </div>
            </div>
        </div>

    </div>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>