@extends('backend.layouts.app') @section('content') @if(isset($is_confirm) && $is_confirm) @if(isset($params->id) && $params->id)

問い合わせ【確認】

{{ Form::open(["route"=>"backend.{$department}.question.update"]) }} @else

問い合わせ【確認】

{{ Form::open(["route"=>"backend.{$department}.question.store"]) }} @endif @else

問い合わせ【閲覧】

@include('backend.layouts.flash-message') @endif
問い合わせ番号 {{ isset($params->question_no) ? $params->question_no : '' }} 経路 {{ config('const.question_front_type.'.((isset($params->is_frontend) && $params->is_frontend) ? $params->is_frontend : config('const.is_frontend.no'))) }} 受付登録日時
{{ !empty($params->register_date) ? Carbon::parse($params->register_date)->format('Y.m.d').' ' : '' }}
@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
{{ !empty($params->register_hour) ? $params->register_hour.'時' : '' }} {{ !empty($params->register_minute) ? $params->register_minute.'分' : '' }}
受付カテゴリ {{ config("const.contact_type_{$department}.".$params->category_id) }} 受付担当 {{ \App\Service\UserService::getUserName($params->reception_charge_user) }} 対応 {{ config("const.question_response_status.".$params->response_status) }}
対応内容等 {!! nl2br($params->response_content) !!}
@include('backend.share.question._t_main') @if($params->category_id == config('const.contact_type_code.inventory_query') || $params->category_id == config('const.contact_type_code.request_quote'))

{{ config("const.contact_type_{$department}.".$params->category_id) }}

@if(is_object($questions) && $params->category_id == config('const.contact_type_code.inventory_query')) @foreach($questions as $key=>$question) {{-- @if(class_basename($question) == 'QuestionVehicle')--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endif--}} @endforeach @else @endif
管理番号 {{ $question->manage_no }} {{ $question->getObName() }}
提示価格{{ (!empty($question->question_price) && is_numeric($question->question_price)) ? number_format($question->question_price) : $question->question_price }}
問い合わせ内容 @php echo nl2br($question->content) @endphp
管理番号 {{ $params->manage_no }} {{ $params->getObName() }}
問い合わせ内容 @php echo nl2br($params->getFirstContent()) @endphp
@elseif($params->category_id == config('const.contact_type_code.search_question') || $params->category_id == config('const.contact_type_code.confirm_parts'))
@if ($department == 'parts') @if(is_object($conditions)) @foreach(range(0, 0) as $i) @include('backend.share.question._search_condition_parts', ['detail'=>1]) @endforeach @endif @else @if(is_object($conditions)) @foreach(range(0, $conditions->count() - 1) as $i) @include('backend.share.question._search_condition') @endforeach @endif @endif
@elseif($params->category_id == config('const.contact_type_code.sale_vehicle'))
@if ($department == 'parts')

{{ config("const.contact_type_{$department}.".$params->category_id) }}

@if(!empty($params->manage_no)) @endif
管理番号 {{ $params->manage_no }} {{ $params->getObName() }}
問い合わせ内容 @php echo nl2br($params->note) @endphp
@else

{{ config("const.contact_type_{$department}.".$params->category_id) }}

@include('backend.share.question._for_sale') @if(isset($params))
車検証 @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($ob_files) && is_object($ob_files) && $ob_files->count()) @foreach($ob_files as $file_index => $ob_file) @if(!empty($ob_file->file_path) && Storage::disk('question')->exists($params->id.'/'.$ob_file->file_path)) @elseif(!empty($ob_file->file_path) && Storage::disk('temp')->exists($ob_file->file_path)) @endif @endforeach @endif
@endif @endif
@else

{{ config("const.contact_type_{$department}.".$params->category_id) }}

@if(!empty($params->manage_no))
管理番号 {{ $params->manage_no }} {{ $params->getObName() }}
問い合わせ内容

@php echo nl2br($params->note) @endphp

@else
問い合わせ内容

@php echo nl2br($params->note) @endphp

@endif
@endif
@if(isset($is_confirm) && $is_confirm) @if(isset($params->id) && $params->id) @else @endif @else @if($department == 'parts') @endif @endif
@if(isset($is_confirm) && $is_confirm) {{ Form::close() }} @endif @if(isset($params->id) && $params->id) {{ Form::open(["route"=>["backend.{$department}.question.destroy", 'id'=>$params->id], "method"=>"delete", "id"=>"delete_form"]) }} {{ Form::close() }} @endif @endsection @section('page_css') @endsection @section('page_js')