問い合わせ番号 経路 受付登録日時 @if((isset($params->id) && $params->id && $params->is_frontend == config('const.is_frontend.yes'))) @php if(isset($params) &&is_object($params) && empty($params->register_hour) && empty($params->register_minute)){ $params->register_hour = Carbon::parse($params->register_date)->format('H'); $params->register_minute = Carbon::parse($params->register_date)->format('i'); } @endphp @else
@php if(isset($params) &&is_object($params) && empty($params->register_hour) && empty($params->register_minute)){ $params->register_hour = Carbon::parse($params->register_date)->format('H'); $params->register_minute = Carbon::parse($params->register_date)->format('i'); } @endphp @include('backend.share._parts._select_hour_min', [ 'hour_name' => 'register_hour', 'min_name' => 'register_minute', 'hour_val' => old('register_hour', isset($params->register_hour) ? $params->register_hour : Carbon::now()->format('H')), 'min_val' => old('register_minute', isset($params->register_minute) ? $params->register_minute : (floor(Carbon::now()->format('i') / 5) * 5)), ])
@endif @error('register_date') {{ $message }} @enderror @error('register_hour') {{ $message }} @enderror @error('register_minute') {{ $message }} @enderror
受付カテゴリ @if((isset($params->id) && $params->id && $params->is_frontend == config('const.is_frontend.yes'))) @if($department == 'parts') category_id) }}"/> @else category_id) }}"/> @endif @else
@endif
受付担当
@error('reception_charge_user') {{ $message }} @enderror
対応
対応内容等
@if($department == 'parts') @endif
個人/法人
@foreach(config('const.contact_client_type') as $key => $value) client_type) ? $params->client_type : '' ) == $key ? 'checked' : '' }}> @endforeach
@error('client_type') {{ $message }} @enderror
会社名(顧客名) @include('backend.share._parts._partner_search_part', ['partner_id'=>old('partner_id', isset($params->partner_id) ? $params->partner_id : '')]) @error('company') {{ $message }} @enderror 郵便番号
-
@error('zip_code') {{ $message }} @enderror
会社名(顧客名)(カナ) @error('company_kana') {{ $message }} @enderror 都道府県
部署名 @error('department') {{ $message }} @enderror 市区町村 @error('address1') {{ $message }} @enderror
業種 @error('job') {{ $message }} @enderror 丁目・番地 @error('address2') {{ $message }} @enderror
お名前 @error('name') {{ $message }} @enderror 建物名・部屋番号 @error('building_name') {{ $message }} @enderror お名前(カナ) @error('name_kana') {{ $message }} @enderror 電話番号 - - @error('tel1') {{ $message }} @enderror @error('tel2') {{ $message }} @enderror @error('tel3') {{ $message }} @enderror メールアドレス @error('email') {{ $message }} @enderror FAX - - @error('fax1') {{ $message }} @enderror @error('fax2') {{ $message }} @enderror @error('fax3') {{ $message }} @enderror {{-- @php $fax1 = ''; $fax2 = ''; $fax3 = ''; if(isset($params->fax)){ if(strpos($params->fax, '-')){ $fax_arr = explode('-', $params->fax); $fax1 = isset($fax_arr[0]) ? $fax_arr[0] : ''; $fax2 = isset($fax_arr[1]) ? $fax_arr[1] : ''; $fax3 = isset($fax_arr[2]) ? $fax_arr[2] : ''; } else { $fax1 = substr($params->fax, 0, 4); $fax2 = substr($params->fax, 4, 4); $fax3 = substr($params->fax, 8, 4); } } @endphp
 -   - 
@error('fax1') {{ $message }} @enderror @error('fax2') {{ $message }} @enderror @error('fax3') {{ $message }} @enderror --}}
区分
@foreach(config('const.question_class') as $key => $class) question_class) ? $params->question_class : '') == $key ? 'checked' : '' }}> @endforeach
@php $condition_arr = old('condition', (isset($conditions) && is_object($conditions)) ? $conditions->toArray() : null); $condition_count = (is_array($condition_arr) && count($condition_arr) > 0) ? count($condition_arr) : 1; if($department == 'parts') { $question_arr = old('parts', (isset($questions) && is_object($questions)) ? $questions->toArray() : null); } else { $question_arr = old('vehicle', (isset($questions) && is_object($questions)) ? $questions->toArray() : null); } $question_count = (is_array($question_arr) && count($question_arr) > 0) ? count($question_arr) : 1; @endphp

{{ $department == 'parts' ? config("const.contact_type_parts_backend.2") : config("const.contact_type_{$department}.2") }}※

@if (isset($params->category_id) && $params->category_id == config('const.contact_type_code.request_quote'))
管理番号

@if ($params->class_name == 'parts' && is_object($params->ob_parts())) $params->target_id, 'tab'=>'TAB5']) }}">部品詳細 @elseif(is_object($params->ob_vehicle())) ($params->target_id) , 'tab'=>($department == 'parts' ? 'TAB1' : 'TAB5'), 'home'=>'list_all']) }}">車両詳細 @endif

問い合わせ内容
@else @foreach(range(0, $question_count - 1) as $i) @include('backend.share.question._vehicle_addition') @endforeach
{{-- @if ($department == 'parts') @endif--}} @endif
@if ($department == 'parts') @foreach(range(0, $condition_count - 1) as $i) @include('backend.share.question._search_condition_parts') @endforeach @else @foreach(range(0, $condition_count - 1) as $i) @include('backend.share.question._search_condition') @endforeach @endif
@if ($department == 'parts')

