@extends('template.app')

@section('meta')
@endsection

@section('title')
    Role Update
@endsection

@section('styles')
@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">Roles</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('role') }}" class="text-muted">Roles</a></li>
                        <li class="breadcrumb-item text-muted active" aria-current="page">Update</li>
                    </ol>
                </nav>
            </div>
        </div>
        <div class="col-5 align-self-center">
            <div class="customize-input float-right">
            </div>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <form action="" name="form" id="form" method="post">
                        @csrf
                        @method('PATCH')
                        <input type="hidden" name="id" value="">

                        
                        <div class="form-group col-sm-12 user_row_data">
                        <input type="checkbox" class="checkboxClass mr-1" id="ckbCheckAll" value=""><span></span><b>Select All</b><strong> Permissions:</strong>
                            <div class="form-group">
                                
                                <div class="row">
                                    <label><b>Personal Details</b></label>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Booking Date
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Customer Name
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> RTO Type
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Customer Type
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Branch
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Company Name
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> e-Invoice Applicable
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> GST
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Address Correspondence
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Registration Correspondence
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> e-Mail
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Address:
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Mobile Number
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> PAN No:
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Aadhar No
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Voter Id No
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Date of Birth
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Nominee Name
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Nominee Date of Birth
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Nominee Relation
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Nominee Age
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Occupation
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Remarks
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Upload PAN
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Upload Aadhar
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Upload Voter ID
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Upload Other Documents
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                       
                                </div>
                               
                                <div class="row">
                                    <label><b>Car Details</b></label>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Sales Person Name
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Car Model
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                   <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Car Variant
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Fuel Type
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Exterior Color
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Interior Color
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Pricelist
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Standard Ex-Showroom Price
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Registration Tax
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Insurance
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Municipal Tax
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> 1% for TCS Tax
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> On Road Price
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> On Road Price (In Words)
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> RSA MASTER
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Extras
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Accessories
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Fastag
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Trade In Car Name
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Exchange Car
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Extended Warranty
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Lead Source
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Sub Lead Source
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Mode of Payment
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Tentative Delivery Date
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Booking Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> My Convinience Program
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Other Details 1
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>  <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Other Details 2
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                       
                                </div>
                                <div class="row">
                                    <label><b>Finance Details</b></label>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Financer
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Finance Type
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Repo Rate
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Loan Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Net Disbusment Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Processing Fee
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Finance Discount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Payout Percentage
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Payout Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Lumsum Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Total Payout
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Remarks
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div><div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Pay Booster
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                 
                                </div>
                                
                                
                                <div class="row">
                                    <label><b>Insurance Details</b></label>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Insurance
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> NCB - No Claim Bonus
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Date of Insurance
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Time of Insurance
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Last Date of Insurance
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Company Name
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div> <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Policy Number
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Remark
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Upload Document
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         
                                 
                                </div>
                                
                                <div class="row">
                                    <label><b>RTO Details</b></label>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> RTO Type
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Registration Date
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Application Number
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Temporary Number
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Final amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Vehicle Number
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Remarks
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        
                                 
                                </div>
                                <div class="row">
                                    <label><b>FastTag Details</b></label>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Fasttag number
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Brand
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Date of issue
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Amount
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                         <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Opening stock
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                        <div class="col-sm-3">
                                            <label class="ui-checkbox ui-checkbox-success mt-2 label_get" for="checkbox"> Remarks
                                                <input type="checkbox" class="checkboxClass" name="permissions[]" id="checkbox" value="">
                                                <span class="input-span"></span>
                                            </label>
                                        </div>
                                 
                                </div>
                                
                            </div>
                            <span class="kt-form__help error permissions"></span>
                        </div>
                        <div class="form-group ml-3">
                           <!--  <button type="submit" class="btn waves-effect waves-light btn-rounded btn-outline-primary">Submit</button> -->
                            <a href="{{ route('dashboard') }}" class="btn waves-effect waves-light btn-rounded btn-outline-secondary">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

@section('scripts')
    <script>
        $(document).ready(function () {
            var form = $('#form');
            $('.kt-form__help').html('');
            form.submit(function(e) {
                $('.help-block').html('');
                $('.m-form__help').html('');
                $.ajax({
                    url : form.attr('action'),
                    type : form.attr('method'),
                    data: new FormData($(this)[0]),
                    dataType: 'json',
                    async: false,
                    processData: false,
                    contentType: false,
                    success : function(json){
                        return true;
                    },
                    error: function(json){
                        if(json.status === 422) {
                            e.preventDefault();
                            var errors_ = json.responseJSON;
                            $('.kt-form__help').html('');
                            $.each(errors_.errors, function (key, value) {
                                $('.'+key).html(value);
                            });
                        }
                    }
                });
            });
        });
        $("#ckbCheckAll").on('click',function () {
            if(this.checked){
            $('.checkboxClass').each(function(){
                // $(".checkboxClass").prop('checked', true);
                var hidden_chk =  $(this).is(":hidden");
                /*console.log('ccc--');
                console.log(hidden_chk);*/
                if(hidden_chk == false){

                    if(this.checked == false){
                        $(this).prop('checked', true);    
                    }
                    // console.log('ccc--8');                        
                }                    
                // $(".checkboxClass").prop('checked', true);
            })
        }else{
            $('.checkboxClass').each(function(){
                $(".checkboxClass").prop('checked', false);
            })
        }
        });

        (function($){
          $(".keyword").on('keyup', function(e) {
            var $this = $(this);
            var exp = new RegExp($this.val(), 'i');

            console.log($this.val());
            if($this.val() == ''){
                $("#ckbCheckAll").prop('checked', false);
            }

            
            $(".user_row_data .label_get").each(function() {
              var $self = $(this);
              /*console.log('----');
              console.log($self);
              console.log($self.text());*/

              if(!exp.test($self.text())) {
                // console.log('----hide');
                // console.log($self);
                $self.parent().hide();
              } else {
                // console.log('----showw');
                $self.parent().show();
              }
            });
          });
        })(jQuery);


    </script>
@endsection
