@extends('layout.adminapp')
@section('page-css')

<link rel="stylesheet" href="{!! asset('css/hover-min.css') !!}">
<link rel="stylesheet" href="{!! asset('css/css/izitoast.css') !!}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css" />
    <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<style media="screen">
    .fid {
        color: #f9971a !important;
    }
</style>
@endsection
@section('page-content')

<section class="content bg-light">
    @include('sweet::alert')
    <div class="content-inner container content-docs">
      <nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="{!! route('admin.dashboard') !!}">Dashboard</a></li>
    <li class="breadcrumb-item"><a href="{!! route('admin.fyei.evaluation.index') !!}">FYEI Evaluation</a></li>
    <li class="breadcrumb-item active">{{$user->name}} Pre Condition</li>
  </ol>
</nav>
    <h5 class="text-center text-uppercase">FYEI Assessment checklist</h5>
    <div class="row mt-2 mb-4 d-flex justify-content-center">
        <div class="col-lg hvr-float">
            <div class="card border-light">
                <div class="card-body text-center">
                    <h6 class="fid">NAME OF ENTREPRENEUR  </h6>
                    <p>{{ $user->applicant_name }} </p>
                </div>
            </div>
        </div>
        <div class="col-lg hvr-float">
            <div class="card border-light">
                <div class="card-body text-center">
                    <h6 class="fid">BUSINESS</h6>
                    <p>{{ $user->company_name }}   </p>
                </div>
            </div>
        </div>



    </div>
    <div class="row mt-2 mb-4 d-flex justify-content-center">
      {{-- <div class="col-lg hvr-float">
          <div class="card border-light">
              <div class="card-body text-center">
                  <h6 class="fid">PURPOSE</h6>
                  <p>{{ $user->grant_purpose }}   </p>
              </div>
          </div>
      </div> --}}
      <div class="col-lg hvr-float">
          <div class="card border-light">
              <div class="card-body text-center">
                  <h6 class="fid">INDUSTRY</h6>
                  <p>{{ $industrytype }}  </p>
              </div>
          </div>
      </div>
      {{-- <div class="col-lg hvr-float">
          <div class="card border-light">
              <div class="card-body text-center">
                  <h6 class="fid">AMOUNT </h6>
                  <p>{{ $user->grant_amt }}</p>
              </div>
          </div>
      </div> --}}
      <div class="col-lg hvr-float">
          <div class="card border-light">
              <div class="card-body text-center">
                  <h6 class="fid">TENOR</h6>
                  <p>{{ $user->proposed_facility_tenure }}</p>
              </div>
          </div>
      </div>

    </div>
        <div class="card">
            <div class="card-body">
