WordPress

Coming Soon

revealability

File "d3886ce5a54f2906ea0ce6af86318ff74761bc09.php"

Full Path: /home/karnava/public_html/center.karnavati.in/storage/framework/views/d3886ce5a54f2906ea0ce6af86318ff74761bc09.php
File size: 37.23 KB
MIME-type: text/html
Charset: utf-8

 <!-- partial:partials/_footer.html -->

        <footer class="footer">

          <div class="d-sm-flex justify-content-center justify-content-sm-between">

            <span class="text-muted text-center text-sm-left d-block d-sm-inline-block">Copyright © 2022. All rights reserved.</span>

            <span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">Hand-crafted & made with <i class="far fa-heart text-danger"></i></span>

          </div>

        </footer>

        <!-- partial -->

      </div>

      <!-- main-panel ends -->

    </div>

    <!-- page-body-wrapper ends -->

  </div>

  <!-- container-scroller -->

  





  <!-- plugins:js -->

  <script src="<?php echo e(url('public/Admin/vendors/js/vendor.bundle.base.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/vendors/js/vendor.bundle.addons.js')); ?>"></script>

  

  <!-- endinject -->

  <!-- Plugin js for this page-->

  <!-- End plugin js for this page-->

  <!-- inject:js -->

  <script src="<?php echo e(url('public/Admin/js/off-canvas.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/hoverable-collapse.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/misc.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/settings.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/todolist.js')); ?>"></script>

  <!-- endinject -->

  <!-- Custom js for this page-->

  <script src="<?php echo e(url('public/Admin/js/dashboard.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/wizard.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/js-grid.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/db.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/file-upload.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/typeahead.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/select2.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/alerts.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/avgrund.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/file-upload.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/typeahead.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/select2.js')); ?>"></script>

  <script src="<?php echo e(url('public/Admin/js/profile-demo.js')); ?>"></script>

  <!-- <script src="<?php echo e(url('public/Admin/dist/pspdfkit.js')); ?>"></script> -->

  <!-- End custom js for this page-->

  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

  <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.0/sweetalert.min.js"></script> -->



<script type="text/javascript">



$('#status1').click(function(e){
  e.preventDefault(); 
  
  var id1 = $('#id1').val();
      let status1 = $('#status1').val();
      
    $.ajax({
      url: "/add_todo/" + id1,
      type:"POST",
      headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
          data:{
            status1:status1,
           
          },
          success:function(response){
             console.log(response);
             location.reload();
             
          },
                
    });
      
      
  });

  $('#status2').click(function(e){
  e.preventDefault(); 
  
  var id2 = $('#id2').val();
      let status2 = $('#status2').val();
      
    $.ajax({
      url: "/add_todo1/" + id2,
      type:"POST",
      headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
          data:{
            status2:status2,
           
          },
          success:function(response){
             console.log(response);
             location.reload();
             
          },
                
    });
      
      
  });
  
$(document).ready(function(){
    $('#myselection').on('change', function(){
    	var demovalue = $(this).val(); 
        $("div.myDiv").hide();
        $("#show"+demovalue).show();
    });
});
$(function() {
      $('a.pl').click(function(e) {
          e.preventDefault();
          $('#cv').append('<input type="file" class="form-control" style="margin-bottom:5px;" id="staff_cv" name="staff_cv[]" value="<?php echo e(old('staff_cv')); ?>">');
      });
      $('a.mi').click(function (e) {
          e.preventDefault();
          if ($('#cv input').length > 1) {
              $('#cv').children().last().remove();
          }
      });
  });

  $(function() {
      $('a.pls').click(function(e) {
          e.preventDefault();
          $('#cvs').append('<input type="file" class="form-control" style="margin-bottom:5px;" id="staff_cv" name="staff_cv[]" value="<?php echo e(old('staff_cv')); ?>">');
      });
      $('a.mis').click(function (e) {
          e.preventDefault();
          if ($('#cvs input').length > 1) {
              $('#cvs').children().last().remove();
          }
      });
  });

  $(function() {
      $('a.plss').click(function(e) {
          e.preventDefault();
          $('#cvss').append('<input type="file" class="form-control" style="margin-bottom:5px;" id="staff_cv" name="staff_cv[]" value="<?php echo e(old('staff_cv')); ?>">');
      });
      $('a.miss').click(function (e) {
          e.preventDefault();
          if ($('#cvss input').length > 1) {
              $('#cvss').children().last().remove();
          }
      });
  });
  

