<div class="card">
    <div class="row align-items-center">
        <div class="col-12 col-md-6">
            <h4 class="p-3 mb-0">Society Manuscript</h4>
        </div>
        <!-- Search -->
        <div class="col-12 col-md-6 pr-4">
            <form action="/member/society-manuscript-list" method="Get" enctype="multipart/form-data">
                @csrf
                <div class="input-group">
                    <input type="text" class="form-control rounded-start" placeholder="Search by Reference..." name="reference_number" value="{{$param['reference_number']}}">
                    <input type="text" class="form-control" name="society_id" value="{{Crypt::encrypt($param['society_id'])}}" hidden>
                    <button class="input-group-text bg-primary text-white border-0" name="search" value="search"><i class="fa fa-search"></i></button>
                </div>
            </form>
        </div>
        <!-- End Search -->
    </div>
    <div class="table-responsive overflow-v">
        <table class="table table-striped mb-0">
            <thead class="table-info" id="user_theme_table2">
                <tr>
                    <th class="text-black fw-bolder">Reference No.</th>
                    <th class="text-black fw-bolder">Submitted Date</th>
                    <th class="text-black fw-bolder">Title</th>
                    <th class="text-black fw-bolder">Article type</th>
                    <th class="text-black fw-bolder">Principal Author</th>
                    <th class="text-black fw-bolder">Action</th>
                </tr>
            </thead>
            <tbody class="table-border-bottom-0">
                @if(count($society_manuscript)>0)
                @php $a=1; @endphp
                @foreach($society_manuscript as $manuscript)
                <tr>
                    <td><i class="text-danger"></i> <strong>{{$manuscript->reference_number}}</strong></td>
                    <td>{{gmdate("d-m-Y", $manuscript->date_submitted)}}</td>
                    <td class="text-wrap">{{$manuscript->title}}</td>
                    <td>{{$manuscript->article_type_name}}</td>
                    <td>{{$manuscript->PrincipalAuthor}}</td>
                    <td><a type="button" class="btn btn-secondary" href="/member/manuscript-detail/{{Crypt::encrypt($manuscript->manuscript_id)}}" id="user_theme_button1">Details</a></td>
                </tr>
                @php $a++; @endphp
                @endforeach
                @else
                <tr>
                    <td colspan="6" class="text-center">No record</td>
                </tr>
                @endif
            </tbody>
        </table>
        @if(count($society_manuscript)>0)
        <div class="d-flex justify-content-center mb-1">{{ $society_manuscript->appends(request()->input())->links() }}</div>
        @endif
    </div>
</div>
<script>