<commit_before><form method="POST" action="{{ $action }}">
    {{ method_field($method) }}
    {{ csrf_field() }}

    <h2>{{ trans('people.gifts_add_title', ['name' => $contact->first_name]) }}</h2>

    @include('partials.errors')

    {{-- Nature of gift --}}
    <fieldset class="form-group">
        <label class="form-check-inline" for="idea">
            <input type="radio" class="form-check-input" name="offered" id="idea" value="idea" @if(old('idea') !== true || $gift->is_an_idea) checked @endif>
            {{ trans('people.gifts_add_gift_idea') }}
        </label>

        <label class="form-check-inline" for="received">
            <input type="radio" class="form-check-input" name="offered" id="received" value="received" @if(old('received') === true || $gift->has_been_received) checked @endif>
            {{ trans('people.gifts_add_gift_received') }}
        </label>

        <label class="form-check-inline" for="offered">
            <input type="radio" class="form-check-input" name="offered" id="offered" value="offered" @if(old('offered') === true || $gift->has_been_offered) checked @endif>
            {{ trans('people.gifts_add_gift_already_offered') }}
        </label>
    </fieldset>
<commit_msg>fix: make gift nature labels have consistent order between profile and gift management pages (#2469)<commit_after><form method="POST" action="{{ $action }}">
    {{ method_field($method) }}
    {{ csrf_field() }}

    <h2>{{ trans('people.gifts_add_title', ['name' => $contact->first_name]) }}</h2>

    @include('partials.errors')

    {{-- Nature of gift --}}
    <fieldset class="form-group">
        <label class="form-check-inline" for="idea">
            <input type="radio" class="form-check-input" name="offered" id="idea" value="idea" @if(old('idea') !== true || $gift->is_an_idea) checked @endif>
            {{ trans('people.gifts_add_gift_idea') }}
        </label>

        <label class="form-check-inline" for="offered">
            <input type="radio" class="form-check-input" name="offered" id="offered" value="offered" @if(old('offered') === true || $gift->has_been_offered) checked @endif>
            {{ trans('people.gifts_add_gift_already_offered') }}
        </label>

        <label class="form-check-inline" for="received">
            <input type="radio" class="form-check-input" name="offered" id="received" value="received" @if(old('received') === true || $gift->has_been_received) checked @endif>
            {{ trans('people.gifts_add_gift_received') }}
        </label>
    </fieldset>

{'fraction_non_alphanumeric': 0.19567779960707268, 'fraction_numerical': 0.003143418467583497, 'mean_word_length': 3.5873873873873876, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2547876', 'n_tokens_mistral': 836, 'n_tokens_neox': 803, 'n_words': 146}