$(document).ready(function(){
  $('#organization').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
      let name_of_applicant = $('#name_of_applicant').val();
      let name_director = $('#name_director').val();
      let nature_organization = $('#nature_organization').val();
      let website_address = $('#website_address').val();
      let establishment_date = $('#establishment_date').val();
      let total_employees = $('#total_employees').val();
      let current_business_detail = $('#current_business_detail').val();
      let legal_registration_detail = $('#legal_registration_detail').val();
      let contact = $('#contact').val();
      let email = $('#email').val();
      let communicate_mode = $('#communicate_mode').val();
      let organisation_name = $('#organisation_name').val();
      let address = $('#address').val();
      let quali_interest = $('#quali_interest').val();
      let delivery_date = $('#delivery_date').val();
    
    $.ajax({
      url: "/add_organization/"+ form_id,
      type:"POST",
      headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
          data:{
            name_of_applicant:name_of_applicant,
            name_director:name_director,
            nature_organization:nature_organization,
            website_address:website_address,
            establishment_date:establishment_date,
            total_employees:total_employees,
            current_business_detail:current_business_detail,
            legal_registration_detail:legal_registration_detail,
            contact:contact,
            email:email,
            communicate_mode:communicate_mode,
            organisation_name:organisation_name,
            address:address,
            quali_interest:quali_interest,
            delivery_date:delivery_date,
          },
          success:function(response){
             console.log(response);
             
            showTab(2,6);
             
          },
          error: function(response) {
           
            $('#name_of_applicantErrorMsg').text(response.responseJSON.errors.name_of_applicant);
            $('#name_directorErrorMsg').text(response.responseJSON.errors.name_director);
            $('#nature_organizationErrorMsg').text(response.responseJSON.errors.nature_organization);
            $('#website_addressErrorMsg').text(response.responseJSON.errors.website_address);
            $('#establishment_dateErrorMsg').text(response.responseJSON.errors.establishment_date);
            $('#employeesErrorMsg').text(response.responseJSON.errors.total_employees);
            $('#current_business_detailErrorMsg').text(response.responseJSON.errors.current_business_detail);
            $('#contactErrorMsg').text(response.responseJSON.errors.contact);
            $('#quali_interestErrorMsg').text(response.responseJSON.errors.quali_interest);
            $('#legal_registration_detailErrorMsg').text(response.responseJSON.errors.legal_registration_detail);
            $('#emailErrorMsg').text(response.responseJSON.errors.email);
            $('#communicate_modeErrorMsg').text(response.responseJSON.errors.communicate_mode);
            $('#organisation_nameErrorMsg').text(response.responseJSON.errors.organisation_name);
            $('#addressErrorMsg').text(response.responseJSON.errors.address);
            $('#delivery_dateErrorMsg').text(response.responseJSON.errors.delivery_date);
          },
          
    });
      
      
  });
    
$('#establishment').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val(); 
  let office_address = $('#office_address').val();
  let other_branch_location = $('#other_branch_location').val();
  let types_of_service = $('#types_of_service').val();
  let types_of_service_2 = $('#types_of_service_2').val();
  let types_of_service_3 = $('#types_of_service_3').val();
  let service_details = $('#service_details').val();
  let service_details_2 = $('#service_details_2').val();
  let service_details_3 = $('#service_details_3').val();
  let product_details = $('#product_details').val();
  let product_details_2 = $('#product_details_2').val();
  let product_details_3 = $('#product_details_3').val();
  let client_data = $('#client_data').val();
  let client_data_2 = $('#client_data_2').val();
  let client_data_3 = $('#client_data_3').val();
 

  
  $.ajax({
    url: "/establishment_store/"+ form_id,
    type:"POST",
    headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
        data:{
           
            office_address:office_address,
            other_branch_location:other_branch_location,
            types_of_service:types_of_service,
            types_of_service_2:types_of_service_2,
            types_of_service_3:types_of_service_3,
            service_details:service_details,
            service_details_2:service_details_2,
            service_details_3:service_details_3,
            product_details:product_details,
            product_details_2:product_details_2,
            product_details_3:product_details_3,
            client_data:client_data,
            client_data_2:client_data_2,
            client_data_3:client_data_3,
         
        },
        success:function(response){
          console.log(response);
          showTab(3,6);
         
        },
        error: function(response) {
            $('#office_addressErrorMsg').text(response.responseJSON.errors.office_address);
            $('#other_branch_locationErrorMsg').text(response.responseJSON.errors.other_branch_location);
            $('#types_of_serviceErrorMsg').text(response.responseJSON.errors.types_of_service);
            $('#service_detailsErrorMsg').text(response.responseJSON.errors.service_details);
            $('#product_detailsErrorMsg').text(response.responseJSON.errors.product_details);
            $('#client_dataErrorMsg').text(response.responseJSON.errors.client_data);
          
        },
    });
    
    
  });