{{ $department == 'parts' ? config("const.contact_type_parts_backend.4") : config("const.contact_type_{$department}.4") }}

@if(old('category_id', isset($params->category_id) ? $params->category_id : config('const.contact_type_code.inventory_query')) == config('const.contact_type_code.sale_vehicle') && !empty(old('target_id', isset($params->target_id) ? $params->target_id : '')) ) @endif
管理番号 @if(isset($params->class_name) && $params->class_name == 'parts')

old('target_id', isset($params->target_id) ? $params->target_id : ''), 'tab'=>'TAB5']) }}">部品詳細

@include('backend.share._parts._parts_search_part', ['i' => '_search_question', 'parts_id'=>old('target_id', isset($params->target_id) ? $params->target_id : ''), 'is_question'=>1 ]) @else

old('target_id', isset($params->target_id) ? $params->target_id : ''), 'tab'=>($department == 'parts' ? 'TAB1' : 'TAB5'), 'home'=>'list_all']) }}">車両詳細

@include('backend.share._parts._vehicle_search_question', ['i' => '_search_question', 'vehicle_id'=>old('target_id', isset($params->target_id) ? $params->target_id : ''), 'is_question'=>1 ]) @endif
問い合わせ内容
@else

{{ $department == 'parts' ? config("const.contact_type_parts_backend.4") : config("const.contact_type_{$department}.4") }}

@include('backend.share.question._for_sale')
車検証 @php $index = 1; $file_path_field = "file_path{$index}"; $file_name_field = "file_name{$index}"; @endphp
@if(!empty(old($file_path_field, isset($params->$file_path_field) ? $params->$file_path_field : '')) && Storage::disk('temp')->has(old($file_path_field, isset($params->$file_path_field) ? $params->$file_path_field : ''))) {{ old($file_name_field, isset($params->$file_name_field) ? $params->$file_name_field : '') }} @elseif(isset($params->id) && !empty(old($file_path_field, isset($params->$file_path_field) ? $params->$file_path_field : '')) && Storage::disk('question')->has($params->id.'/'.old('file_path', isset($params->$file_path_field) ? $params->$file_path_field : ''))) {{ old($file_name_field, isset($params->$file_name_field) ? $params->$file_name_field : '') }} @else @endif
@if((isset($params->id) && $params->id && $params->is_frontend == config('const.is_frontend.yes'))) @else @endif
画像
@if((isset($params->id) && $params->id && $params->is_frontend == config('const.is_frontend.yes'))) @if(isset($ob_files) && is_object($ob_files) && $ob_files->count()) @foreach($params->ob_files as $index => $ob_file) @endforeach @endif @else @foreach(range(2, 11) as $index)
@if(!empty(old("question_file.{$index}.file_path", isset($ob_files[$index-2]->file_path) ? $ob_files[$index-2]->file_path : '')) && Storage::disk('temp')->has(old("question_file.{$index}.file_path", isset($ob_files[$index-2]->file_path) ? $ob_files[$index-2]->file_path : ''))) file_path) ? $ob_files[$index-2]->file_path : '') }}" target="_blank"> file_path) ? $ob_files[$index-2]->file_path : '') }}"/> @elseif(isset($params->id) && !empty(old("question_file.{$index}.file_path", isset($ob_files[$index-2]->file_path) ? $ob_files[$index-2]->file_path : '')) && Storage::disk('question')->has($params->id.'/'.old("question_file.{$index}.file_path", isset($ob_files[$index-2]->file_path) ? $ob_files[$index-2]->file_path : ''))) file_path) ? $ob_files[$index-2]->file_path : '') }}" target="_blank"> file_path) ? $ob_files[$index-2]->file_path : '') }}"/> @else @endif
file_path) ? $ob_files[$index-2]->file_path : '') }}"> file_name) ? $ob_files[$index-2]->file_name : '') }}"> @if(isset($ob_files[$index-2]->id) && $ob_files[$index-2]->id) @endif
@endforeach @endif
@endif

{{ $department == 'parts' ? config("const.contact_type_parts_backend.4") : config("const.contact_type_{$department}.7") }}

@if(old('category_id', isset($params->category_id) ? $params->category_id : config('const.contact_type_code.inventory_query')) != config('const.contact_type_code.sale_vehicle') && old('category_id', isset($params->category_id) ? $params->category_id : config('const.contact_type_code.inventory_query')) != config('const.contact_type_code.search_question') && old('category_id', isset($params->category_id) ? $params->category_id : config('const.contact_type_code.inventory_query')) != config('const.contact_type_code.inventory_query') && !empty(old('target_id', isset($params->target_id) ? $params->target_id : '')) )
管理番号 @if(isset($params->class_name) && $params->class_name == 'parts')

old('target_id', isset($params->target_id) ? $params->target_id : ''), 'tab'=>'TAB5']) }}">部品詳細

@include('backend.share._parts._parts_search_part', ['i' => '_search_question', 'parts_id'=>old('target_id', isset($params->target_id) ? $params->target_id : ''), 'is_question'=>1 ]) @else

old('target_id', isset($params->target_id) ? $params->target_id : ''), 'tab'=>($department == 'parts' ? 'TAB1' : 'TAB5'), 'home'=>'list_all']) }}">車両詳細

@include('backend.share._parts._vehicle_search_question', ['i' => '_search_question', 'vehicle_id'=>old('target_id', isset($params->target_id) ? $params->target_id : ''), 'is_question'=>1 ]) @endif
問い合わせ内容
@else
問い合わせ内容
@endif