<form class="row g-3 auto-width license-type-setting" action="{{ route('license-types-settings')}}" method="post" enctype='multipart/form-data' id="quality_form">
    <input type="hidden" name="type" value="{!! $type !!}">
    @csrf
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class="thbutton">SL No</th>
                <th>License Name</th>
                <th class="thbutton">Mandatory</th>
                <th class="thbutton">Status</th>
            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if(count($data)>0)
                @foreach($data as $key=> $list)
                    <tr>
                        <td>{{$i}}</td>
                        <td>{{$list->name}}</td>
                        <td>
                            <div class="form-check form-check-inline{{$i}}">
                                <input class="form-check-input{{$i}} btn-lg licensestatus" type="checkbox" id="inlineCheckbox{{$i}}" name="is_mandatory[{!! $list->id !!}]" {{ !empty($list->is_mandatory) && $list->is_mandatory=='1' ? 'checked' : ''}}>
                            </div>
                        </td>
                        <td>
                            <div class="form-check form-check-inline{{$i}}">
                                <input class="form-check-input{{$i}} btn-lg licensestatus" type="checkbox" id="inlineCheckbox{{$i}}" name="setting[{!! $list->id !!}]" {{ !empty($list->setting) ? 'checked' : ''}}>
                            </div>
                        </td>
                    </tr>
                    @php $i++; @endphp
                @endforeach
            @else
                <tr>
                    <td colspan="9">No Data Found</td>
                </tr>
            @endif
        </tbody>
    </table>
</form>