

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-4"></div>
	<div class="col-md-4">
        <div class="panel panel-default">
            <div class="panel-heading text-center"><b><?php echo e(_lang('Add Account Type')); ?></b></div>
            
            <div class="panel-body">
                <form method="post" class="validate" autocomplete="off" action="<?php echo e(route('update_account_detail.update',  $accounts->id)); ?>" enctype="multipart/form-data">
                    <?php echo e(csrf_field()); ?>

                    
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label"><?php echo e(_lang('Account Name')); ?></label>						
                                <input type="text" class="form-control" name="account_name" value="<?php echo e($accounts->account_name); ?>" required>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label"><?php echo e(_lang('Account Number')); ?></label>						
                                <input type="text" class="form-control" name="account_number" value="<?php echo e($accounts->account_number); ?>" required>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label"><?php echo e(_lang('Please select Type')); ?></label>
                                <select class="form-control" name="account_type" required>
                                    <option value=""><?php echo e(_lang('Please Select Type')); ?></option>
                                    <?php $__currentLoopData = $master_account_level; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $level): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($level->id); ?>" 
                                            <?php echo e(old('account_type', $accounts->account_type) == $level->id ? 'selected' : ''); ?>>
                                            <?php echo e($level->account_type); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                    <div class="col-md-12">
                        <div class="form-group">
                            <button type="reset" class="btn btn-danger"><?php echo e(_lang('Reset')); ?></button>
                            <button type="submit" class="btn btn-primary"><?php echo e(_lang('Save')); ?></button>
                        </div>
                    </div>
                </form>
              </div>
        </div>
    </div>
    <div class="col-md-4"></div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\hostel\resources\views/backend/accounting/accounts_details/account_details_edit.blade.php ENDPATH**/ ?>