$('#financial').on('submit',function(e){
  e.preventDefault();
  var form_id = $('#form_id').val();
    let year_1 = $('#year_1').val();
    let year_2 = $('#year_2').val();
    let year_3 = $('#year_3').val();
    let revenue_1 = $('#revenue_1').val();
    let revenue_2 = $('#revenue_2').val();
    let revenue_3 = $('#revenue_3').val();
    let gross_1 = $('#gross_1').val();
    let gross_2 = $('#gross_2').val();
    let gross_3 = $('#gross_3').val();
    let net_profit_1 = $('#net_profit_1').val();
    let net_profit_2 = $('#net_profit_2').val();
    let net_profit_3 = $('#net_profit_3').val();
    let remarks_1 = $('#remarks_1').val();
    let remarks_2 = $('#remarks_2').val();
    let remarks_3 = $('#remarks_3').val();
   

  
  $.ajax({
    url: "/financial_store/"+ form_id,
    type:"POST",
    headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
        data:{
          
            year_1:year_1,
            year_2:year_2,
            year_3:year_3,
            revenue_1:revenue_1,
            revenue_2:revenue_2,
            revenue_3:revenue_3,
            gross_1:gross_1,
            gross_2:gross_2,
            gross_3:gross_3,
            net_profit_1:net_profit_1,
            net_profit_2:net_profit_2,
            net_profit_3:net_profit_3,
            remarks_1:remarks_1,
            remarks_2:remarks_2,
            remarks_3:remarks_3,
         
        },
        success:function(response){
          console.log(response);
          showTab(4,6);
        },
        error: function(response) {
            $('#year_1ErrorMsg').text(response.responseJSON.errors.year_1);
            $('#year_2ErrorMsg').text(response.responseJSON.errors.year_2);
            $('#year_3ErrorMsg').text(response.responseJSON.errors.year_3);
            $('#revenue_1ErrorMsg').text(response.responseJSON.errors.revenue_1);
            $('#revenue_2ErrorMsg').text(response.responseJSON.errors.revenue_2);
            $('#revenue_3ErrorMsg').text(response.responseJSON.errors.revenue_3);
            $('#gross_1ErrorMsg').text(response.responseJSON.errors.gross_1);
            $('#gross_2ErrorMsg').text(response.responseJSON.errors.gross_2);
            $('#gross_3ErrorMsg').text(response.responseJSON.errors.gross_3);
            $('#net_profit_1ErrorMsg').text(response.responseJSON.errors.net_profit_1);
            $('#net_profit_2ErrorMsg').text(response.responseJSON.errors.net_profit_2);
            $('#net_profit_3ErrorMsg').text(response.responseJSON.errors.net_profit_3);
            $('#remarks_1ErrorMsg').text(response.responseJSON.errors.remarks_1);
            $('#remarks_2ErrorMsg').text(response.responseJSON.errors.remarks_2);
            $('#remarks_3ErrorMsg').text(response.responseJSON.errors.remarks_3);
          
        },
    });
    
     
  });

  $('#statutory').on('submit',function(e){
    e.preventDefault(); 
    var form_id = $('#form_id').val();
    let financial_rescords_confirmation = $('#financial_rescords_confirmation').val();
    let financial_records_justification = $('#financial_records_justification').val();
    let adverse_remarks_confirmation = $('#adverse_remarks_confirmation').val();
    let adverse_remarks_justification = $('#adverse_remarks_justification').val();
    let q3_not_applicable = $('#q3_not_applicable').val();
    let notice_confirmation = $('#notice_confirmation').val();
    let notice_justification = $('#notice_justification').val();
    let q4_not_applicable = $('#q4_not_applicable').val();
    let prosecuted_confirmation = $('#prosecuted_confirmation').val();
    let prosecuted_justification = $('#prosecuted_justification').val();
    


$.ajax({
  url: "/statutory_store/"+ form_id,
  type:"POST",
  headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
      data:{
         
          financial_rescords_confirmation:financial_rescords_confirmation,
          financial_records_justification:financial_records_justification,
          adverse_remarks_confirmation:adverse_remarks_confirmation,
          adverse_remarks_justification:adverse_remarks_justification,
          q3_not_applicable:q3_not_applicable,
          notice_confirmation:notice_confirmation,
          notice_justification:notice_justification,
          q4_not_applicable:q4_not_applicable,
          prosecuted_confirmation:prosecuted_confirmation,
          prosecuted_justification:prosecuted_justification,
       
      },
      success:function(response){
        console.log(response);
        showTab(5,6);
       
      },
      error: function(response) {
        $('#financial_rescords_confirmationErrorMsg').text(response.responseJSON.errors.financial_rescords_confirmation);
        $('#financial_records_justificationErrorMsg').text(response.responseJSON.errors.financial_records_justification);
        $('#adverse_remarks_confirmationErrorMsg').text(response.responseJSON.errors.adverse_remarks_confirmation);
        $('#adverse_remarks_justificationErrorMsg').text(response.responseJSON.errors.adverse_remarks_justification);
        $('#notice_confirmationErrorMsg').text(response.responseJSON.errors.notice_confirmation);
        $('#notice_justificationErrorMsg').text(response.responseJSON.errors.notice_justification);
        $('#prosecuted_confirmationErrorMsg').text(response.responseJSON.errors.prosecuted_confirmation);
        $('#prosecuted_justificationErrorMsg').text(response.responseJSON.errors.prosecuted_justification);
        
      },
  });
  
  
});