<h5 class="text-center">Score Scheme</h5>
              <div class="row">
                <div class="col-lg border text-center">
                  Poor <br> 1
                </div>
                <div class="col-lg border text-center">
                  Fair <br>2
                </div>
                <div class="col-lg border text-center">
                  Good <br> 3
                </div>
                <div class="col-lg border text-center">
                  Very Good <br> 4
                </div>
                <div class="col-lg border text-center">
                  Excellent <br> 5
                </div>

              </div>

              <form class="mt-5 kfjh" id="conflicfont" action="{!! route('admin.evaluate.store') !!}" method="post">
                @csrf
                <small class="fid">Please note, all fields are required</small>
                <hr> <span class="fid">Business Model Canvas  (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    1.1 <strong>Can you identify the problem being solved and  the business proposition offered to solve this problem? Is there clarity on the targeted customers and market? How viable is the business concept? The Business Model Canvas should be clear and well written to give a general overview of the business operations  (Guide: Scores will be awarded based on how the entrepreneur y clearly and adequately answered  each segment in the BMC in order to obtain the full score)- 5%</strong>

                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="business_model_canvas_1" class="form-control" value="{{old('business_model_canvas_1',$eva->bus_model_canvas_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea name="business_model_canvas_1_comment" rows="8" class="form-control" cols="80">{{old('business_model_canvas_1_comment',$eva->bus_model_canvas_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div> <hr> <span class="fid">Business  Concept and Idea (15%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    2.1 <strong>Did the entrepreneur expain into details his/her the business idea?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="business_concept_1" class="form-control" value="{{old('business_concept_1',$eva->bus_concept_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="business_concept_1_comment" rows="8" class="form-control"  cols="80">{{old('business_concept_1_comment',$eva->bus_concept_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <div class="row">
                  <div class="col-lg">
                    2.2 <strong>Did the entrepreneur demonstrate how workable and practical the business ideas is?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="business_concept_2" class="form-control" value="{{old('business_concept_2',$eva->bus_concept_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="business_concept_2_comment" rows="8" class="form-control"  cols="80">{{old('business_concept_2_comment',$eva->bus_concept_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <div class="row">
                  <div class="col-lg">
                    2.3 <strong>Does the idea bring unique value to the market?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="business_concept_3" class="form-control" value="{{old('business_concept_3',$eva->bus_concept_3??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="business_concept_3_comment" rows="8" class="form-control"  cols="80">{{old('business_concept_3_comment',$eva->bus_concept_3_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <hr> <span class="fid">Organizational and Management team (7%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    3.1 <strong>Did the entrepreneur demonstrate comprehension of the right legal structure of the business. Is there demonstration of understanding for compliance to relevant licensing, statutory requirements and internal structuring of the business?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="man_team_1" class="form-control" value="{{old('man_team_1',$eva->man_team_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="man_team_1_comment" rows="8" class="form-control"  cols="80">{{old('man_team_1_comment',$eva->man_team_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <div class="row">
                  <div class="col-lg">
                    3.2 <strong>Did the  entrepreneur demonstrate he/she's ability to effectively launch, develop and grow the business with a team?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="man_team_2" class="form-control" value="{{old('man_team_2',$eva->man_team_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="man_team_2_comment" rows="8" class="form-control"  cols="80">{{old('man_team_2_comment',$eva->man_team_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Industry Analysis (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    4.1 <strong>Did the entrepreneur demonstrate understanding of the legal and regulatory framework of the industry?  </strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="industry_analysis_1" class="form-control" value="{{old('industry_analysis_1',$eva->industry_ana_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="industry_analysis_1_comment" rows="8" class="form-control"  cols="80">{{old('industry_analysis_1_comment',$eva->industry_ana_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    4.2 <strong>Did the entrepreneur demonstrate  understanding of the demand and supply factors in the industry?  -Players in  industry value chain, Value and Volume Analysis. Are there indentifiable opportunities and threats in the industry? </strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="industry_analysis_2" class="form-control" value="{{old('industry_analysis_2',$eva->industry_ana_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="industry_analysis_2_comment" rows="8" class="form-control" cols="80">{{old('industry_analysis_2_comment',$eva->industry_ana_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Operations and Production Management  (10%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    5.1 <strong>Did the entrepreneur outline the key processes, resources and systems to deliver the expected value? (Production plan, systems, sequence of production, processing activities, manpower plan)</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="production_man_1" class="form-control" value="{{old('production_man_1',$eva->production_man_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="production_man_1_comment" rows="8" class="form-control"  cols="80">{{old('production_man_1_comment',$eva->production_man_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <div class="row">
                  <div class="col-lg">
                    5.2 <strong>Does the business operation  have considerations for  quality control, management structures/systems/standards?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="production_man_2" class="form-control" value="{{old('production_man_2',$eva->production_man_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="production_man_2_comment" rows="8" class="form-control"  cols="80">{{old('production_man_2_comment',$eva->production_man_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Distribution Analysis (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    6.1 <strong>Is the business located in area which is easily accessible?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="distribution_analysis_1" class="form-control" value="{{old('distribution_analysis_1',$eva->distribution_ana_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="distribution_analysis_1_comment" rows="8" class="form-control"  cols="80">{{old('distribution_analysis_1_comment',$eva->distribution_ana_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    6.2 <strong>Does the business have well defined channels / outlets to offer goods and services?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="distribution_analysis_2" class="form-control" value="{{old('distribution_analysis_2',$eva->distribution_ana_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="distribution_analysis_2_comment" rows="8" class="form-control"  cols="80">{{old('distribution_analysis_2_comment',$eva->distribution_ana_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Supplier Analysis (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    7.1 <strong>Did the entrepreneur demonstrate that there is a consistent supply of raw materials / inputs to be used in the production process?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="supplier_analysis_1" class="form-control" value="{{old('supplier_analysis_1',$eva->supplier_ana_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="supplier_analysis_1_comment" rows="8" class="form-control" cols="80">{{old('supplier_analysis_1_comment',$eva->supplier_ana_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    7.2 <strong>Does the business rely on a single supplier or has several suppliers (supplier concerntration)</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="supplier_analysis_2" class="form-control" value="{{old('supplier_analysis_2',$eva->supplier_ana_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="supplier_analysis_2_comment" rows="8" class="form-control"  cols="80">{{old('supplier_analysis_2_comment',$eva->supplier_ana_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    7.3 <strong>Are there favourable terms of trade between entreprenuer and the supplier</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="supplier_analysis_3" class="form-control" value="{{old('supplier_analysis_3',$eva->supplier_ana_3??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="supplier_analysis_3_comment" rows="8" class="form-control"  cols="80">{{old('supplier_analysis_3_comment',$eva->supplier_ana_3_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Offtaker Analysis (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    8.1 <strong>Did the entrepreneur assess his /her primary offtaker with regards to their reputation, concerntration, repayment capacity, mode of payment and  terms of trade?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="offtaker_analysis_1" class="form-control" value="{{old('offtaker_analysis_1',$eva->offtaker_ana_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="offtaker_analysis_1_comment" rows="8" class="form-control"  cols="80">{{old('offtaker_analysis_1_comment',$eva->offtaker_ana_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Product / Service Analysis (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    9.1 <strong>Did the entrepreneur assess his product / service in terms of its demand and relevance in the future, substitutability, elasticity etc.</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="service_analysis_1" class="form-control" value="{{old('service_analysis_1',$eva->service_ana_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="service_analysis_1_comment" rows="8" class="form-control"  cols="80">{{old('service_analysis_1_comment',$eva->service_ana_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Markets and Marketing Strategy 10%</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    10.1 <strong>Did the entrepreneur describe  his/her chosen market and its characteristics, opportunity for growth, barriers to entry, threats etc?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="market_strategy_1" class="form-control" value="{{old('market_strategy_1',$eva->market_strategy_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="market_strategy_1_comment" rows="8" class="form-control"  cols="80">{{old('market_strategy_1_comment',$eva->market_strategy_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    10.2 <strong>Does the businesss plan / BMC describe the competiton currently in the maket, current product offerings, substitutes and complementary products, foreign good, prices of competitors etc.?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="market_strategy_2" class="form-control" value="{{old('market_strategy_2',$eva->market_strategy_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="market_strategy_2_comment" rows="8" class="form-control"  cols="80">{{old('market_strategy_2_comment',$eva->market_strategy_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    10.3 <strong>Did the entrepreneur clarify his/her competive advantage and marketing strategy  using the Marketing Ps-Product, Price, Promotion, Place, Physical Evidence, People, Process, Productivity.</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="market_strategy_3" class="form-control" value="{{old('market_strategy_3',$eva->market_strategy_3??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="market_strategy_3_comment" rows="8" class="form-control"  cols="80">{{old('market_strategy_3_comment',$eva->market_strategy_3_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Environmental & Social Impact  (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    11.1 <strong>Did the entrepreneur demonstrate the business' contribution to the society?  How the business will impact the lives in the community/society? Which social services will the business provide?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="social_impact_1" class="form-control" value="{{old('social_impact_1',$eva->social_impact_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="social_impact_1_comment" rows="8" class="form-control"  cols="80">{{old('social_impact_1_comment',$eva->social_impact_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    11.2 <strong>Did the entrepreneur factor environmental concerns in his/her business operations and production?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="social_impact_2" class="form-control" value="{{old('social_impact_2',$eva->social_impact_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="social_impact_2_comment" rows="8" class="form-control"  cols="80">{{old('social_impact_2_comment',$eva->social_impact_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Investment requirment,Financial projections and Analysis (15%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    12.1 <strong>Did the entrepreneur clarify his or her Initial investment requirement? Start up assets and expenses.</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="investment_analysis_1" class="form-control" value="{{old('investment_analysis_1',$eva->investment_ana_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="investment_analysis_1_comment" rows="8" class="form-control"  cols="80">{{old('investment_analysis_1_comment',$eva->investment_ana_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    12.2 <strong>How realistic is the funding strategy/financing strategy for to impact cashflow of the busness?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="investment_analysis_2" class="form-control" value="{{old('investment_analysis_2',$eva->investment_ana_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="investment_analysis_2_comment" rows="8" class="form-control" cols="80">{{old('investment_analysis_2_comment',$eva->investment_ana_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    12.3 <strong>Did the entrepreneur clarify the various assumptions used in the financial plan projections and are they realistic? </strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="investment_analysis_3" class="form-control" value="{{old('investment_analysis_3',$eva->investment_ana_3??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="investment_analysis_3_comment" rows="8" class="form-control"  cols="80">{{old('investment_analysis_3_comment',$eva->investment_ana_3_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    12.4 <strong>Are the entrepreneur's financial ratios (based on historic performance  efficiency, liquidity, solvency and profitability) give a clear going concern of operations? (ability to repay loan facility based on historic performance?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="investment_analysis_4" class="form-control" value="{{old('investment_analysis_4',$eva->investment_ana_4??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="investment_analysis_4_comment" rows="8" class="form-control"  cols="80">{{old('investment_analysis_4_comment',$eva->investment_ana_4_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    12.5 <strong>Are the entrepreneur's investment analysis  strong, realistic and viable? The NPV, Internal Rate of Return, Payback period, Breakeven analysis, scenario analysis?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="investment_analysis_5" class="form-control" value="{{old('investment_analysis_5',$eva->investment_ana_5??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="investment_analysis_5_comment" rows="8" class="form-control"  cols="80">{{old('investment_analysis_5_comment',$eva->investment_ana_5_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Security /  Collateral Position (3%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    13.1 <strong>Did the entrepreneur demonstrate that the availability of tangible security  which is saleable, can be easily valued and a charge over the asset could be placed on it?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="collateral_1" class="form-control" value="{{old('collateral_1',$eva->collateral_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="collateral_1_comment" rows="8" class="form-control"  cols="80">{{old('collateral_1_comment',$eva->collateral_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg">
                    13.2 <strong>Did the entrepreneur demonstrate that there is a secondary market for the assets used as security?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="collateral_2" class="form-control" value="{{old('collateral_2',$eva->collateral_2??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="collateral_2_comment" rows="8" class="form-control" cols="80">{{old('collateral_2_comment',$eva->collateral_2_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>

                <hr> <span class="fid">Risk Mitigation and Sustainability strategies (5%)</span> <hr>
                <div class="row">
                  <div class="col-lg">
                    14.1 <strong>Did the entrepreneur outline the approach to be used  for ensuring sustainability of the business through effective risk management strategies?</strong>
                  </div>
                  <div class="col-lg">
                    <div class="form-group">
                      <input type="number" min="1" max="5" name="risk_mitigation_1" class="form-control" value="{{old('risk_mitigation_1',$eva->risk_mitigation_1??null)}}" placeholder="Score">
                    </div>
                    <div class="form-group">
                      <textarea placeholder="Comment" name="risk_mitigation_1_comment" rows="8" class="form-control" cols="80">{{old('risk_mitigation_1_comment',$eva->risk_mitigation_1_comment??null)}}</textarea>
                    </div>
                  </div>
                </div>
<input type="hidden" class="sfll" name="jj" value="sfl">
<input type="hidden" name="user_id" value="{{ $user->user_id }}">
                <div class="text-center mt-5">
                  <button type="submit" id="conflictpagebtn" class="btn btn-success col-lg-4" name="button">Submit</button>
                  <button type="button"  onclick='func1()' class="bbn btn btn-primary col-lg-4" name="button">Save For Later</button>
                </div>
              </form>
            </div>
        </div>

        @endsection

        @section('page-js')
              <script src="https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.4.0/js/iziToast.min.js" charset="utf-8"></script>
          <script type="text/javascript">
          $('#conflictpagebtn').click(function(){
$('.sfll').val('save');

              $(this).attr('disabled',true);
              $("#conflicfont").attr("action","/evaluate/store");

                       $('#conflicfont').submit();

              })

              // function sss(){
              //   console.log('sss');
              //   // $(this).attr('disabled',true);
              //   // $("#conflicfont").attr("action","/evaluate/store");
              //            $('#conflicfont').submit();
              //            // console.log('jkskn');
              // }

          // function ff(){
            // console.log('lll');
          $('#ffg').on('click',function(){
            console.log('ffg clciked');
            var gg='ffg';
            // $('#conflicfont').submit();
            $(document).on('submit','#conflicfont', function (e) {
              // console.log('fsds');
          // if (gg=='ffg') {


            // return false;
            // console.log(this.attr('name'));
            // console.log($('conflicfont').serialize());
            let formData = new FormData(this);
            // console.log(formData);
          $.ajax({
            url: '{!! route('saveforlater.evaluation') !!}',
            data: formData,
            processData:false,
                      contentType:false,
            headers: {'X-CSRF-TOKEN': "{{ csrf_token() }}"},
            method: 'POST',
          }).done((response) => {
            console.log(response)



          })
          // e.stopPropagation()



            });
          })

          // }


          // $(document).ready(function() {
            function func1() {
            // alert("DIV 1");
            // if (document.getElementById("check").checked) {
            // var tt='po';

            // $(document).on('submit','#conflicfont', function (e) {
              // console.log(e);
              if ($('.sfll').val()=='sfl') {
                // event.preventDefault();
                console.log(event);
              }
            // return false;
            console.log('kk');
            // console.log($('conflicfont').serialize());
            let formData = $('#conflicfont').serialize();
            console.log(formData);

          $.ajax({
            url: '{!! route('saveforlater.evaluation') !!}',
            data: formData,
            // processData:true,
            //           contentType:false,
            headers: {'X-CSRF-TOKEN': "{{ csrf_token() }}"},
            method: 'POST',
          })
          iziToast.show({
                title: 'Saving Current Progress...',
                message: '',
                // timeout:fa,

            });
          return false;
// e.stopPropagation();
            // });


              // event.stopPropagation();
            // }
          }

          // function func2() {
          //   console.log('second');
          // $('.kfjh').submit();
          // }
          var yy=setInterval(func1, 5 * 60 * 1000);
          // var yy=setInterval(func1, 10000);

// 15 * 60 * 1000
          // });



          </script>

        @endsection
