

<?php $__env->startSection('content'); ?>

<?php if(session()->has('message')): ?>
<div class="row">
        <!-- left column -->
        <div class="col-md-2"></div>
        <?php 
        $type= session('type') ;
         ?>
        <div class="col-md-4 alert alert-<?php echo e($type); ?> alert-dismissible" style="font-size:18px;font-weight:bold;width:400px;margin-left:15px">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <?php echo session('message'); ?>

        </div>
</div> 
<?php endif; ?>

<div class="row" style="padding:10px">
<div class="col-md-1" style="margin-left:18px"></div>
<div class="col-md-6" style="margin-left:18px">
      <div class="card card-info">
          <div class="card-header">
            <h3 class="card-title"> تعديل علي <?php echo e($payment_voucher->type); ?>   رقم  <?php echo e($payment_voucher->id); ?> </h3>
          </div>
          <!-- /.card-header -->
          <!-- form start -->
          <form  role="form" method="POST" action="<?php echo e(url('/payment_voucher/edit')); ?>">
                        <?php echo e(csrf_field()); ?>

          <div class="box-body">
            <div class="card-body">

             
               <?php if($payment_voucher->type == "سند صرف عام"): ?>
                <div class="form-group">
                  <label for="exampleInputPassword1">  يصرف الي   </label>
                  <input type="text"  id="general_name" name="general_name" value="<?php echo e($payment_voucher->general_name); ?>" class="form-control"  placeholder="  يصرف الي    ">
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">  نظير   </label>
                  <input type="text"  id="note1" name="note1" class="form-control" value="<?php echo e($payment_voucher->note1); ?>"  placeholder=" نظير   " >
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">  ملاحظات   </label>
                  <input type="text"  id="note2" name="note2" class="form-control"  value="<?php echo e($payment_voucher->note2); ?>" placeholder=" ملاحظات   ">
                </div>
                <?php endif; ?>

                  <?php if($payment_voucher->type == "سند صرف موظفين"): ?>
                 <div class="form-group">
                  <label for="exampleInputPassword1">  نظير   </label>
                  <input type="text"  id="note1" name="note1" class="form-control" value="<?php echo e($payment_voucher->note1); ?>"  placeholder=" نظير   " >
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">  ملاحظات   </label>
                  <input type="text"  id="note2" name="note2" class="form-control"  value="<?php echo e($payment_voucher->note2); ?>" placeholder=" ملاحظات   ">
                </div>
                <?php endif; ?>


                <?php if($payment_voucher->type == "سند صرف ميزانية"): ?>
                <div class="form-group">
                  <label for="exampleInputPassword1">  يصرف الي   </label>
                  <input type="text"  id="general_name" name="general_name" value="<?php echo e($payment_voucher->general_name); ?>" class="form-control"  placeholder="  يصرف الي    ">
                </div>
                 <div class="form-group">
                  <label for="exampleInputPassword1">  ملاحظات   </label>
                  <input type="text"  id="note2" name="note2" class="form-control"  value="<?php echo e($payment_voucher->note2); ?>" placeholder=" ملاحظات   ">
                </div>
                <?php endif; ?>

 <?php if($payment_voucher->type == "سند صرف سيارات"): ?>
                <div class="form-group">
                  <label for="exampleInputPassword1">  يصرف الي   </label>
                  <input type="text"  id="general_name" name="general_name" value="<?php echo e($payment_voucher->general_name); ?>" class="form-control"  placeholder="  يصرف الي    ">
                </div>
                
                <div class="form-group">
                  <label for="exampleInputPassword1">  ملاحظات   </label>
                  <input type="text"  id="note2" name="note2" class="form-control"  value="<?php echo e($payment_voucher->note2); ?>" placeholder=" ملاحظات   ">
                </div>
<?php endif; ?>

                

 <?php if($payment_voucher->type == "سند صرف عهدة مربوطة بمبلغ"): ?>
                <div class="form-group">
                  <label for="exampleInputPassword1">  يصرف الي   </label>
                  <input type="text"  id="general_name" name="general_name" value="<?php echo e($payment_voucher->general_name); ?>" class="form-control"  placeholder="  يصرف الي    ">
                </div>
                
                <div class="form-group">
                  <label for="exampleInputPassword1">  ملاحظات   </label>
                  <input type="text"  id="note2" name="note2" class="form-control"  value="<?php echo e($payment_voucher->note2); ?>" placeholder=" ملاحظات   ">
                </div>
                <?php endif; ?>


 <?php if($payment_voucher->type == "سند صرف عهدة غير مربوطة بمبلغ"): ?>
                <div class="form-group">
                  <label for="exampleInputPassword1">  يصرف الي   </label>
                  <input type="text"  id="general_name" name="general_name" value="<?php echo e($payment_voucher->general_name); ?>" class="form-control"  placeholder="  يصرف الي    ">
                </div>
                
                <div class="form-group">
                  <label for="exampleInputPassword1">  ملاحظات   </label>
                  <input type="text"  id="note2" name="note2" class="form-control"  value="<?php echo e($payment_voucher->note2); ?>" placeholder=" ملاحظات   ">
                </div>
                <?php endif; ?>


                <input type="hidden"  value="<?php echo e($payment_voucher->id); ?>"id="payment_voucher_id" name="payment_voucher_id" class="form-control"  placeholder=" payment_voucher_id " >



                <div class="card-footer">
                  <button type="submit" class="btn btn-info">Edit </button>
                </div>  

              </div>
          </div>


          </form>
      </div>


    </div>
  </div>





<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.masterHome2', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>