<div class="livewire-component-wrapper">
	<!-- Add Modal -->
          <div wire:ignore.self class="modal fade" id="showModal" tabindex="-1" aria-hidden="true">
            <div class="modal-dialog" role="document">
              <div class="modal-content">
                <form class="needs-validation" novalidate>
				<?php echo csrf_field(); ?>
                <div class="modal-header">
                  <h5 class="modal-title" id="editModalLabel1">View Log</h5>
                  <button type="button" class="btn-close rmv_modal_backdrop" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                  <div class="row">
				  
					<table class="table table-bordered table-striped">
					<thead>
					  <tr>
						<th>Field</th>
						<th>Current Value</th>
						<!--[if BLOCK]><![endif]--><?php if($this->olddata && $this->newdata): ?>
						<th>Old Value</th>
						<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
					  </tr>
					  </thead>
					  <tbody>
					  <tr>
						<td>
							<!--[if BLOCK]><![endif]--><?php if($this->newdata): ?>
							  <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->newdata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							  <span class="d-block mt-2 mb-2  pb-2 pt-2 fw-bolder"><?php echo e($key); ?>:</span>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
								<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
							<!--[if BLOCK]><![endif]--><?php if($this->deletedata): ?>
							  <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->deletedata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							  <span class="d-block mt-2 mb-2  pb-2 pt-2 fw-bolder"><?php echo e($key); ?>:</span>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
								<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
						</td>
						<!--[if BLOCK]><![endif]--><?php if($this->newdata): ?>
						<td>
							  <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->newdata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<?php
									if($key=='UserID'){
										$value=DB::table('users')->where('id',$value)->pluck('name')->first();
									}
									if($key=='WardID'){
										$value=DB::table('wards')->where('WardID',$value)->pluck('WardName')->first();
									}
									if($key=='ZoneID'){
										$value=DB::table('zones')->where('ZoneID',$value)->pluck('ZoneName')->first();
									}
									if($key=='SubCountyID'){
										$value=DB::table('subcounties')->where('SubCountyID',$value)->pluck('SubCountyName')->first();
									}
									if($key=='DepartmentID'){
										$value=DB::table('departments')->where('DepartmentID',$value)->pluck('DepartmentName')->first();
									}
									if($key=='CategoryID'){
										$value=DB::table('revenuecategories')->where('CategoryID',$value)->pluck('CategoryName')->first();
									}
									if($key=='LocationID'){
										$value=DB::table('revenuelocations')->where('LocationID',$value)->pluck('LocationName')->first();
									}
									if($key=='StreamID'){
										$value=DB::table('revenuestreams')->where('StreamID',$value)->pluck('StreamName')->first();
									}
								?>
							  <span class="d-block mt-2 mb-2  pb-2 pt-2"><?php echo e($value); ?></span>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
						</td>
						<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
						<!--[if BLOCK]><![endif]--><?php if($this->olddata): ?>
						<td>
							  <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->olddata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<?php
									if($key=='UserID'){
										$value=DB::table('users')->where('id',$value)->pluck('name')->first();
									}
									if($key=='WardID'){
										$value=DB::table('wards')->where('WardID',$value)->pluck('WardName')->first();
									}
									if($key=='ZoneID'){
										$value=DB::table('zones')->where('ZoneID',$value)->pluck('ZoneName')->first();
									}
									if($key=='SubCountyID'){
										$value=DB::table('subcounties')->where('SubCountyID',$value)->pluck('SubCountyName')->first();
									}
									if($key=='DepartmentID'){
										$value=DB::table('departments')->where('DepartmentID',$value)->pluck('DepartmentName')->first();
									}
									if($key=='CategoryID'){
										$value=DB::table('revenuecategories')->where('CategoryID',$value)->pluck('CategoryName')->first();
									}
									if($key=='LocationID'){
										$value=DB::table('revenuelocations')->where('LocationID',$value)->pluck('LocationName')->first();
									}
									if($key=='StreamID'){
										$value=DB::table('revenuestreams')->where('StreamID',$value)->pluck('StreamName')->first();
									}
								?>
							 <span class="d-block mt-2 mb-2  pb-2 pt-2"><?php echo e($value); ?></span>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
						</td>
						<?php endif; ?><!--[if ENDBLOCK]><![endif]-->
					  </tr>
					  </tbody>
					</table> 
                  </div>	
                </div>
                <div class="modal-footer">
                  <button type="button" class="btn btn-outline-kco rmv_modal_backdrop" data-bs-dismiss="modal">Close</button>
                </div>
			  </form>
              </div>
            </div>
          </div>		  
</div><?php /**PATH C:\xampp\htdocs\kcofbms\resources\views/livewire/activitylogs.blade.php ENDPATH**/ ?>