$('#resource').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
  let head_status = $('#head_status').val();
  let branch_status = $('#branch_status').val();
  let head_area = $('#head_area').val();
  let branch_area = $('#branch_area').val();
  let head_infrastructure = $('#head_infrastructure').val();
  let branch_infrastructure = $('#branch_infrastructure').val();



$.ajax({
url: "/resource_store/"+ form_id,
type:"POST",
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
    data:{
       
        head_status:head_status,
        branch_status:branch_status,
        head_area:head_area,
        branch_area:branch_area,
        head_infrastructure:head_infrastructure,
        branch_infrastructure:branch_infrastructure,
     
    },
    success:function(response){
      console.log(response);
      showTab(6,6);
    },
    error: function(response) {
      $('#head_statusErrorMsg').text(response.responseJSON.errors.head_status);
      $('#branch_statusErrorMsg').text(response.responseJSON.errors.branch_status);
      $('#head_areaErrorMsg').text(response.responseJSON.errors.head_area);
      $('#branch_areaErrorMsg').text(response.responseJSON.errors.branch_area);
      $('#head_infrastructureErrorMsg').text(response.responseJSON.errors.head_infrastructure);
      $('#branch_infrastructureErrorMsg').text(response.responseJSON.errors.branch_infrastructure);
    },
});


});

$('#staff').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
  let delivery_team = $('#delivery_team').val();
  let support_team = $('#support_team').val();
  let marketing_team = $('#marketing_team').val();
  let technology_team = $('#technology_team').val();
  let assessment_team = $('#assessment_team').val();
 

$.ajax({
url: "/staff_store/"+ form_id,
type:"POST",
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
    data:{
       
      delivery_team:delivery_team,
      support_team:support_team,
      marketing_team:marketing_team,
      technology_team:technology_team,
      assessment_team:assessment_team,
      
    },
    success:function(response){
      
      console.log(response);
      
      window.location.href = "view_document";
    },
    error: function(response) {
      $('#delivery_teamErrorMsg').text(response.responseJSON.errors.delivery_team);
      $('#support_teamErrorMsg').text(response.responseJSON.errors.support_team);
      $('#marketing_teamErrorMsg').text(response.responseJSON.errors.marketing_team);
      $('#technology_teamErrorMsg').text(response.responseJSON.errors.technology_team);
      $('#assessment_teamErrorMsg').text(response.responseJSON.errors.assessment_team);
      
    },
});


});

