{{ $row['title'] }} {{-- dfdfdf --}} @php $microchips = []; if(!empty($row['dog_microchip']) && count($row['dog_microchip']) > 0) { foreach($row['dog_microchip'] as $k => $d) { $microchips[] = $d['gender']; } } @endphp @if(isset($microchips) && $microchips && in_array('male', $microchips) && isset($microchips) && $microchips && in_array('female', $microchips)) @elseif(isset($microchips) && $microchips && in_array('male', $microchips) && !in_array('female', $microchips)) @elseif(isset($microchips) && $microchips && in_array('female', $microchips) && !in_array('male', $microchips)) @endif