@extends('layouts.app') @section('content')

ユーザー情報確認 > 入力内容確認

下記の内容で変更します。
@csrf

{{ $user->user_name }}

{{ $user->user_phonetic }}

@if (!empty($input['user_gender']))

{{ $input['user_gender'] }}

@endif

@php $zip1 = $input['user_regident_zip_1'] ?? $user->user_regident_zip_1 ?? ''; $zip2 = $input['user_regident_zip_2'] ?? $user->user_regident_zip_2 ?? ''; $pre = $input['user_regident_pre'] ?? $user->user_regident_pre ?? ''; $city = $input['user_regident_city'] ?? $user->user_regident_city ?? ''; $add = $input['user_regident_add'] ?? $user->user_regident_add ?? ''; $zip = ($zip1 && $zip2) ? $zip1.'-'.$zip2 : (($zip1 || $zip2) ? $zip1.$zip2 : ''); @endphp {{ $zip }}{{ $pre }}{{ $city }}{{ $add }}

{{ $input['user_birthdate'] }}

{{ $input['user_age'] }}

@php $home = array_filter($input['user_homephone'] ?? []); @endphp {{ $home ? implode('-', $home) : '' }}

@foreach ($input['user_homephone'] as $val) @endforeach

@php $mobile = array_filter($input['user_mobile'] ?? []); @endphp {{ $mobile ? implode('-', $mobile) : '' }}

@foreach ($input['user_mobile'] as $val) @endforeach

{{ $input['user_primemail'] }}

{{ $input['user_primemail_confirmation'] }}

{{ $input['user_submail'] }}

{{ $input['user_category'] }}

@if ($input['user_category'] === '学生')

{{ $input['user_school'] }}

{{ $input['user_graduate'] }}

@else

{{ $input['user_workplace'] }}

@endif

@php $zip1 = $input['user_relate_zip_1'] ?? $user->user_relate_zip_1 ?? ''; $zip2 = $input['user_relate_zip_2'] ?? $user->user_relate_zip_2 ?? ''; $pre = $input['user_relate_pre'] ?? $user->user_relate_pre ?? ''; $city = $input['user_relate_city'] ?? $user->user_relate_city ?? ''; $add = $input['user_relate_add'] ?? $user->user_relate_add ?? ''; $zip = ($zip1 && $zip2) ? $zip1.'-'.$zip2 : (($zip1 || $zip2) ? $zip1.$zip2 : ''); @endphp {{ $zip }}{{ $pre }}{{ $city }}{{ $add }}

@if(isset($input['photo_filename1']) && $input['photo_filename1'] !== '') @endif
@if(isset($input['photo_filename2']) && $input['photo_filename2'] !== '') @endif
@if(isset($input['user_pass']) && $input['user_pass'] !== '')

********

@endif
@endsection