$('#organization_update').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
      let name_of_applicant = $('#name_of_applicant').val();
      let name_director = $('#name_director').val();
      let nature_organization = $('#nature_organization').val();
      let website_address = $('#website_address').val();
      let establishment_date = $('#establishment_date').val();
      let total_employees = $('#total_employees').val();
      let current_business_detail = $('#current_business_detail').val();
      let legal_registration_detail = $('#legal_registration_detail').val();
      let contact = $('#contact').val();
      let email = $('#email').val();
      let communicate_mode = $('#communicate_mode').val();
      let organisation_name = $('#organisation_name').val();
      let address = $('#address').val();
      let quali_interest = $('#quali_interest').val();
      let delivery_date = $('#delivery_date').val();
    $.ajax({
      url: "/update_organization/" + form_id,
      type:"POST",
      headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
          data:{
            name_of_applicant:name_of_applicant,
            name_director:name_director,
            nature_organization:nature_organization,
            website_address:website_address,
            establishment_date:establishment_date,
            total_employees:total_employees,
            current_business_detail:current_business_detail,
            legal_registration_detail:legal_registration_detail,
            contact:contact,
            email:email,
            communicate_mode:communicate_mode,
            organisation_name:organisation_name,
            address:address,
            quali_interest:quali_interest,
            delivery_date:delivery_date,
          },
          success:function(response){
             console.log(response);
             
            showTab(2,6);
             
          },
          error: function(response) {
           
            $('#name_of_applicantErrorMsg').text(response.responseJSON.errors.name_of_applicant);
            $('#name_directorErrorMsg').text(response.responseJSON.errors.name_director);
            $('#nature_organizationErrorMsg').text(response.responseJSON.errors.nature_organization);
            $('#website_addressErrorMsg').text(response.responseJSON.errors.website_address);
            $('#establishment_dateErrorMsg').text(response.responseJSON.errors.establishment_date);
            $('#total_employeesErrorMsg').text(response.responseJSON.errors.total_employees);
            $('#current_business_detailErrorMsg').text(response.responseJSON.errors.current_business_detail);
            $('#contactErrorMsg').text(response.responseJSON.errors.contact);
            $('#legal_registration_detailErrorMsg').text(response.responseJSON.errors.legal_registration_detail);
            $('#emailErrorMsg').text(response.responseJSON.errors.email);
            $('#communicate_modeErrorMsg').text(response.responseJSON.errors.communicate_mode);
            $('#organisation_nameErrorMsg').text(response.responseJSON.errors.organisation_name);
            $('#addressErrorMsg').text(response.responseJSON.errors.address);
            $('#quali_interestErrorMsg').text(response.responseJSON.errors.quali_interest);
            $('#delivery_dateErrorMsg').text(response.responseJSON.errors.delivery_date);
            
          },
          
    });
      
      
  });

  $('#establishment_update').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
  let office_address = $('#office_address').val();
  let other_branch_location = $('#other_branch_location').val();
  let types_of_service = $('#types_of_service').val();
  let types_of_service_2 = $('#types_of_service_2').val();
  let types_of_service_3 = $('#types_of_service_3').val();
  let service_details = $('#service_details').val();
  let service_details_2 = $('#service_details_2').val();
  let service_details_3 = $('#service_details_3').val();
  let product_details = $('#product_details').val();
  let product_details_2 = $('#product_details_2').val();
  let product_details_3 = $('#product_details_3').val();
  let client_data = $('#client_data').val();
  let client_data_2 = $('#client_data_2').val();
  let client_data_3 = $('#client_data_3').val();
    
    
    $.ajax({
      url: "/update_establishment/" + form_id,
      type:"POST",
      headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
          data:{
            office_address:office_address,
            other_branch_location:other_branch_location,
            types_of_service:types_of_service,
            types_of_service_2:types_of_service_2,
            types_of_service_3:types_of_service_3,
            service_details:service_details,
            service_details_2:service_details_2,
            service_details_3:service_details_3,
            product_details:product_details,
            product_details_2:product_details_2,
            product_details_3:product_details_3,
            client_data:client_data,
            client_data_2:client_data_2,
            client_data_3:client_data_3,
           
          },
          success:function(response){
             console.log(response);
             
            showTab(3,6);
             
          },
          error: function(response) {
           
            $('#office_addressErrorMsg').text(response.responseJSON.errors.office_address);
            $('#other_branch_locationErrorMsg').text(response.responseJSON.errors.other_branch_location);
            $('#types_of_serviceErrorMsg').text(response.responseJSON.errors.types_of_service);
            $('#service_detailsErrorMsg').text(response.responseJSON.errors.service_details);
            $('#product_detailsErrorMsg').text(response.responseJSON.errors.product_details);
            $('#client_dataErrorMsg').text(response.responseJSON.errors.client_data);
            
          },
          
    });
      
      
  });

  $('#financial_update').on('submit',function(e){
  e.preventDefault();
  var form_id = $('#form_id').val();
    let year_1 = $('#year_1').val();
    let year_2 = $('#year_2').val();
    let year_3 = $('#year_3').val();
    let revenue_1 = $('#revenue_1').val();
    let revenue_2 = $('#revenue_2').val();
    let revenue_3 = $('#revenue_3').val();
    let gross_1 = $('#gross_1').val();
    let gross_2 = $('#gross_2').val();
    let gross_3 = $('#gross_3').val();
    let net_profit_1 = $('#net_profit_1').val();
    let net_profit_2 = $('#net_profit_2').val();
    let net_profit_3 = $('#net_profit_3').val();
    let remarks_1 = $('#remarks_1').val();
    let remarks_2 = $('#remarks_2').val();
    let remarks_3 = $('#remarks_3').val();

  
  $.ajax({
    url: "/update_financial/" + form_id,
    type:"POST",
    headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
        data:{
           
            year_1:year_1,
            year_2:year_2,
            year_3:year_3,
            revenue_1:revenue_1,
            revenue_2:revenue_2,
            revenue_3:revenue_3,
            gross_1:gross_1,
            gross_2:gross_2,
            gross_3:gross_3,
            net_profit_1:net_profit_1,
            net_profit_2:net_profit_2,
            net_profit_3:net_profit_3,
            remarks_1:remarks_1,
            remarks_2:remarks_2,
            remarks_3:remarks_3,
         
        },
        success:function(response){
          console.log(response);
          showTab(4,6);
        },
        error: function(response) {
            $('#year_1ErrorMsg').text(response.responseJSON.errors.year_1);
            $('#year_2ErrorMsg').text(response.responseJSON.errors.year_2);
            $('#year_3ErrorMsg').text(response.responseJSON.errors.year_3);
            $('#revenue_1ErrorMsg').text(response.responseJSON.errors.revenue_1);
            $('#revenue_2ErrorMsg').text(response.responseJSON.errors.revenue_2);
            $('#revenue_3ErrorMsg').text(response.responseJSON.errors.revenue_3);
            $('#gross_1ErrorMsg').text(response.responseJSON.errors.gross_1);
            $('#gross_2ErrorMsg').text(response.responseJSON.errors.gross_2);
            $('#gross_3ErrorMsg').text(response.responseJSON.errors.gross_3);
            $('#net_profit_1ErrorMsg').text(response.responseJSON.errors.net_profit_1);
            $('#net_profit_2ErrorMsg').text(response.responseJSON.errors.net_profit_2);
            $('#net_profit_3ErrorMsg').text(response.responseJSON.errors.net_profit_3);
            $('#remarks_1ErrorMsg').text(response.responseJSON.errors.remarks_1);
            $('#remarks_2ErrorMsg').text(response.responseJSON.errors.remarks_2);
            $('#remarks_3ErrorMsg').text(response.responseJSON.errors.remarks_3);
          
        },
    });
    
     
  });

