{{-- Screening modal. All four negative → bag becomes available. Any reactive →
     bag discarded + donor permanently deferred. --}}
<div class="modal-dialog" role="document">
  <div class="modal-content">
    <form class="mbb-form" action="{{ route('mbb.donations.screen', $donation->id) }}" method="POST">
      {{ csrf_field() }}
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">
          @lang('medbloodbank::lang.enter_screening') — {{ $donation->bag_no }}
        </h4>
      </div>
      <div class="modal-body">
        <p class="text-muted">@lang('medbloodbank::lang.screening_help')</p>
        @php $current = $donation->screening ?? []; @endphp
        @foreach($markers as $m)
          <div class="form-group row" style="align-items:center;">
            <label class="col-md-4">@lang('medbloodbank::lang.marker_' . $m)</label>
            <div class="col-md-8">
              <select name="{{ $m }}" class="form-control" required>
                @foreach(['negative', 'reactive', 'pending'] as $val)
                  <option value="{{ $val }}" @selected(($current[$m] ?? 'pending') === $val)>
                    @lang('medbloodbank::lang.screen_' . $val)
                  </option>
                @endforeach
              </select>
            </div>
          </div>
        @endforeach
        <div class="alert alert-warning" style="margin-top:8px;">
          <i class="fa fa-exclamation-triangle"></i> @lang('medbloodbank::lang.reactive_warning')
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">@lang('medbloodbank::lang.cancel')</button>
        <button type="submit" class="btn btn-primary">@lang('medbloodbank::lang.save_screening')</button>
      </div>
    </form>
  </div>
</div>
