

<?php $__env->startSection('pageTitle', 'Vega Soft'); ?>
<?php $__env->startSection('page-content'); ?>


<style>

.tiles{
  height:117px;
  border-radius:20px;
  
}
.tiles:hover{
background:red;
color:white;
cursor: pointer;


}
.card-body{
  padding:10px !important;
}



.template_faq {
    background: #edf3fe none repeat scroll 0 0;
}
.panel-group {
    background: #fff none repeat scroll 0 0;
    border-radius: 3px;
    box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.04);
    margin-bottom: 0;

}
#accordion .panel {
    border: medium none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 15px 10px;
}
#accordion .panel-heading {
    border-radius: 30px;
    padding: 0;
}
#accordion .panel-title a {
    background: #ffb900 none repeat scroll 0 0;
    border: 1px solid transparent;
    border-radius: 30px;
    color: #fff;
    display: block;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 20px 12px 50px;
    position: relative;
    transition: all 0.3s ease 0s;
}
#accordion .panel-title a.collapsed {
    background: #e8dfdf none repeat  scroll 0 0;
    border: 1px solid #ddd;
    color: #333;
}
#accordion .panel-title a::after, #accordion .panel-title a.collapsed::after {
    background: #ffb900 none repeat scroll 0 0;
    border: 1px solid transparent;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.58);
    color: #fff;
    content: "-";
    font-family: fontawesome;
    font-size: 25px;
    height: 55px;
    left: -20px;
    line-height: 55px;
    position: absolute;
    text-align: center;
    top: -5px;
    transition: all 0.3s ease 0s;
    width: 55px;
}
#accordion .panel-title a.collapsed::after {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #ddd;
    box-shadow: none;
    color: #333;
    content: "+";
}
#accordion .panel-body {
    background: transparent none repeat scroll 0 0;
    border-top: medium none;
    padding: 20px 25px 10px 9px;
    position: relative;
}
#accordion .panel-body p {
    border-left: 1px dashed #8c8c8c;
    padding-left: 25px;
}


</style>


<input type="hidden" id="table_settings_field" branch_id="" branch_name=""  column_heading="<?= $rows->column_heading;?>" column_width="<?= $rows->column_width;?>" column_alighn="<?= $rows->column_alighn;?>"  column_conversion="<?= $rows->column_conversion;?>" settings_row_id="<?= $id;?>" sp_date_picker="<?= $rows->sp_date_picker;?>"  header_from_date="<?=date('d-m-Y', strtotime('-7 days')); ?>"   header_till_date="<?=date('d-m-Y'); ?>"  sp_sort="<?= $rows->menu_id; ?>"  active_mn="<?= $rows->root;?>"  active_mnt="<?= $rows->menu_type;?>">

<div id="form-div">
<input type="hidden" id="hidden_status" value="0">
<input type="hidden" id="row_id" value="0">

<style>



    
</style>







<div class="page-header form-header" >
  <h3 class="page-title text-white">  <?php echo e(Session::get('uname')); ?> Dashboard</h3>
    <nav aria-label="breadcrumb">
      <ol class="breadcrumb">
      
   
      </ol>
    </nav>
    

    <input type="hidden" id="table_settings_field" branch_id="" branch_name=""  column_heading="<?= $rows->column_heading;?>" column_width="<?= $rows->column_width;?>" column_alighn="<?= $rows->column_alighn;?>"  column_conversion="<?= $rows->column_conversion;?>" settings_row_id="<?= $id;?>" sp_date_picker="<?= $rows->sp_date_picker;?>"  header_from_date="<?=date('d-m-Y', strtotime('-7 days')); ?>"   header_till_date="<?=date('d-m-Y'); ?>"  sp_sort="<?= $rows->menu_id; ?>"   >
    <?php if($rows->sedp != ""): ?>
  <?php $__currentLoopData = explode(',', $rows->sedp); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $z=>$info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
     <?php if($info == "1" && $z==1): ?>
       <input type="hidden" class="additional_btns" btn_text="Edit" btn_click_function="call_edit_modal" btn_class="btn btn-success btn-sm btn-dtbl" col_width="30" >
     <?php endif; ?> 
     <?php if($info == "1" && $z==2): ?>
        <input type="hidden" class="additional_btns" btn_text="Remove" btn_click_function="call_remove_modal" btn_class="btn btn-danger btn-sm btn-dtbl" col_width="40"  >
     <?php endif; ?> 
     <?php if($info == "1" && $z==3): ?>
          <input type="hidden" class="additional_btns" btn_text="Print" btn_click_function="call_print_function2" btn_class="btn btn-info btn-sm btn-dtbl" col_width="40"  >
     <?php endif; ?>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>