$('#statutory_update').on('submit',function(e){
    e.preventDefault(); 
    var form_id = $('#form_id').val();
    let financial_rescords_confirmation = $('#financial_rescords_confirmation').val();
    let financial_records_justification = $('#financial_records_justification').val();
    let adverse_remarks_confirmation = $('#adverse_remarks_confirmation').val();
    let adverse_remarks_justification = $('#adverse_remarks_justification').val();
    let q3_not_applicable = $('#q3_not_applicable').val();
    let notice_confirmation = $('#notice_confirmation').val();
    let notice_justification = $('#notice_justification').val();
    let q4_not_applicable = $('#q4_not_applicable').val();
    let prosecuted_confirmation = $('#prosecuted_confirmation').val();
    let prosecuted_justification = $('#prosecuted_justification').val();
   


$.ajax({
  url: "/update_satutory/" + form_id,
  type:"POST",
  headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
      data:{
          
          financial_rescords_confirmation:financial_rescords_confirmation,
          financial_records_justification:financial_records_justification,
          adverse_remarks_confirmation:adverse_remarks_confirmation,
          adverse_remarks_justification:adverse_remarks_justification,
          q3_not_applicable:q3_not_applicable,
          notice_confirmation:notice_confirmation,
          notice_justification:notice_justification,
          q4_not_applicable:q4_not_applicable,
          prosecuted_confirmation:prosecuted_confirmation,
          prosecuted_justification:prosecuted_justification,
       
      },
      success:function(response){
        console.log(response);
        showTab(5,6);
       
      },
      error: function(response) {
        $('#financial_rescords_confirmationErrorMsg').text(response.responseJSON.errors.financial_rescords_confirmation);
        $('#financial_records_justificationErrorMsg').text(response.responseJSON.errors.financial_records_justification);
        $('#adverse_remarks_confirmationErrorMsg').text(response.responseJSON.errors.adverse_remarks_confirmation);
        $('#adverse_remarks_justificationErrorMsg').text(response.responseJSON.errors.adverse_remarks_justification);
        $('#notice_confirmationErrorMsg').text(response.responseJSON.errors.notice_confirmation);
        $('#notice_justificationErrorMsg').text(response.responseJSON.errors.notice_justification);
        $('#prosecuted_confirmationErrorMsg').text(response.responseJSON.errors.prosecuted_confirmation);
        $('#prosecuted_justificationErrorMsg').text(response.responseJSON.errors.prosecuted_justification);
        
      },
  });
  
  
});

