


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

<style>
    
    @media  print{
    @page{ size: A4 landscape; margin: 12mm; }
     
    .toolbar{display:none !important}
    .page{box-shadow:none; border-radius:0; margin:0}
    thead{display: table-header-group;}
    tfoot{display: table-footer-group;}
    /* تحسين الألوان في الطباعة */
    *{-webkit-print-color-adjust: exact; print-color-adjust: exact;}
  }
  
</style>

     <div style="  margin:50px !important">

     
<div class="row" style="padding:0px;">
            
    
<div class="col-md-3">

                <a href="<?php echo e(url('#')); ?>" class="brand-link">
                  <img src='<?php echo e(asset("theme/dist/img/splash.png")); ?>' style="height: 74px;"   >
                  <span class="brand-text font-weight-light"></span>
                </a>


</div>

                  



<div class="col-md-4">
            <div class="" >
              <div class="card-header" >
                <h3 class="card-title" style="text-align: center;float: none;font-weight: bold; color:#000"><?php echo e($payment_voucher->type); ?>  </h3>

                 
              </div>
              <!-- /.card-header -->
              <div class="card-body" style="display: flex;">

              <span style="text-align: center;flex:1;align-self: center;font-weight: bold;"> EG<?php echo e($payment_voucher->id); ?></span>

              <span style="text-align: center;flex:1;align-self: center;font-weight: bold;">  رقم السند </span>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        



          <div class="col-md-5">
            <div class="" >
              <div class="card-header" >
                <h3 class="card-title" style="text-align: center;float: none;font-weight: bold; color:#000"> فرع <?php echo e($payment_voucher->branch->name); ?> </h3>

                 
                <!-- /.card-tools -->
              </div>
              <!-- /.card-header -->
              <div class="card-body" style="display: flex;">
                <span style="text-align: center;flex:1;align-self: center;"><?php echo e($payment_voucher->created_at); ?> </span>
                <span style="text-align: center;flex:1;align-self: center;"> التاريخ و الوقت </span>

              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div>

 
    
        <div class="card">
              
        <?php if($payment_voucher->approve == "Rejected"): ?>
        <?php if( $payment_voucher->cheque_id): ?>
        <div style="width: 139px; height: 95px; position: absolute; left:280px;top: 37px;z-index: 1;">   
        <?php else: ?>
        <div style="width: 139px; height: 95px; position: absolute; left:422px;top: 37px;z-index: 1;">   
        <?php endif; ?>
                      <img class="" src='<?php echo e(asset("theme/dist/img/rejected_.png")); ?>' alt="No Image" style="width:150px;height:100px">
                  </div>
        <?php endif; ?>
                  
              <!-- /.card-header -->
              <div class="card-body p-0" style="border:1px solid">
                <table class="table table-sm">
                  
                 
                  <tbody>
                    <tr>
                     
                      <td style="text-align:center" ><?php echo e($payment_voucher->employee_id?$payment_voucher->employee->name:$payment_voucher->general_name); ?></td>
                       
                      <td><span class="" style="float:right">يصرف الي</span></td>
                    </tr>

                    <tr>
                     
                      <td  style="text-align:center"  ><?php echo e($payment_voucher->pay); ?></td>
                       
                      <td><span class=""  style="float:right">مبلغ و قدرة </span></td>
                    </tr>


                    <tr>
                      
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->safe_account->payment_method->name); ?></td>
                       
                      <td><span style="float:right">طريقة الدفع  </span></td>
                    </tr>




                    <tr>
                      
                    <?php if( $payment_voucher->cheque_id): ?>
                    <tr>
                      
                    <td  style="text-align:center"  >
                    
                    <div style="display: flex; flex-direction:row; justify-content:space-between;padding-left:100px;padding-right:100px" >
                    <div > <?php echo e($payment_voucher->cheque->serial); ?>  : رقم الشيك  </div>
                    
                    <div  > <?php echo e($payment_voucher->cheque->bank->name); ?> : البنك  </div>

                    <div  > <?php echo e($payment_voucher->cheque->date); ?> : تاريخ الاستحقاق   </div>
                    </div>
                    </td>
                       

                      <td><span style="float:right">تفاصيل الشيك  </span></td>
                    </tr>
                    
                    <?php endif; ?>

                    <tr>
                    <?php if($payment_voucher->type == 'سند صرف سيارات' ): ?>
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->car->num  .'    -'. $payment_voucher->car_expense->name); ?></td>
                       
                      <td><span style="float:right">نظير </span></td>
                    
                    <?php endif; ?>

                    <?php if($payment_voucher->type == 'سند صرف موظفين' ): ?>
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->note1); ?></td>
                       
                      <td><span style="float:right">نظير </span></td>
                    
                    <?php endif; ?>

                    <?php if($payment_voucher->type == 'سند صرف ميزانية' ): ?>
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->budget->name); ?></td>
                       
                      <td><span style="float:right">نظير </span></td>
                    
                    <?php endif; ?>


                    <?php if($payment_voucher->type == 'سند صرف عام' ): ?>
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->note1); ?></td>
                       
                      <td><span style="float:right">نظير </span></td>
                    
                    <?php endif; ?>


                    <?php if($payment_voucher->type == 'سند صرف عهدة مربوطة بمبلغ' ): ?>
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->trust->name); ?></td>
                       
                      <td><span style="float:right">نظير </span></td>
                    
                    <?php endif; ?>


                    <?php if($payment_voucher->type == 'سند صرف عهدة غير مربوطة بمبلغ' ): ?>
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->trust->name); ?></td>
                       
                      <td><span style="float:right">نظير </span></td>
                    
                    <?php endif; ?>



                    </tr>
                    


                    <tr>
                      
                    <td  style="text-align:center"  ><?php echo e($payment_voucher->note2); ?></td>
                       
                      <td><span style="float:right">ملاحظات </span></td>
                    </tr>


                  </tbody>
                </table>
              </div>
              <!-- /.card-body -->
            </div>    
         

            <div style="display: flex; flex-direction:row; justify-content:space-between;padding-left:100px;padding-right:100px" >
                    
                    
                    

                    <div  >  
                
                    
  /  تعتمد 
        </div>
                    <div  >
                        
                        <?php echo e($payment_voucher->user->name); ?>

                        /
                             توقيع المحاسب            
                        
                        </div>
                    <div > توقيع المستلم  </div>
                    </div>
                    


<?php $__env->stopSection(); ?>

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