

<?php $__env->startSection('content'); ?>
<div class="row">
	<div class="col-md-12">
	<div class="panel panel-default">
	<div class="panel-heading"><?php echo e(_lang('Add Expense')); ?></div>

	<div class="panel-body">
	  <form method="post" class="validate" autocomplete="off" action="<?php echo e(url('transactions')); ?>" enctype="multipart/form-data">
		<?php echo e(csrf_field()); ?>

		
			<div class="col-md-6">
		  <div class="form-group">
			<label class="control-label"><?php echo e(_lang('Payment From Account')); ?></label>						
			<select class="form-control select2" name="account_id">
				<?php $__currentLoopData = $cash_and_bank; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<option value="<?php echo e($account['id']); ?>"><?php echo e($account['account_name']); ?></option>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</select>
		  </div>
		</div>
			<div class="col-md-6">
		  <div class="form-group">
			<label class="control-label"><?php echo e(_lang('Payment to Account')); ?></label>						
			<select class="form-control select2" name="chart_id" required>
				<?php $__currentLoopData = $account_types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<option value="<?php echo e($account['id']); ?>"><?php echo e($account['account_name']); ?></option>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</select>
		  </div>
		</div>
		
		<div class="col-md-6">
		  <div class="form-group">
			<label class="control-label"><?php echo e(_lang('Amount')." ".get_option('currency_symbol')); ?></label>						
			<input type="text" class="form-control float-field" name="amount" value="<?php echo e(old('amount')); ?>" required>
		  </div>
		</div>
		
		<div class="col-md-6">
		  <div class="form-group">
			<label class="control-label"><?php echo e(_lang('Date')); ?></label>						
			<input type="text" class="form-control datepicker" name="trans_date" value="<?php echo e(old('trans_date')); ?>" required>
		  </div>
		</div>
<!--<input type="hidden" name="account_id" value="1" >-->


	
		
		<input type="hidden" name="trans_type" value="expense">
		<input type="hidden" name="dr_cr" value="dr">

		<!--<div class="col-md-6">-->
		<!--  <div class="form-group">-->
		<!--  <label class="control-label"><?php echo e(_lang('Payee')); ?></label>						-->
		<!--  <select class="form-control select2" name="payee_payer_id">-->
		<!--		<?php echo e(create_option("payee_payers","id","name",old('payee_payer_id'),array("type="=>"payee"))); ?>-->
		<!--	</select>-->
		<!--  </div>-->
		<!--</div>-->

	

		<div class="col-md-6">
		  <div class="form-group">
			<label class="control-label"><?php echo e(_lang('Attachment')); ?></label>						
			<input type="file" class="form-control appsvan-file" name="attachment" >
		  </div>
		</div>

		<div class="col-md-6">
		  <div class="form-group">
			<label class="control-label"><?php echo e(_lang('Note')); ?></label>						
			<textarea class="form-control" name="note"><?php echo e(old('note')); ?></textarea>
		  </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 Expense')); ?></button>
		  </div>
		</div>
	  </form>
	</div>
  </div>
 </div>
</div>
<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Projects\hms_fatima\hms_fatima\resources\views/backend/accounting/transaction/expense/create.blade.php ENDPATH**/ ?>