お問い合わせ種別必須
@foreach( config("const.contact_type_{$_fb_department}") as $key => $val ) @if((is_object($obj_about) && class_basename($obj_about) == 'Vehicle') && $_fb_department == 'parts' && ($key == config('const.contact_type_code.confirm_parts') || $key == config('const.contact_type_code.parts_inventory_check'))) @continue @endif @if(is_object($obj_about) && $_fb_department != 'rental') @if(($key == config('const.contact_type_code.request_quote') || $key == config('const.contact_type_code.inventory_query') || $key == config('const.contact_type_code.confirm_parts') || $key == config('const.contact_type_code.etc')))
@if(!is_object($obj_about) && $key == config('const.contact_type_code.inventory_query'))
管理番号: @php $class_name = $_fb_department == 'parts' ? 'Parts' : 'Vehicle'; @endphp @error('manage_no')
{{ $message }} @enderror
@endif @endif @else
@if(!is_object($obj_about) && $key == config('const.contact_type_code.inventory_query') && $_fb_department != 'rental')
管理番号: @php $class_name = $_fb_department == 'parts' ? 'Parts' : 'Vehicle'; @endphp @error('manage_no')
{{ $message }} @enderror
@endif @endif @endforeach
@error('category_id') {{ $message }} @enderror @if($_fb_department == 'rental') 車種
@error('shape_name') {{ $message }} @enderror レンタル期間
@php $c_start = Carbon::now()->format("H") > config('const.rental_contract_hour_limit') ? Carbon::now()->addDay() : Carbon::now(); $com_s_date = old('loan_date', isset($contact['loan_date']) ? $contact['loan_date'] : '') ? old('loan_date', isset($contact['loan_date']) ? $contact['loan_date'] : '') : $c_start->format("Y-m-d"); $com_e_date = old('return_date', isset($contact['return_date']) ? $contact['return_date'] : '') ? old('return_date', isset($contact['return_date']) ? $contact['return_date'] : '') : $c_start->format("Y-m-d"); @endphp
出発
日時
@error('loan_date') {{ $message }} @enderror
拠点
返却
日時
@error('return_date') {{ $message }} @enderror
拠点
@endif 個人/法人必須
@foreach(config('const.contact_client_type') as $key => $value) @endforeach
@error('client_type')
{{ $message }} @enderror (法人の場合)会社名必須 @error('company_name')
{{ $message }} @enderror @unless ($_fb_department == 'rental') (法人の場合)部署名 @error('department')
{{ $message }} @enderror 業種 @error('job')
{{ $message }} @enderror @endunless お名前必須 @error('name')
{{ $message }} @enderror お名前(カナ)必須 @error('name_kana')
{{ $message }} @enderror メールアドレス必須 @error('email')
{{ $message }} @enderror 確認用メールアドレス必須 @unless ($_fb_department == 'rental') 住所
-
@error('zip_first')
{{ $message }} @enderror @error('address1')
{{ $message }} @enderror @error('address2')
{{ $message }} @enderror @error('building_name')
{{ $message }} @enderror @endunless 電話番号必須 - - @error('tel1')
{{ $message }} @enderror @error('tel2')
{{ $message }} @enderror @error('tel3')
{{ $message }} @enderror @unless ($_fb_department == 'rental') FAX番号 - - @error('fax1')
{{ $message }} @enderror @error('fax2')
{{ $message }} @enderror @error('fax3')
{{ $message }} @enderror @endunless {{-- @if($_fb_department == 'parts') 区分
@foreach(config('const.question_class') as $key => $class) @endforeach
@endif --}} @if($class_name == 'Parts') @include('frontend.share.contact.form._p_parts') @include('frontend.share.contact.form._p_parts_condition') @elseif($_fb_department == 'parts' || $_fb_department == 'truck') @include('frontend.share.contact.form._p_truck_condition') @include('frontend.share.contact.form._p_truck') @endif @if($_fb_department == 'parts') {{-- --}} {{-- お見積書を希望する--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} @endif お問い合わせ内容 @if($_fb_department == 'parts')

記入例:フロントドア(右) 品番:MC991467

@endif @error('content')
{{ $message }} @enderror