<?php 

   /*var_dump($data->pricelist_id);

   die('s');*/

   

   $extra_sum = 0;

   if(!empty($data->priclist_detail)){

       $price_new_arr = json_decode($data->priclist_detail);

   

      /* var_dump($price_new_arr);

       die('stop');*/

   

       if($price_new_arr != NULL){

           $price_new_arr = array_column($price_new_arr, 'value_field');

           $extra_sum = array_sum($price_new_arr);    

       }

   }

   

   $is_finance_display_filds = 1;

   

   if($user_role == 'KEC' ||  $user_role == 'Team leader'){

       $is_finance_display_filds = 0;    

   }

   

   /*echo "<pre>";

   print_r($price_new_arr);

       die('stop');*/

   

   /*$view_enable = 1; //display all

   if(auth()->user()->can('obf-view') == true && auth()->user()->can('obf-rtoview') == false && auth()->user()->can('obf-insuranceview') == false && auth()->user()->can('obf-fasttagview') == false){

       $view_enable = 2; // not display Insurance Details,RTO Department,Fasttag Department

   }*/

   

   ?>

@extends('template.app') 

@section('meta')

@endsection

@section('title')

Obf Summary

@endsection

@section('styles')

<link href="{{ asset('assets/css/dropify.min.css') }}" rel="stylesheet">

<link href="{{ asset('assets/css/sweetalert2.bundle.css') }}" rel="stylesheet">

<link href="{{ asset('assets/css/select2.css') }}" rel="stylesheet">

<style type="text/css">

   /*#galeria{

   display: flex;

   }*/

   #galeria img{

   width: 85px;

   height: 85px;

   border-radius: 10px;

   box-shadow: 0 0 8px rgba(0,0,0,0.2);

   opacity: 85%;

   padding: 3px;

   }

   /* #pan_image_multi{

   display: flex;

   }*/

   #pan_image_multi img{

   width: 85px;

   height: 85px;

   border-radius: 10px;

   box-shadow: 0 0 8px rgba(0,0,0,0.2);

   opacity: 85%;

   padding: 3px;

   }

   /*#adhar_image_multi{

   display: flex;

   }*/

   #adhar_image_multi img{

   width: 85px;

   height: 85px;

   border-radius: 10px;

   box-shadow: 0 0 8px rgba(0,0,0,0.2);

   opacity: 85%;

   padding: 3px;

   }

   /*#documents_multi{

   display: flex;

   }*/

   #documents_multi img{

   width: 85px;

   height: 85px;

   border-radius: 10px;

   box-shadow: 0 0 8px rgba(0,0,0,0.2);

   opacity: 85%;

   padding: 3px;

   }

   /*#licance_image_multi{

   display: flex;

   }*/

   #licance_image_multi img{

   width: 85px;

   height: 85px;

   border-radius: 10px;

   box-shadow: 0 0 8px rgba(0,0,0,0.2);

   opacity: 85%;

   padding: 3px;

   }

   .row > .column {

   padding: 0 8px;

   }

   .row:after {

   content: "";

   display: table;

   clear: both;

   }

   /* Create four equal columns that floats next to eachother */

   .column {

   float: left;

   width: 25%;

   }

   /* The Modal (background) */

   .modal {

   display: none;

   position: fixed;

   z-index: 1;

   padding-top: 100px;

   left: 0;

   top: 0;

   width: 100%;

   height: 100%;

   overflow: auto;

   background-color: black;

   }

   /* Modal Content */

   .modal-content {

   position: relative;

   background-color: #fefefe;

   margin: auto;

   padding: 0;

   width: 100%;

   max-width: 700px;

   }

   /* The Close Button */

   .close {

   color: white;

   position: absolute;

   top: 10px;

   right: 25px;

   font-size: 35px;

   font-weight: bold;

   }

   .close:hover,

   .close:focus {

   color: #999;

   text-decoration: none;

   cursor: pointer;

   }

   /* Hide the slides by default */

   .mySlides {

   display: none;

   }

   /* Next & previous buttons */

   .prev,

   .next {

   cursor: pointer;

   position: absolute;

   top: 50%;

   width: auto;

   padding: 16px;

   margin-top: -50px;

   color: white;

   font-weight: bold;

   font-size: 20px;

   transition: 0.6s ease;

   border-radius: 0 3px 3px 0;

   user-select: none;

   -webkit-user-select: none;

   }

   /* Position the "next button" to the right */

   .next {

   right: 0;

   border-radius: 3px 0 0 3px;

   }

   /* On hover, add a black background color with a little bit see-through */

   .prev:hover,

   .next:hover {

   background-color: rgba(0, 0, 0, 0.8);

   }

   /* Number text (1/3 etc) */

   .numbertext {

   color: #f2f2f2;

   font-size: 12px;

   padding: 8px 12px;

   position: absolute;

   top: 0;

   }

   /* Caption text */

   .caption-container {

   text-align: center;

   background-color: black;

   padding: 2px 16px;

   color: white;

   }

   img.demo {

   opacity: 0.6;

   }

   .active,

   .demo:hover {

   opacity: 1;

   }

   /*img.hover-shadow {

   transition: 0.3s;

   height: 100px;

   width: 100px;

   }*/

   .hover-shadow:hover {

   box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

   }

