

<?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_types.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 Type Name')); ?></label>						
                                <input type="text" class="form-control" name="account_name" value="<?php echo e($accounts->account_type); ?>" required>
                            </div>
                        </div>

                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="control-label"><?php echo e(_lang('Please select level')); ?></label>
                                <select class="form-control" name="account_level" required>
                                <option value=""> <?php echo e(_lang('Please Select Master Account')); ?></option>
<?php $__currentLoopData = $master_account; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $master): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <option value="<?php echo e($master->id); ?>" 
        <?php echo e(old('master_account', $accounts->master_account ?? '') == $master->id ? 'selected' : ''); ?>>
        <?php echo e($master->master_account); ?>

    </option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    <!--<option value=""> <?php echo e(_lang('Please Select Level')); ?></option>-->
                                    <!--<option value="liabilities" <?php echo e(old('account_level', $accounts->account_level ?? '') == 'liabilities' ? 'selected' : ''); ?>>-->
                                    <!--    <?php echo e(_lang('Liabilities')); ?>-->
                                    <!--</option>-->
                                    <!--<option value="assets" <?php echo e(old('account_level', $accounts->account_level ?? '') == 'assets' ? 'selected' : ''); ?>>-->
                                    <!--    <?php echo e(_lang('Assets')); ?>-->
                                    <!--</option>-->
                                    <!--<option value="expenses" <?php echo e(old('account_level', $accounts->account_level ?? '') == 'expenses' ? 'selected' : ''); ?>>-->
                                    <!--    <?php echo e(_lang('Expenses')); ?>-->
                                    <!--</option>-->
                                    <!--<option value="income" <?php echo e(old('account_level', $accounts->account_level ?? '') == 'income' ? 'selected' : ''); ?>>-->
                                    <!--    <?php echo e(_lang('Income')); ?>-->
                                    <!--</option>-->
                                </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_types_edit.blade.php ENDPATH**/ ?>