<commit_before>@extends('layouts.base')

@section('title', '填寫回饋資料')

@section('buttons')
    <a href="{{ url()->previous() }}" class="btn btn-secondary">
        <i class="fa fa-arrow-left" aria-hidden="true"></i> 返回
    </a>
@endsection

@section('main_content')
    <div class="alert alert-info" role="alert">
        填寫社團回饋資料，方便社團日後聯絡你
    </div>
    <div class="alert alert-warning" role="alert">
        請注意：
        <ul style="padding-left: 20px">
            <li>對每個社團只能填寫一份回饋資料，送出後仍可於回饋資料填寫截止（{{ new Carbon\Carbon(Setting::get('feedback_create_expired_at')) }}
                ）之前多次修改，截止後將無法填寫或修改
            </li>
            <li>
                送出回饋資料後，該社團可以取得您以下的資訊：
                <ul>
                    <li>學號</li>
                    <li>姓名</li>
                    <li>班級</li>
                    <li>科系</li>
                    <li>學院</li>
                    <li>入學年度</li>
                    <li>性別</li>
                </ul>
                以及您下方勾選或填寫的資料
                <ul>
                    <li>電話</li>
                    <li>信箱</li>
                    <li>Facebook 個人檔案連結</li>
                    <li>LINE ID</li>
                    <li>給社團的意見</li>
                    <li>對於社團提問的回答</li>
                    <li>加入社團意願</li>
                    <li>參與迎新茶會意願</li>
                </ul>
            </li>
            <li>請至少勾選一項<strong>聯絡資訊</strong>資料再送出</li>
        </ul>
    </div>
    <div class="card mt-1">
        <div class="card-body">
            {{ bs()->openForm('post', route('feedback.store', $club), ['model' => $feedback]) }}

            {{ bs()->formGroup(html()->div($user->student->display_name)->class('form-control-plaintext'))->label('基本資料')->showAsRow() }}
            {{ bs()->formGroup(html()->div($club->display_name ?? null)->class('form-control-plaintext'))->label('社團')->showAsRow() }}

            @if($user->student->contactInformation->phone)
                {{ bs()->formGroup(bs()->checkBox('include_phone', $user->student->contactInformation->phone))->label('電話')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_phone', '未填寫')->disabled())->label('電話')->showAsRow() }}
            @endif

            @if($user->student->contactInformation->email)
                {{ bs()->formGroup(bs()->checkBox('include_email', $user->student->contactInformation->email))->label('信箱')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_email', '未填寫')->disabled())->label('信箱')->showAsRow() }}
            @endif

            @if($user->student->contactInformation->facebook)
                {{ bs()->formGroup(bs()->checkBox('include_facebook', $user->student->contactInformation->facebook))->label('Facebook')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_facebook', '未填寫')->disabled())->label('Facebook')->showAsRow() }}
            @endif

            @if($user->student->contactInformation->line)
                {{ bs()->formGroup(bs()->checkBox('include_line', $user->student->contactInformation->line))->label('LINE ID')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_line', '未填寫')->disabled())->label('LINE ID')->showAsRow() }}<commit_msg>Add hint of intentions in Feedback edit page<commit_after>@extends('layouts.base')

@section('title', '填寫回饋資料')

@section('buttons')
    <a href="{{ url()->previous() }}" class="btn btn-secondary">
        <i class="fa fa-arrow-left" aria-hidden="true"></i> 返回
    </a>
@endsection

@section('main_content')
    <div class="alert alert-info" role="alert">
        填寫社團回饋資料，方便社團日後聯絡你
    </div>
    <div class="alert alert-warning" role="alert">
        請注意：
        <ul style="padding-left: 20px">
            <li>對每個社團只能填寫一份回饋資料，送出後仍可於回饋資料填寫截止（{{ new Carbon\Carbon(Setting::get('feedback_create_expired_at')) }}
                ）之前多次修改，截止後將無法填寫或修改
            </li>
            <li>
                送出回饋資料後，該社團可以取得您以下的資訊：
                <ul>
                    <li>學號</li>
                    <li>姓名</li>
                    <li>班級</li>
                    <li>科系</li>
                    <li>學院</li>
                    <li>入學年度</li>
                    <li>性別</li>
                </ul>
                以及您下方勾選或填寫的資料
                <ul>
                    <li>電話</li>
                    <li>信箱</li>
                    <li>Facebook 個人檔案連結</li>
                    <li>LINE ID</li>
                    <li>給社團的意見</li>
                    <li>對於社團提問的回答</li>
                    <li>加入社團意願</li>
                    <li>參與迎新茶會意願</li>
                </ul>
            </li>
            <li>請至少勾選一項<strong>聯絡資訊</strong>資料再送出</li>
            <li>若對於加入社團或參加茶會皆無意願，則該社團無法取得此回饋資料</li>
        </ul>
    </div>
    <div class="card mt-1">
        <div class="card-body">
            {{ bs()->openForm('post', route('feedback.store', $club), ['model' => $feedback]) }}

            {{ bs()->formGroup(html()->div($user->student->display_name)->class('form-control-plaintext'))->label('基本資料')->showAsRow() }}
            {{ bs()->formGroup(html()->div($club->display_name ?? null)->class('form-control-plaintext'))->label('社團')->showAsRow() }}

            @if($user->student->contactInformation->phone)
                {{ bs()->formGroup(bs()->checkBox('include_phone', $user->student->contactInformation->phone))->label('電話')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_phone', '未填寫')->disabled())->label('電話')->showAsRow() }}
            @endif

            @if($user->student->contactInformation->email)
                {{ bs()->formGroup(bs()->checkBox('include_email', $user->student->contactInformation->email))->label('信箱')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_email', '未填寫')->disabled())->label('信箱')->showAsRow() }}
            @endif

            @if($user->student->contactInformation->facebook)
                {{ bs()->formGroup(bs()->checkBox('include_facebook', $user->student->contactInformation->facebook))->label('Facebook')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_facebook', '未填寫')->disabled())->label('Facebook')->showAsRow() }}
            @endif

            @if($user->student->contactInformation->line)
                {{ bs()->formGroup(bs()->checkBox('include_line', $user->student->contactInformation->line))->label('LINE ID')->showAsRow() }}
            @else
                {{ bs()->formGroup(bs()->checkBox('include_line', '未填寫')->disabled())->label('LINE ID')->showAsRow() }}
{'fraction_non_alphanumeric': 0.2035225048923679, 'fraction_numerical': 0.0009032063826584374, 'mean_word_length': 1.99009900990099, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6534251', 'n_tokens_mistral': 2386, 'n_tokens_neox': 2437, 'n_words': 220}