<div class="card">
    <div class="row align-items-center">
        <div class="col-12 col-md-6">
            <h4 class="p-3 mb-0">Rejected Manuscript</h4>
        </div>
        <!-- Search -->
        <div class="col-12 col-md-6 pr-4">
            <form action="/member/rejected-manuscript" 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']}}">
                    <button class="input-group-text bg-primary text-white border-0" name="search"><i class="fa fa-search"></i></button>
                    <button name="export" value="export" class="input-group-text bg-success text-white "><i class="fa-solid fa-download mr-1"></i>Export</button>
                </div>
            </form>
        </div>
        <!-- End Search -->
    </div>
    <div class="table-responsive text-nowrap">
        <table class="table table-striped mb-0">
            <thead class="table-primary" id="user_theme_table2">
                <tr>
                    <th>Reference No.</th>
                    <th>Submitted Date</th>
                    <th>Title</th>
                    <th>Article type</th>
                    <th>Institute/Society Name</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody class="table-border-bottom-0">
                @if(count($rejected_manuscript)>0)
                @foreach($rejected_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 class="text-wrap">{{$manuscript->name}}</td>
                    <td><a type="button" class="btn btn-secondary" href="/member/rejected-manuscript/{{Crypt::encrypt($manuscript->manuscript_id)}}" id="user_theme_button1">Details</a></td>
                </tr>
                @endforeach
                @else
                <tr>
                    <td colspan="6" class="text-center">No Record</td>
                </tr>
                @endif
            </tbody>
        </table>
        @if(count($rejected_manuscript)>0)
        <div class="d-flex justify-content-center mb-1">{{ $rejected_manuscript->appends(request()->input())->links() }}</div>
        @endif
    </div>
</div>