$('#resource_update').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
  let head_status = $('#head_status').val();
  let branch_status = $('#branch_status').val();
  let head_area = $('#head_area').val();
  let branch_area = $('#branch_area').val();
  let head_infrastructure = $('#head_infrastructure').val();
  let branch_infrastructure = $('#branch_infrastructure').val();
  

$.ajax({
url: "/update_resource/" + form_id,
type:"POST",
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
    data:{
        head_status:head_status,
        branch_status:branch_status,
        head_area:head_area,
        branch_area:branch_area,
        head_infrastructure:head_infrastructure,
        branch_infrastructure:branch_infrastructure,
     
    },
    success:function(response){
      console.log(response);
      showTab(6,6);
    },
    error: function(response) {
      $('#head_statusErrorMsg').text(response.responseJSON.errors.head_status);
      $('#branch_statusErrorMsg').text(response.responseJSON.errors.branch_status);
      $('#head_areaErrorMsg').text(response.responseJSON.errors.head_area);
      $('#branch_areaErrorMsg').text(response.responseJSON.errors.branch_area);
      $('#head_infrastructureErrorMsg').text(response.responseJSON.errors.head_infrastructure);
      $('#branch_infrastructureErrorMsg').text(response.responseJSON.errors.branch_infrastructure);
    },
});


});

$('#staff_update').on('submit',function(e){
  e.preventDefault(); 
  var form_id = $('#form_id').val();
  let delivery_team = $('#delivery_team').val();
  let support_team = $('#support_team').val();
  let marketing_team = $('#marketing_team').val();
  let technology_team = $('#technology_team').val();
  let assessment_team = $('#assessment_team').val();
 

$.ajax({
url: "/update_staff/" + form_id,
type:"POST",
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
    data:{
      delivery_team:delivery_team,
      support_team:support_team,
      marketing_team:marketing_team,
      technology_team:technology_team,
      assessment_team:assessment_team,
     
    },
    success:function(response){
      
      console.log(response);
      location.reload();
     
    },
    error: function(response) {
      $('#delivery_teamErrorMsg').text(response.responseJSON.errors.delivery_team);
      $('#support_teamErrorMsg').text(response.responseJSON.errors.support_team);
      $('#marketing_teamErrorMsg').text(response.responseJSON.errors.marketing_team);
      $('#technology_teamErrorMsg').text(response.responseJSON.errors.technology_team);
      $('#assessment_teamErrorMsg').text(response.responseJSON.errors.assessment_team);
    },
});


});



});






