

<?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 Master Account')); ?></b></div>

            <div class="panel-body">
                <form method="post" class="validate" autocomplete="off" action="<?php echo e(route('save.master.account')); ?>" 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('Master Account Name')); ?></label>						
                        <input type="text" class="form-control" name="master_account"  required>
                    </div>
                    </div>

                    <div class="form-group">
                    <div class="col-md-12">
                        <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>
<div class="row">
<div class="panel-body">
  <?php if(\Session::has('success')): ?>
  <div class="alert alert-success">
    <p><?php echo e(\Session::get('success')); ?></p>
  </div>
  <br />
  <?php endif; ?>


  <table class="table table-bordered data-table">
    <thead>
      <tr>
        <th><?php echo e(_lang('Master Account Name')); ?></th>
        <th><?php echo e(_lang('Action')); ?></th>
      </tr>
    </thead>
    <tbody>
      <?php $__currentLoopData = $master_account; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account_type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <tr>
        <td><?php echo e($account_type->master_account); ?></td>
        <td>
        <a href="<?php echo e(route('edit.master.account', $account_type->id)); ?>" class="btn btn-warning btn-sm"><?php echo e(_lang('Edit')); ?></a>
                        <form action="<?php echo e(route('delete.master.account', $account_type->id)); ?>" method="POST" style="display: inline-block;">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('DELETE'); ?>
                            <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('<?php echo e(_lang('Are you sure?')); ?>')"><?php echo e(_lang('Delete')); ?></button>
                        </form>
        </td>
      </tr>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
  </table>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\htdocs\hostel\resources\views/backend/accounting/accounts_details/master_accounts.blade.php ENDPATH**/ ?>