{{-- {{ $assignCowToStaff->getTime($assignCowToStaff->id, $list->cow->id, 'cow_id', 3) ? ($assignCowToStaff->getTime($assignCowToStaff->id, $list->cow->id, 'cow_id', 3)->bath_time ? $assignCowToStaff->getTime($assignCowToStaff->id, $list->cow->id, 'cow_id', 3)->bath_time : 'not set') : 'not set' }} --}} @php $notSet = ' Not Set '; @endphp @if ($data_type == 'feeding_time') @if ($assignCowToStaff->getTime($assign_id, $cow_id, $column_name, $table_type, $date)) @if ($assignCowToStaff->getTime($assign_id, $cow_id, $column_name, $table_type, $date)->feeding_time) {{ Carbon\Carbon::parse($assignCowToStaff->getTime($assign_id, $cow_id, $column_name, $table_type, $date)->feeding_time)->format('h:i a') }} @else {!! $notSet !!} @endif @else {!! $notSet !!} @endif @elseif($data_type == 'bath_time') @if ($assignCowToStaff->getTime($assign_id, $cow_id, $column_name, $table_type, $date)) @if ($assignCowToStaff->getTime($assign_id, $cow_id, $column_name, $table_type, $date)->bath_time) {{ Carbon\Carbon::parse($assignCowToStaff->getTime($assign_id, $cow_id, $column_name, $table_type, $date)->bath_time)->format('h:i a') }} @else {!! $notSet !!} @endif @else {!! $notSet !!} @endif @endif