<commit_before>@php
    $locale = Session::get('locale', 'tw');
    if ($locale === 'tw') {
        $tw = 'active';
        $en = '';
    } else {
        $tw = '';
        $en = 'active';
    }
@endphp
<!DOCTYPE html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>贊助商上傳表單</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    </head>
    <body class="bg-light">
        <nav class="nav justify-content-end nav-pills">
            <li class="nav-item">
                <a class="nav-link {{ $tw }}" href="/lang/tw">中文</a>
            </li>
            <li class="nav-item">
                <a class="nav-link {{ $en }}" href="/lang/en">English</a>
            </li>
        </nav>
        <div id="app">
            <div class="container">
                <div class="alert sticky-top" :class="classColor" role="alert" style="top: 10px;" v-if="alertShow">
                    @{{ message }}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close" v-on:click="alertShow = false">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="row justify-content-center mt-5">
                    <div class="col-md-6" v-if="show">
                        <div class="card">
                            <div class="card-header">
                                <h3 class="text-center">{{trans('sponsor.sponsor_upload_form')}}</h3>
                            </div>
                            <div class="card-body">
                                <accesskey-form v-on:accesskey_method="getSponsorForm"></accesskey-form>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-10" id="sponsorForm" v-if="!show">
                        <h2 class="d-inline-block my-3">{{trans('sponsor.sponsor_form')}}</h2>
                        <h4 class="d-inline-block mx-2">{{trans('sponsor.sponsor_form_c')}}</h4>
                        <form id="sendform" class="needs-validation" novalidate>
                            <h4 class="text-primary mt-2">{{trans('sponsor.promote_data')}}</h4>
                            <hr>
                            <div class="form-row">
                                <div class="col-md-6 mb-3">
                                    <label for="companyName">{{trans('sponsor.main.name')}}*</label>
                                    <input type="text" class="form-control" id="companyName" placeholder="公司名稱" v-model="formData.main.name" required>
                                    <div class="invalid-feedback">
                                        {{trans('sponsor.required.main_name')}}
                                    </div>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="companyEnglishName">{{trans('sponsor.main.en_name')}}*</label>
                                    <input type="text" class="form-control" id="companyEnglishName" placeholder="公司英文名稱" v-model="formData.main.en_name" required>
                                    <div class="invalid-feedback">
                                        {{trans('sponsor.required.main_en_name')}}
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="introduction">{{trans('sponsor.main.introduction')}}*</label>
                                    <span class="d-inline-block text-right"> @{{ introTextConunt }} / 250</span>
                                </div>
                                <textarea class="form-control" id="introduction" rows="4" v-model="formData.main.introduction" maxlength="250" v-on:keyup="countText(250, 'introTextConunt', formData.main.introduction)" required></textarea>
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_introduction')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="englishIntroduction">{{trans('sponsor.main.en_introduction')}}</label>
                                </div>
                                <textarea class="form-control" id="englishIntroduction" rows="4" v-model="formData.main.en_introduction"></textarea>
                            </div>
                            <div class="form-group">
                                <label for="companyUrl">{{trans('sponsor.main.website')}}*</label>
                                <input type="url" class="form-control" id="companyUrl" placeholder="{{trans('sponsor.main.website')}}" v-model="formData.main.website" required>
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_website')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="socialMedia">{{trans('sponsor.main.social_media')}}</label>
                                <input type="url" class="form-control" id="socialMedia" placeholder="FaceBook Url" v-model="formData.main.social_media">
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="production">{{trans('sponsor.main.production')}}*</label>
                                    <span class="d-inline-block text-right"> @{{ productionTextConunt }} / 250</span>
                                </div>
                                <textarea class="form-control" id="production" rows="4"
                                v-model="formData.main.production" maxlength="250" v-on:keyup="countText(250, 'productionTextConunt', formData.main.production);" required></textarea>
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_production')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="logo_path">{{trans('sponsor.main.logo')}}*</label>
                                <input type="file" class="form-control-file" id="logo_path" :required="formData.main.logo_path == null" @change="imagePreview('logo_path')">
                                <img :src="formData.main.logo_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_logo')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="service_photo_path">{{trans('sponsor.main.service_photo')}}*</label>
                                <input type="file" class="form-control-file" id="service_photo_path" :required="formData.main.service_photo_path == null" @change="imagePreview('service_photo_path')">
                                <img :src="formData.main.service_photo_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_service_photo')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="promotionalMaterial">{{trans('sponsor.main.promotion')}}</label>
                                <textarea class="form-control" id="promotionalMaterial" rows="3" v-model="formData.main.promote">
                                </textarea>
                            </div>
                            <div class="form-group">
                                <label for="slide_path">{{trans('sponsor.main.slide')}}*</label>
                                <input type="file" class="form-control-file" id="slide_path" :required="formData.main.slide_path == null" @change="imagePreview('slide_path')">
                                <img :src="formData.main.slide_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_slide')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="board_path">{{trans('sponsor.main.board')}}*</label>
                                <input type="file" class="form-control-file" id="board_path" :required="formData.main.board_path == null" @change="imagePreview('board_path')">
                                <img :src="formData.main.board_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_board')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="dinnerPartyIntro">{{trans('sponsor.main.dinner_intro')}}</label>
                                    <span class="d-inline-block text-right"> @{{ dinnerPartyIntroTextConunt }} / 80</span>
                                </div>
                                <textarea class="form-control" id="dinnerPartyIntro" rows="2" v-model="formData.main.opening_remarks" maxlength="80" v-on:keyup="countText(80, 'dinnerPartyIntroTextConunt', formData.main.opening_remarks);"></textarea>
                            </div>
                            <h4 class="text-primary mt-2">{{trans('sponsor.recipe_data')}}</h4>
                            <hr>
                            <div class="form-row">
                                <div class="col-md-6 mb-3">
                                    <label for="companyFullName">{{trans('sponsor.recipe.company_full_name')}}*</label>
                                    <input type="text" class="form-control" id="companyFullName" placeholder="公司 / 組織全銜" v-model="formData.recipe.recipe_full_name" required><commit_msg>將 logo、產品或服務照片、場間投影片、電子看板欄位改為非必填<commit_after>@php
    $locale = Session::get('locale', 'tw');
    if ($locale === 'tw') {
        $tw = 'active';
        $en = '';
    } else {
        $tw = '';
        $en = 'active';
    }
