<?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('Update Income')); ?></div>

			<div class="panel-body">
			<form method="post" class="validate" autocomplete="off" action="<?php echo e(action('TransactionController@update', $id)); ?>" enctype="multipart/form-data">
				<?php echo e(csrf_field()); ?>

				<input name="_method" type="hidden" value="PATCH">				
				
			
				<div class="col-md-6">
				 <div class="form-group">
					<label class="control-label"><?php echo e(_lang('Trans Date')); ?></label>						
					<input type="text" class="form-control datepicker" name="trans_date" value="<?php echo e($transaction->trans_date); ?>" required>
				 </div>
				</div>
<!--<input type="hidden" name="account_id" value="1">-->


				<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($transaction->amount); ?>" required>
				 </div>
				</div>


				<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="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('Payment to 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>
				<input type="hidden" name="trans_type" value="income">
				<input type="hidden" name="dr_cr" value="cr">


				<div class="col-md-6">
				 <div class="form-group">
					<label class="control-label"><?php echo e(_lang('Reference')); ?></label>						
					<input type="text" class="form-control" name="reference" value="<?php echo e($transaction->reference); ?>">
				 </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" data-value="<?php echo e($transaction->attachment); ?>" 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($transaction->note); ?></textarea>
				 </div>
				</div>

				
				<div class="col-md-12">
				  <div class="form-group">
					<button type="submit" class="btn btn-primary"><?php echo e(_lang('Update')); ?></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 /home/hostelmanager/public_html/test.hostelmanager.pk/resources/views/backend/accounting/transaction/income/edit.blade.php ENDPATH**/ ?>