@extends('layouts.app')
@section('title', 'Pdf reader ')
@section('content')
 <section class="content">
    <div class="row">
        <div class="col-12">
            <div class="box">
                <table id="api_table" class="table mt-0 table-hover no-wrap" data-page-size="10">
                    <thead>
                        <tr>
                            <td>Parameter</td>
                            <td>Data</td>
                        </tr>
                    </thead>
                    <tbody id="param_label">
                        <form method="post">
                            @csrf
                        @foreach($pdf_reader as $lists)

                            <input type="hidden" readonly class="form-control col-md-6" name="para_label_id[]" value="{{ $lists->id }}" required="" />
                        <tr>

                            <td><input type="text" readonly class="form-control col-md-6" name="para_label[]" value="{{ $lists->pdf_label }}" required="" /></td>
                            <td>
                                <select name="label[]" class="form-select" >
                                    <option value="">Select Label</option>
                                    @foreach($label_list as $list)
                                                <option @if($lists->crm_label_id == $list->id  ) selected @endif value="{{ $list->id }}">{{ $list->label_title_url }}</option>
                                                @endforeach
                                </select>
                            </td>
                            
                        </tr>

                        @endforeach

                        <tr>
                             <td>
                                <button class="btn btn-danger btn-remove">Update</button>
                            </td>
                        </tr>
                    </form>
                       
                       
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section>

@endsection


