@extends('tablar::page')

@section('content')
<div class="page-header d-print-none">
    <div class="container-xl">
        <div class="row g-2 align-items-center">
            <div class="col">
                <h2 class="page-title">Reprint Receipt</h2>
            </div>
        </div>
    </div>
</div>
<div class="page-body">
    <div class="container-xl">
        <div class="row row-cards">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <form method="POST" action="/reprint_receipt" class="row g-3">
                            {{ csrf_field() }}
                            <div class="col-md-6">
                                <label for="reprintbiddernum" class="form-label">Bidder Number</label>
                                <select name="reprintbiddernum" id="reprintbiddernum" class="form-select" required>
                                    <option value="">Select Bidder</option>
                                    @foreach($bidders as $bidder)
                                        <option value="{{ $bidder->idbidders }}">{{ $bidder->bidder_assigned_number }} - {{ $bidder->bidder_fname }} {{ $bidder->bidder_lname }}</option>
                                    @endforeach
                                </select>
                            </div>
                            <div class="col-12">
                                <button type="submit" class="btn btn-primary">Reprint Receipt</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
@include('components.tomselect')
@push('js')
@endpush