@endphp
<!DOCTYPE html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>贊助商上傳表單</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    </head>
    <body class="bg-light">
        <nav class="nav justify-content-end nav-pills">
            <li class="nav-item">
                <a class="nav-link {{ $tw }}" href="/lang/tw">中文</a>
            </li>
            <li class="nav-item">
                <a class="nav-link {{ $en }}" href="/lang/en">English</a>
            </li>
        </nav>
        <div id="app">
            <div class="container">
                <div class="alert sticky-top" :class="classColor" role="alert" style="top: 10px;" v-if="alertShow">
                    @{{ message }}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close" v-on:click="alertShow = false">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="row justify-content-center mt-5">
                    <div class="col-md-6" v-if="show">
                        <div class="card">
                            <div class="card-header">
                                <h3 class="text-center">{{trans('sponsor.sponsor_upload_form')}}</h3>
                            </div>
                            <div class="card-body">
                                <accesskey-form v-on:accesskey_method="getSponsorForm"></accesskey-form>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-10" id="sponsorForm" v-if="!show">
                        <h2 class="d-inline-block my-3">{{trans('sponsor.sponsor_form')}}</h2>
                        <h4 class="d-inline-block mx-2">{{trans('sponsor.sponsor_form_c')}}</h4>
                        <form id="sendform" class="needs-validation" novalidate>
                            <h4 class="text-primary mt-2">{{trans('sponsor.promote_data')}}</h4>
                            <hr>
                            <div class="form-row">
                                <div class="col-md-6 mb-3">
                                    <label for="companyName">{{trans('sponsor.main.name')}}*</label>
                                    <input type="text" class="form-control" id="companyName" placeholder="公司名稱" v-model="formData.main.name" required>
                                    <div class="invalid-feedback">
                                        {{trans('sponsor.required.main_name')}}
                                    </div>
                                </div>
                                <div class="col-md-6 mb-3">
                                    <label for="companyEnglishName">{{trans('sponsor.main.en_name')}}*</label>
                                    <input type="text" class="form-control" id="companyEnglishName" placeholder="公司英文名稱" v-model="formData.main.en_name" required>
                                    <div class="invalid-feedback">
                                        {{trans('sponsor.required.main_en_name')}}
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="introduction">{{trans('sponsor.main.introduction')}}*</label>
                                    <span class="d-inline-block text-right"> @{{ introTextConunt }} / 250</span>
                                </div>
                                <textarea class="form-control" id="introduction" rows="4" v-model="formData.main.introduction" maxlength="250" v-on:keyup="countText(250, 'introTextConunt', formData.main.introduction)" required></textarea>
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_introduction')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="englishIntroduction">{{trans('sponsor.main.en_introduction')}}</label>
                                </div>
                                <textarea class="form-control" id="englishIntroduction" rows="4" v-model="formData.main.en_introduction"></textarea>
                            </div>
                            <div class="form-group">
                                <label for="companyUrl">{{trans('sponsor.main.website')}}*</label>
                                <input type="url" class="form-control" id="companyUrl" placeholder="{{trans('sponsor.main.website')}}" v-model="formData.main.website" required>
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_website')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="socialMedia">{{trans('sponsor.main.social_media')}}</label>
                                <input type="url" class="form-control" id="socialMedia" placeholder="FaceBook Url" v-model="formData.main.social_media">
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="production">{{trans('sponsor.main.production')}}*</label>
                                    <span class="d-inline-block text-right"> @{{ productionTextConunt }} / 250</span>
                                </div>
                                <textarea class="form-control" id="production" rows="4"
                                v-model="formData.main.production" maxlength="250" v-on:keyup="countText(250, 'productionTextConunt', formData.main.production);" required></textarea>
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_production')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="logo_path">{{trans('sponsor.main.logo')}}</label>
                                <input type="file" class="form-control-file" id="logo_path" @change="imagePreview('logo_path')">
                                <img :src="formData.main.logo_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_logo')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="service_photo_path">{{trans('sponsor.main.service_photo')}}</label>
                                <input type="file" class="form-control-file" id="service_photo_path" @change="imagePreview('service_photo_path')">
                                <img :src="formData.main.service_photo_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_service_photo')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="promotionalMaterial">{{trans('sponsor.main.promotion')}}</label>
                                <textarea class="form-control" id="promotionalMaterial" rows="3" v-model="formData.main.promote">
                                </textarea>
                            </div>
                            <div class="form-group">
                                <label for="slide_path">{{trans('sponsor.main.slide')}}</label>
                                <input type="file" class="form-control-file" id="slide_path" @change="imagePreview('slide_path')">
                                <img :src="formData.main.slide_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_slide')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="board_path">{{trans('sponsor.main.board')}}</label>
                                <input type="file" class="form-control-file" id="board_path" @change="imagePreview('board_path')">
                                <img :src="formData.main.board_path" class="mt-2" width="200px">
                                <div class="invalid-feedback">
                                    {{trans('sponsor.required.main_board')}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="d-flex justify-content-between flex-column flex-md-row">
                                    <label for="dinnerPartyIntro">{{trans('sponsor.main.dinner_intro')}}</label>
                                    <span class="d-inline-block text-right"> @{{ dinnerPartyIntroTextConunt }} / 80</span>
                                </div>
                                <textarea class="form-control" id="dinnerPartyIntro" rows="2" v-model="formData.main.opening_remarks" maxlength="80" v-on:keyup="countText(80, 'dinnerPartyIntroTextConunt', formData.main.opening_remarks);"></textarea>
                            </div>
                            <h4 class="text-primary mt-2">{{trans('sponsor.recipe_data')}}</h4>
                            <hr>
                            <div class="form-row">
                                <div class="col-md-6 mb-3">
                                    <label for="companyFullName">{{trans('sponsor.recipe.company_full_name')}}*</label>
                                    <input type="text" class="form-control" id="companyFullName" placeholder="公司 / 組織全銜" v-model="formData.recipe.recipe_full_name" required>
{'fraction_non_alphanumeric': 0.14291568020397014, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 1.2658345368269033, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 337, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 58, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4026839', 'n_tokens_mistral': 5847, 'n_tokens_neox': 5449, 'n_words': 782}