$(document).ready(function() {

        $(".message").click(function() { 

         

          // var url = $(this).data('url');

         var id = $(this).data('id');

         $.ajax({ 

          type: "GET",

          url: "ticket_followup/" +id,       

          success: function (data) {

            console.log(data);

            $("#subject").html(data.subject);

            $("#id").html(data.id);

            $("#ticket_id").val(data.id);

            $("#message").html(data.message);

            $("#attachment").html(data.attachment);

            $("#status").html(data.status);

          }

        });

      });

      });



      $(document).ready(function() {

        $(".message").click(function() { 

         

          // var url = $(this).data('url');

         var ticket_id = $(this).data('id');

         $.ajax({ 

          type: "GET",

          url: "ticket_all/" +ticket_id,       

          success: function (data) {

            var response = '';

            $.each(data.data4, function(key,value) {

              // response = response + '<ul><li>'+value.remarks+'</li></ul>';

              response = response + '<table class="table table-striped">' + '<thead>' + '<tr>' + '<th>' + '</th>'
               + '</tr>' +'</thead>' + '<tbody>' + '<tr>' + '<td>' + '<div class="col-12 row">' + 
               '<div class="col-2 moh">' + '<img src="<?php echo e(url('public/Admin/images/user.png')); ?>" alt="profile" class="img-lg rounded-circle" style="height:40px; width:40px;"/>' + '</div>'+ 
               '<div class=" col-6 moh">' + value.ques + '<br>'+ '<br>'+ value.remarks + '</div>' + '<div class="col-3 moh">' + 
               '<label class="badge badge-danger badge-pill">' + 'FollowUp Date:' +value.followup_date + '</label>' +'</div>' + '</td>' + '</tr>' + '</tbody>' + 
               '</table>'
              // console.log('tretr');

              console.log(value)



            }); 



            $('#reply_msg').html(response);

            // console.log(data);

            // $("#remarks").html(data.remarks);

            

            // $("#ques").html(data.ques);

            // $("#attachfile").html(data.attachfile);

          }

        });

      });

      });

    







$('.mail-list').click(function(e){

  

  console.log($(this).data('id'));

  

 

});



function printDiv() {
    var divContents = document.getElementById("GFG").innerHTML;
    var a = window.open('', '', 'height=500, width=500');
    a.document.write('<html>');
    a.document.write('<body > <h1> <br>');
    a.document.write(divContents);
    a.document.write('</body></html>');
    a.document.close();
    a.print();
}







$('.btnDel').click(function(e) {

  e.preventDefault();

  var url = $(this).data('delete_url');

  swal({

      title: "Are you sure?",

      text: "You won't be able to revert this!",

      icon: "warning",

      buttons: [

        'No',

        'Yes, delete it!'

      ],

      dangerMode: true,

    }).then(function(isConfirm) {

      if (isConfirm) {

        window.location = url;

      } else {

        //swal("Cancelled", "Your imaginary file is safe :)", "error");

      }

    });

});



function showTab(selected, total)

{

  for(i = 1; i <= total; i += 1)

  {

    document.getElementById('tabs-' + i).style.display = 'none';

  }



  document.getElementById('tabs-' + selected).style.display = 'block';

}



function showDiv(id){

  document.getElementById("content-1").style.display = "none";

  document.getElementById(id).style.display = 'block';

}



// function showcollapse(id){

//   document.getElementById("demo1").style.display = "none";

//   document.getElementById(id).style.display = 'block';

// }





</script>





</body>





</html>

<?php /**PATH /home/opaldemo/public_html/center.iimtstudies.co.uk/resources/views/User/Layout/footer.blade.php ENDPATH**/ ?>