</style>

@endsection

@section('content')

<div class="page-breadcrumb">

   <div class="row">

      <div class="col-7 align-self-center">

         <h4 class="page-title text-truncate text-dark font-weight-medium mb-1">OBF Summary</h4>

         <div class="d-flex align-items-center">

            <nav aria-label="breadcrumb">

               <ol class="breadcrumb m-0 p-0">

                  <li class="breadcrumb-item"><a href="{{ route('dashboard') }}" class="text-muted">Dashboard</a></li>

                  <li class="breadcrumb-item"><a href="{{ route('obf') }}" class="text-muted">OBF</a></li>

                  <li class="breadcrumb-item text-muted active" aria-current="page">Summary</li>

               </ol>
    <button onclick="printDiv('content-to-print')">Print Content</button>
            </nav>

         </div>

      </div>

      <div class="col-5 align-self-center">

         <div class="customize-input float-right">

         </div>

      </div>

   </div>

</div>

<div class="container-fluid" id="content-to-print">

<div class="row">

   <div class="col-12">

      <div class="card">

         <div class="card-body">

            <div class="col-md-offset-3">

               <form role="form"  enctype="multipart/form-data">

                  <input type="hidden" name="id" value="{{ $data->id }}" >

                  <div class="row">

                     <div class="col-lg-12 ">

                        <div class="col-md-12">

                           <h3> Personal Details</h3>

                           <hr style="border:1px solid grey;">

                           <!--<div class="row">-->

                           <table style="width:100%;">

                              <tbody>

                                 <tr>

                                    <td> 

                                       <label class="control-label"><b>Booking Date</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->booking_date ?? 'N/A' }}</span>

                                    </td>

                                    <div class="vl"></div>

                                    <td> 

                                       <label class="control-label"><b>Customer Name</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->customer_name ?? 'N/A' }}</span>

                                    </td>

                                    <!-- <input type="text"  name="customer_name" id="customer_name" class="form-control" placeholder="Enter Customer Name" value="{{ $data->customer_name ?? '' }}" disabled>

                                       <span class="kt-form__help error customer_name"></span> -->

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Branch</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->branch_name ?? 'N/A' }}</span>

                                       <!-- <select name="branch" id="branch" class="form-control" disabled>

                                          <option value="">Select Branch</option>

                                          @if(isset($branch) && $branch->isNotEmpty())

                                              @foreach($branch AS $branch)

                                                  <option value="{{ $branch->id }}" @if($data->branch_id == $branch->id) selected @endif >{{ $branch->name }}</option>

                                              @endforeach

                                          @endif

                                          </select>

                                          <span class="kt-form__help error branch"></span> -->

                                    </td>

                                    <td>

                                       <label class="control-label"><b>RTO Type </b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ ucwords(str_replace('_', ' ', $data->customer_type)) ?? 'N/A' }}</span> 

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Customer Type </b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->customer_type_nm ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Company Name </b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->company_name ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>E-Invoice Applicable</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ ucwords($data->einvoicing_applicable) ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>GST</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->gst ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Address Correspondence</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->address ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Registration Correspondence</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->registration ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>E-Mail</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->email ?? 'N/A' }}</span>

                                    </td>

                                    <td> 

                                       <label class="control-label"><b>Mobile Number</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->contact_number ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>PAN No</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->pan_number ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Aadhar No</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->adhar_number ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                <tr>

                                    <td>

                                       <label class="control-label"><b>License No</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->licance_number ?? 'N/A' }}</span>
                                    </td>

                                    <td>

                                       <label class="control-label"><b>Date of Birth</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->dob ? \Carbon\Carbon::parse($data->dob)->format('d-m-Y') : 'N/A' }}</span>

                                    </td>

                                </tr>

                                <tr>

                                    <td>

                                       <label class="control-label"><b>Nominee Name</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->nominee_name ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Nominee Relation</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->nominee_reletion ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Nominee Age</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->nominee_age ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Occupation</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->occupation ?? 'N/A' }}</span>

                                    </td>
                                    <tr>
                                        <td>
                                            <label class="control-label"><b>Nominee DOB</b></label>
                                        </td>
                                        <td> : </td>
                                        <td>

                                       <span class="form-label">{{ $data->nominee_dob ? \Carbon\Carbon::parse($data->nominee_dob)->format('d-m-Y') : 'N/A' }}</span>

                                    </td>
                                    <td>
                                            <label class="control-label"><b>Remarks</b></label>
                                        </td>
                                        <td> : </td>
                                        <td>

                                       <span class="form-label">{{ $data->step1_remarks ?? 'N/A' }}</span>

                                    </td>
                                    </tr>

                                 </tr>

                              </tbody>

                           </table>

                           <!--</div>-->

                        </div>

                     </div>

                  </div>

                  <hr style="border: 1px solid grey;">

                  <div class="row">

                     <div class="col-lg-12">

                        <div class="col-md-12">

                           <h3> Car Details</h3>

                           <hr style="border:1px solid grey;">

                           <!--<div class="row">-->

                           <table style="width:100%;">

                              <tbody>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Sales Person Name</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->sales_person_name ?? 'N/A' }}</span>

                                    </td>

                                    <div class="vl2"></div>

                                    <td> 

                                       <label class="control-label"><b>Car Model</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->car_model_name ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label for="veriant"><b>Car Variant</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->car_varient_name ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label for="fule_type"><b>Fuel Type</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $fule->fule_name ?? 'N/A' }}</span> 

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label for="exterior_color"><b>Exterior Color</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->exteriorcolor_name ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label for="interior_color"><b>Interior Color</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{$data->interiorcolor_name ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Pricelist</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 
                        
                                       <span class="form-label">{{ $price_list_name[0]->price_list_name ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Standard Ex-Showroom Price</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->ex_showroom_price ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Registration Tax</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->registration_tax_id ?? 'N/A' }} </span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Insurance</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->insurance_id ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Municipal Tax</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->municipal_tax_id ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"> <b>1% for TCS Tax </b> </label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->tcs_tax_id ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Extras: </b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $extra_sum ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Accessories</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">

                                          {!! $accessories_nm->map(fn($a) => ($a->accessory_name ?? 'N/A') . ' - ' . $a->price)->implode('<br>') !!}

                                       </span>

                                       <br/>

                                       

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Fastag</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->brand_name ?? 'N/A' }}</span>

                                    </td>
                                    
                                    <td>

                                       <label class="control-label"><b>Accessories Total</b></label>

                                    </td>

                                    <td> : </td>
                                    
                                    <td>
                                        <span id="total">{{$accessory_sum}}</span>
                                    </td>


                                 </tr>

                                 <tr>
                                    
                                    <td>

                                       <label class="control-label"><b>Trade In Car Name</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->trade_car_name ?? 'N/A' }}</span>

                                    </td> 

                                    <td>

                                       <label class="control-label"><b>Trade In Car Value</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->trade_car_value ?? 'N/A' }}</span>

                                    </td>
                                </tr>
                                <tr>

                                    <td>

                                       <label class="control-label"><b>On Road Price</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->on_road_price ?? 'N/A' }}</span>

                                    </td>
                                    
                                    <td>

                                       <label class="control-label"><b>On Road Price (In Words)</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{!! str_replace(" and ", "<br>", $data->on_road_price_word) !!}  </span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Extended Warranty</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>
                                        <span class="form-label">{{ $data->extand_warranties_years}} - {{ $data->extand_warranties_amount }}</span>
                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Lead Source</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $leads->name ?? '' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Sub Lead Source</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>
                                        <span class="form-label">{{ $sub_leads->name ?? '' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Mode of Payment</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->mode_of_payment ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Tentative Delivery Date</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->tentative_delivery_date ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Booking Amount</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->booking_amount ?? 'N/A' }}</span>

                                    </td>

                                    <td> 

                                       <label class="control-label"><b>My Convinience Program</b></label>

                                    </td>

                                    <td> : </td>

                                    <td>

                                       <!-- <input type="checkbox" name="convinience_program"> -->

                                       <span class="form-label">

                                          <!-- <select name="convinience_program" id="convinience_program" class="form-control" disabled>

                                             @if(isset($mcp) && $mcp->isNotEmpty())

                                                 @foreach($mcp AS $row)

                                                     <option value="{{ $row->id }}" @if($data->convinience_program == $row->id) selected @endif>{{ $row->name ??'' }}</option>

                                                 @endforeach

                                             @endif

                                             </select> -->

                                       </span>

                                       <span class="kt-form__help error convinience_program"></span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Other Details 1</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->other_one_name ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Other Details 2</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->other_two_name ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>RSA MASTER</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->rsa_name ?? 'N/A' }}</span>

                                    </td>
                                    
                                    <td>

                                       <label class="control-label"><b>Company Name</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->company_name ?? 'N/A' }}</span>

                                    </td>
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Remarks</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->step3_remarks ?? 'N/A' }}</span>

                                    </td>
                                    <td>

                                       <label class="control-label"><b>Other Accessories Price</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->other_accesssories_prise ?? 'N/A' }}</span>

                                    </td>

                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Exchange Car</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->trade_car_value ?? 'N/A' }}</span>

                                    </td>

                                 </tr>
                                 <tr>
                                     <td>

                                       <label class="control-label"><b>KIN Offers</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->offer_kin ?? 'N/A' }}</span>

                                    </td>
                                    <td>

                                       <label class="control-label"><b>Shivam IB Offers</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->offer_ib ?? 'N/A' }}</span>

                                    </td>
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Amount</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->offer_ib_amount ?? 'N/A' }}</span>

                                    </td> 
                                    <td>

                                       <label class="control-label"><b>Amount</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->offer_kin_amount ?? 'N/A' }}</span>

                                    </td> 
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Total Discount Amount</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->offer_amount ?? 'N/A' }}</span>

                                    </td>
                                    <td>

                                       <label class="control-label"><b>Deal Price (with offer)</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->deal_price ?? 'N/A' }}</span>

                                    </td>
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Cash Discount</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->way_off ?? 'N/A' }}</span>

                                    </td>
                                    <td>

                                       <label class="control-label"><b>Total Amount Receivable</b></label>

                                    </td>

                                    <td> : </td>

                                    <td> 
 
                                       <span class="form-label">{{ $data->final_on_road_price_after_way_off ?? 'N/A' }}</span>

                                    </td>
                                 </tr>

                              </tbody>

                           </table>

                           <!-- </div>-->

                        </div>

                     </div>

                  </div>

                  <hr style="border: 1px solid white;">

                  <div class="row">

                     <div class="col-lg-12 ">

                        <div class="col-md-12">

                           <h3> Finance Details</h3>

                           <hr style="border:1px solid grey;"> 

                           <!-- <div class="row">-->

                           <table style="width:100%;">

                            

                              <tbody>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Finance Required</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{ucwords($data->finance_required)}} </td>

                                    <div class="vl3"></div>

                                    <td>

                                       <label class="control-label"><b>Finance</b></label>

                                    </td>

                                     <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->finance_names ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 @if($is_finance_display_filds == 1)

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Repo Rate</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->repo_rate ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Net Disbusment Amount</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->net_disbusment ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Loan Amount</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->loan_amount ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Processing Fee</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ $data->processing_fee ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Finance Discount</b></label>

                                    </td>

                                     <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->finance_discount ?? 'N/A' }}</span>

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Payout</b></label>

                                    </td>

                                     <td> : </td>

                                    <td> 

                                       <span class="form-label">{{ $data->payout ?? 'N/A' }}</span>

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Pay Booster</b></label>

                                    </td>

                                     <td> : </td>

                                    <td> 

                                        {{ucwords($data->pay_booster)}}

                                    </td>

                                    @if(!empty($Inventory_data))

                                    <td>

                                       <label class="control-label"><b>Allocation Date</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ date('d-m-Y',strtotime($Inventory_data->updated_at)) ?? 'N/A' }}</span>

                                       <!-- <input type="text" class="form-control" value="{{ date('d-m-Y',strtotime($Inventory_data->updated_at)) ?? '' }}" disabled="disabled"> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Aging Days</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ now()->diffInDays($Inventory_data->kin_invoice_date) ?? '' }}</span>

                                       <!--  <input type="text" class="form-control" value="{{ now()->diffInDays($Inventory_data->kin_invoice_date) ?? '' }}" disabled="disabled"> -->

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Kin Invoice Date</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>

                                       <span class="form-label">{{ date('d-m-Y',strtotime($Inventory_data->kin_invoice_date)) ?? 'N/A' }}</span>

                                       <!-- <input type="text" class="form-control" value="{{ date('d-m-Y',strtotime($Inventory_data->kin_invoice_date)) ?? '' }}" disabled="disabled"> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Allocation Count:</b></label>

                                       <span class="form-label">{{ $Inventory_data->allocation_count ?? 'N/A' }}</span>

                                       <!-- <input type="text" class="form-control" value="{{ $Inventory_data->allocation_count ?? '' }}" disabled="disabled"> -->

                                    </td>

                                    @endif
                                    <td>

                                       <label class="control-label"><b>Disbursement Field</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{ucwords($data->disbursement)}} </td>
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Financer</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{$data->finance_name}} </td>
                                    <td>

                                       <label class="control-label"><b>Finance Type</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{$data->finance_type}} </td>
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Payout Amount</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{$data->payout_amount}} </td>
                                    <td>

                                       <label class="control-label"><b>Lumsum Amount</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{$data->lumsum_amount}} </td>
                                 </tr>
                                 <tr>
                                    <td>

                                       <label class="control-label"><b>Total Payout</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{$data->total_payout_amount}} </td>
                                    <td>

                                       <label class="control-label"><b>Remarks</b></label>

                                    </td>

                                     <td> : </td>

                                    <td>{{$data->step2_remarks ?? 'N/A'}} </td>
                                 </tr>

                              </tbody>

                           </table>

                           <!--  </div>-->

                        </div>

                     </div>

                  </div>

                  @endif

                  <hr style="border: 1px solid black;">

                  <div class="row">

                     <div class="col-lg-12 ">

                        <div class="col-md-12">

                           <h3> Insurance Details</h3>

                           <!-- <div class="row">-->

                            <hr style="border:1px solid grey;">

                           <table style="width:100%;">

                              <tbody>

                                 <tr>

                                    <input type="hidden" name="obf_insurance_id" value="{{ $ObfInsurance->id ?? '' }}">

                                    <td>

                                       <label class="control-label"><b>Insurance</b></label>

                                    </td>

                                    <td> :</td>

                                    <td> 

                                        @if($ObfInsurance->insurance_exist == 1) Yes @endif

                                        @if($ObfInsurance->insurance_exist == 2) No @endif 

                                    </td>

                                    <div class="vl4"></div>

                                    @php                                            

                                    $ncb = '';

                                    if(isset($ObfInsurance->ncb) && $ObfInsurance->ncb != null){

                                    $ncb = $ObfInsurance->ncb;

                                    }

                                    @endphp

                                    <td>

                                       <label class="control-label"><b>NCB - No Claim Bonus</b></label>

                                    </td>

                                    <td> :</td>

                                    <td> 

                                        @if($ncb =='yes' || $ncb == '') Yes @endif

                                        @if($ncb == 'no') No @endif


                                    </td>

                                 </tr>

                                 <tr>

                                    @php                                            

                                    $documents = [];

                                    if(isset($ObfInsurance->documents) && $ObfInsurance->documents != null){

                                    $documents = $ObfInsurance->documents;

                                    }

                                    @endphp

                                    <!-- <td class="insurance_exist_c">

                                       <!--<div id="myModal2" class="modal">

                                          <span class="close cursor" onclick="closeModal2()">&times;</span>

                                          <div class="modal-content">

                                             <img class="image_set" src="" style="width:100%;height:470px;">

                                          </div>

                                          </div>  -->  

                                       <!--<div class="row">->

                                       <p><b>Upload Document:</b></p>

                                    </td> -->

                                    <!-- <td>

                                       <!-- <div id="documents_multi">->

                                       <?php

                                          if(!empty($documents))

                                          {

                                              $other_documents_arr = explode(',', $documents);

                                              foreach ($other_documents_arr as $value) {

                                                  if(file_exists(public_path('/uploads/kyc/'.$value))) { ?>

                                       <img src="{{asset('uploads/kyc/'. $value )}}" class="hover-shadow2">

                                       <?php }

                                          }

                                          }

                                          ?>

                                       <!--</div>->

                                    </td> -->

                                    <!--</div>  -->                                         

                                    <!-- </td> -->

                                    <td>

                                       <label class="control-label"><b>Date of Insurance</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $ObfInsurance->date_of_insurance ?? 'N/A' }}</span>

                                       <!-- <input type="date"  name="date_of_insurance" id="date_of_insurance" class="form-control" placeholder="Date Of Insurance" value="{{ $ObfInsurance->date_of_insurance ?? '' }}" disabled>

                                          <span class="kt-form__help error date_of_insurance"></span> -->

                                    </td>

                                 

                                    <td>

                                       @php                                            

                                       $time_of_insurance = '';

                                       if(isset($ObfInsurance->time_of_insurance) && $ObfInsurance->time_of_insurance != null){

                                       $time_of_insurance = $ObfInsurance->time_of_insurance;

                                       }

                                       @endphp

                                       <label class="control-label"><b>Time of Insurance</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $ObfInsurance->time_of_insurance ?? 'N/A' }}</span>

                                       <!--  <select name="time_of_insurance" id="time_of_insurance" class="form-control" disabled>

                                          <option value="" selected disabled>Please Select Year</option>

                                          <option value="1" @if($time_of_insurance == '1') selected @endif>1 Year</option>

                                          <option value="3" @if($time_of_insurance == '3') selected @endif>3 Year</option>

                                          

                                          </select>

                                          <span class="kt-form__help error time_of_insurance"></span> -->

                                    </td>

                                    </tr>

                                    <tr>



                                    <td>

                                       <label class="control-label"><b>Last Date of Insurance</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $ObfInsurance->last_time_of_insurance ?? '' }}</span>

                                       <!-- <input type="text" name="last_time_of_insurance" id="last_time_of_insurance" value="{{ $ObfInsurance->last_time_of_insurance ?? '' }}" hidden>

                                          <input type="text"  name="last_time_of_insurance1" id="last_time_of_insurance1" class="form-control" placeholder="last time of insurance" value="{{ $ObfInsurance->last_time_of_insurance ?? '' }}" disabled>

                                          <span class="kt-form__help error last_time_of_insurance1"></span> -->

                                    </td>

                                

                                    <td>

                                       <label class="control-label"><b>Company Name</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $ObfInsurance->company_name ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="insurance_company_name" id="insurance_company_name" class="form-control" placeholder="Enter Company Name" value="{{ $ObfInsurance->company_name ?? '' }}" disabled>

                                          <span class="kt-form__help error insurance_company_name"></span> -->

                                    </td>

                                     </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Amount</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $ObfInsurance->ncb_amount ?? 'N/A' }}</span>

                                       <!-- <input type="number"  name="ncb_amount" id="ncb_amount" class="form-control" placeholder="Enter NCB Amount" value="{{ $ObfInsurance->ncb_amount ?? '' }}" disabled>

                                          <span class="kt-form__help error ncb_amount"></span> -->

                                    </td>

                                 

                                    <td>

                                       <label class="control-label"><b>Policy Number</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $ObfInsurance->policy_number ?? 'N/A' }}</span>

                                       <!--  <input type="text"  name="policy_number" id="policy_number" class="form-control" placeholder="Enter Policy Number" value="{{ $ObfInsurance->policy_number ?? '' }}" disabled>

                                          <span class="kt-form__help error policy_number"></span> -->

                                    </td>
                                    

                                    </tr>

                                 <tr>

                                    <!--<div class="form-group col-md-6 insurance_exist_c"></div>-->

                                    <td>

                                       @php                                            

                                       $insurance_status = '';

                                       if(isset($ObfInsurance->insurance_status) && $ObfInsurance->insurance_status != null){

                                       $insurance_status = $ObfInsurance->insurance_status;

                                       }

                                       @endphp

                                       <label class="control-label"><b>Status</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                       @if($insurance_status == '1' || $insurance_status == '')  

                                       Activate

                                       @endif

                                       @if($insurance_status == '0')  

                                       Deactivate

                                       @endif

                                       </span>

                                       <!-- <select name="insurance_status" id="insurance_status" class="form-control" disabled>

                                          <option value="1" @if($insurance_status == '1' || $insurance_status == '') selected @endif>Activate</option>

                                          <option value="0" @if($insurance_status == '0') selected @endif>Deactivate</option>

                                          </select>

                                          <span class="kt-form__help error rto_type"></span> -->

                                    </td>

                                 </tr>
                                 
                                 
                                 <tr>

                                    <td>

                                     

                                       <label class="control-label"><b>Tyer 1</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                      {{ $ObfInsurance->tyre_no1 ?? 'N/A' }}
                                       </span>

                                    

                                    </td>
                                     <td>

                                     

                                       <label class="control-label"><b>Tyer 2</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                      {{ $ObfInsurance->tyre_no2 ?? 'N/A' }}
                                       </span>

                                    

                                    </td>
                                    
                                    

                                 </tr>
                                 <tr>
                                     
                                     <td>

                                     

                                       <label class="control-label"><b>Tyer 3</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                      {{ $ObfInsurance->tyre_no3 ?? 'N/A' }}
                                       </span>

                                    

                                    </td>
                                    <td>

                                     

                                       <label class="control-label"><b>Tyer 4</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                      {{ $ObfInsurance->tyre_no4 ?? 'N/A' }}
                                       </span>

                                    

                                    </td>
                                 </tr>
                                 <tr>
                                     <td>

                                     

                                       <label class="control-label"><b>Tyer 5</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                      {{ $ObfInsurance->tyre_no5 ?? 'N/A' }}
                                       </span>

                                    

                                    </td>
                                    <td>

                                     

                                       <label class="control-label"><b>Remarks</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->step3_remarks ?? 'N/A' }}</span>

                                    </td>
                                 </tr>

                                 <!--<tr>

                                    <td>

                                       <a href="{{url('policy_list/'.$data->id)}}" name="insurance_policy1" id="insurance_policy1" class="btn btn-primary btn-sm"> View All Insurance Policy</a>

                                    </td>  

                                    </tr>-->

                              </tbody>

                           </table>

                           <!--  <div class="form-group col-md-6">

                              <label class="control-label">Remarks</label>

                              <textarea  name="step3_remarks" id="step3_remarks" class="form-control" placeholder="Enter Remarks" disabled>{{ $data->step3_remarks ?? '' }}</textarea>

                              <span class="kt-form__help error step3_remarks"></span>

                              </div> -->

                           <!--</div>-->

                        </div>

                     </div>

                  </div>

                  <hr style="border: 1px solid black;">

                  <div class="row">

                     <div class="col-lg-12 ">

                        <div class="col-md-12">

                           <h3> RTO Details</h3>

                            <hr style="border:1px solid grey;">

                           <!--<div class="row">-->

                           <table style="width:100%;">

                           

                              <tbody>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>RTO Type</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">

                                        {{$data->rto_type}}

                                      <!--  @if($data->rto_type == 'sales_rto') Sales RTO @endif

                                       @if($data->rto_type == 'in_house') In house RTO @endif -->

                                       </span>

                                       <!-- <select name="rto_type" id="rto_type" class="form-control" readonly>

                                          <option value="">Select RTO TYPE</option>

                                          <option value="sales_rto" @if($data->rto_type == 'sales_rto') selected @endif>Sales RTO</option>

                                          <option value="in_house" @if($data->rto_type == 'in_house') selected @endif>In house RTO</option>

                                          </select>

                                          <span class="kt-form__help error rto_type"></span> -->

                                    </td>

                                    <div class="vl5"></div>

                                    <td>

                                       <label class="control-label"><b>Registration Date</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->registration_date ?? 'N/A' }}</span>

                                       <!-- <input type="date"  name="registration_date" id="registration_date" class="form-control" value="{{ $data->registration_date ?? '' }}" readonly>

                                          <span class="kt-form__help error registration_date"></span> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Application Number</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->application_number ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="application_number" id="application_number" class="form-control" placeholder="Application Number" value="{{ $data->application_number ?? '' }}" readonly>

                                          <span class="kt-form__help error application_number"></span> -->

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Temporary Number</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->temporary_number ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="temporary_number" id="temporary_number" class="form-control" placeholder="Temporary Number" value="{{ $data->temporary_number ?? '' }}" readonly>

                                          <span class="kt-form__help error temporary_number"></span> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Final amount</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->final_amount ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="final_amount" id="final_amount" class="form-control" placeholder="Final Amount" value="{{ $data->final_amount ?? '' }}" readonly>

                                          <span class="kt-form__help error final_amount"></span> -->

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Vehicle Number</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->vehicle_number ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="vehicle_number" id="vehicle_number" class="form-control" placeholder="Add Vehicle Number" value="{{ $data->vehicle_number ?? '' }}" readonly>

                                          <span class="kt-form__help error vehicle_number"></span> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Status</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       @if($data->rto_status == '1') Activate @endif

                                       @if($data->rto_status != '1') Deactivate @endif

                                       <!-- <select name="rto_status" id="rto_status" class="form-control">

                                          <option value="1" @if($data->rto_status == '1') selected @endif>Activate</option>

                                          <option value="0" @if($data->rto_status != '1') selected @endif>Deactivate</option>

                                          </select>

                                          <span class="kt-form__help error rto_type"></span> -->

                                    </td>
                                    <td>

                                       <label class="control-label"><b>Number Plate</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->number_plate ?? '' }}</span>
                                    </td>

                                 </tr>
                                 <tr>
                                     <td>

                                       <label class="control-label"><b>Remarks</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->step4_remarks ?? 'N/A' }}</span>

                                    </td>
                                 </tr>

                              </tbody>

                           </table>

                           <!--<div class="form-group col-md-6">-->

                           <!--    <label class="control-label">Status</label>-->

                           <!--    <input type="text"  name="registration_tax" id="registration_tax" class="form-control" value="Active" readonly>-->

                           <!--    <span class="kt-form__help error registration_tax"></span>-->

                           <!--</div>-->

                           <!--</div>-->

                        </div>

                     </div>

                  </div>

                  <hr style="border: 1px solid black;">

                  <div class="row">

                     <div class="col-lg-12 ">

                        <div class="col-md-12">

                           <h3> Fasttag Details</h3>

                           <hr style="border:1px solid grey;">

                           <!--<div class="row">-->

                           <table style="width:100%;">

                            

                              <tbody>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Fasttag number</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->fasttag_number ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="fasttag_number" id="fasttag_number" class="form-control" placeholder="Fasttag number"value="{{ $data->fasttag_number ?? '' }}" readonly>

                                          <span class="kt-form__help error fasttag_number"></span> -->

                                    </td>

                                    <div class="vl6"></div>

                                    <td>

                                       <label class="control-label"><b>Brand</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->fasttag_brand ?? 'N/A' }}</span>

                                       <!-- <input type="text"  name="fasttag_brand" id="fasttag_brand" class="form-control" placeholder="Brand" value="{{ $data->fasttag_brand ?? '' }}" readonly>

                                          <span class="kt-form__help error fasttag_brand"></span> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Date of issue</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->date_of_issue ?? 'N/A' }}</span>

                                       <!-- <input type="date"  name="date_of_issue" id="date_of_issue" class="form-control" value="{{ $data->date_of_issue ?? '' }}" readonly>

                                          <span class="kt-form__help error date_of_issue"></span> -->

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Amount</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->fasttag_amount ?? 'N/A' }}</span>

                                       <!-- <input type="number"  name="fasttag_amount" id="fasttag_amount" class="form-control" placeholder="Amount" value="{{ $data->fasttag_amount ?? '' }}" readonly>

                                          <span class="kt-form__help error fasttag_amount"></span> -->

                                    </td>

                                 </tr>

                                 <tr>

                                    <td>

                                       <label class="control-label"><b>Opening stock</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->opening_stock ?? 'N/A' }}</span>

                                       <!-- <input type="number"  name="opening_stock" id="opening_stock" class="form-control" placeholder="Stock" value="{{ $data->opening_stock ?? '' }}" readonly>

                                          <span class="kt-form__help error opening_stock"></span> -->

                                    </td>

                                    <td>

                                       <label class="control-label"><b>Status</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       @if($data->fasttag_status == '1') Activate @endif

                                       @if($data->fasttag_status != '1') Deactivate @endif

                                       <!-- <select name="fasttag_status" id="fasttag_status" class="form-control">

                                          <option value="1" @if($data->fasttag_status == '1') selected @endif>Activate</option>

                                          <option value="0" @if($data->fasttag_status != '1') selected @endif>Deactivate</option>

                                          </select>

                                          <span class="kt-form__help error rto_type"></span> -->

                                    </td>

                                 </tr>
                                 <tr>
                                     <td>

                                       <label class="control-label"><b>Remarks</b></label>

                                    </td>

                                    <td> :</td>

                                    <td>

                                       <span class="form-label">{{ $data->step5_remarks ?? 'N/A' }}</span>

                                    </td>
                                 </tr>

                              </tbody>

                           </table>

                           <!--</div>-->

                        </div>

                     </div>

                  </div>



               </form>



            </div>

         </div>

      </div>

   </div>

</div>

</div>

<script>
    function printDiv(divId) 
    {
    // Get the content of the div
    var content = document.getElementById(divId).innerHTML;
// Open a new window
    var printWindow = window.open('', '', 'height=600,width=800');

    // Write the content to the new window
    printWindow.document.write('<html><head><title>Print Content</title>');
    // Add styles if needed
    printWindow.document.write('<style>body{font-family: Arial, sans-serif;} h1 { color: blue; }</style>');
    printWindow.document.write('</head><body>');
    printWindow.document.write(content);
    printWindow.document.write('</body></html>');

    // Close the document to ensure styles are applied
    printWindow.document.close();

    // Wait for the content to load before printing
    printWindow.onload = function() {
        printWindow.print();
        printWindow.close();
    };
    }
</script>

@endsection