<div class="card">  
<input type="text" class="form-control" name="datepicker" id="datepicker" />
    <div class="card-body">
 


<div class="container">
	
			<div class="row">				
				<div class="col-sm-12 col-md-12 col-12-fluid">

<div class="col-lg-3">
<input type="text" class="form-control" id="ser_po" placeholder="Serach Po Number>>">

</div>



					<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
          <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $datas): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<div class="panel panel-default" pa_no="<?php echo e($datas->pa_no); ?>"  pa_id="<?php echo e($datas->pa_id); ?>" onclick="load_details_pa(this);" >
							<div class="panel-heading" role="tab" id="headingOne">
								<h4 class="panel-title">
									<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo e($datas->pa_id); ?>" aria-expanded="true" aria-controls="collapse<?php echo e($datas->pa_id); ?>">
									<?php echo e($datas->pa_no); ?>

									</a>
								</h4>
							</div>
							<div id="collapse<?php echo e($datas->pa_id); ?>" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading<?php echo e($datas->pa_id); ?>">
								<div class="panel-body">
									<p>   <ul class="list-arrow" id="arw<?php echo e($datas->pa_id); ?>" style="font-size:16px;">
                  
                   
                  </ul></p>
								</div>
							</div>
						</div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

					</div>
				</div>	
			</div>			
		</div>

           
    </div>




</div>
</div>

<div id="table-div">
<div class="page-header form-header" >
  <h3 class="page-title text-white">  <?= $rows->menu_name;?> </h3>
    <nav aria-label="breadcrumb">
      <ol class="breadcrumb">
      
        <li class="breadcrumb-item text-white  icon-md " aria-current="page"><i class="icon-plus slide2"></i> </li>
      </ol>
    </nav>
</div>

  

<div class="card">
  


    <div class="col-lg-12 col-sm-12 col-md-12" id="table_result">
                                            
                                            </div>


    
    
</div>
</div>






<script type="text/javascript">
$(document).ready(function(){
 

 var dp= $("#datepicker").datepicker({
      format: "yyyy",
      viewMode: "years", 
      minViewMode: "years",
      autoclose:true
   });   
 
 dp.on('changeYear', function (e) {    



 });
 })


// $(document).ready(function(){




//   $("#ser_po").on("keyup", function() {
//     var value = $(this).val().toLowerCase();
//     $(".panel-default").filter(function() {
//       $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
//     });
//   });
// });



function load_details_pa(elm){

$("#pa_ttl").html('');
$("#arw").html('');  
  pa_id=$(elm).attr('pa_id');
$("#pa_ttl").html($(elm).attr('pa_no'));


  $.ajax({
              type: 'POST',
               async: false,
                url: '/load_details_pa',
                data: {
                     '_token': "<?php echo e(csrf_token()); ?>",
                    
                     pa_id: pa_id
         
                },
                error: function (request, error) {
                    alert("Please Wait, Loading...");
                },
                success: function (response) {
 datas=response;
 
tr='';

 tr+='<li><b><i>Contractor<i/></b>:'+datas[0].c_name+'</li>';
 tr+='<li><b><i>Start Date<i/></b>:'+datas[0].p_asg_dt+'</li>';
 tr+='<li><b><i>Description<i/></b>:'+datas[0].descrpt+'</li>';
 tr+='<li><b><i>Esitmate<i/></b>:'+datas[0].est_cost+'</li>';
 tr+='<li><b><i>Paid Amount<i/></b>:0</li>';
 tr+='<li><b><i>End Date<i/></b>:'+datas[0].completion_dt+'</li>';
          $("#arw"+datas[0].pa_id).html(tr);  
       
        }
          
     });







}


</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\petro\resources\views/contrctr_dash.blade.php ENDPATH**/ ?>