@if($rapport['rapport_parent'] !== 0) @php $check_sub=explode('--', $item['name']); $count_check=count($check_sub); if($count_check>1) { $item['name']=$check_sub[0]; $rapport->rapport_id=$check_sub[1]; $id=$check_sub[1]; } @endphp @endif user()->user_type > 4 && $item['name'] == 'date_rapport') readonly @endif value="{{ isset($item['date']) && $item['date'] == true && DateTime::createFromFormat('Y-m-d H:i:s',$rapport[$item['name']]) ? Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $rapport[$item['name']])->format('d/m/Y') : $rapport[$item['name']] }}" class="form-control {{isset($item['class']) ? $item['class'] : ''}} {{ isset($item['required']) && $item['required'] ? 'required' : ''}} {{ (auth()->user()->user_type <= 5 || $item['name'] != 'date_rapport') && isset($item['date']) && $item['date'] == true ? 'date_picker' : '' }}"> @if(isset($item['subtext'], $item['subtext_name']))
({{ $item['subtext'] }} {{ $rapport[$item['subtext_name']] }}) @endif