@if(isset($image) && is_object($image) && $image->source)
@php
$imagecheck = 'https://maritime-executive.com'.$image->source;
@endphp
@php
$handle = @fopen($imagecheck, 'r');
if(!$handle){
	$img = 'img/no-image.jpg';
}else{
	$img  = $imagecheck;
}
@endphp
	<img src="{{ $img }}" alt="{{ (isset($image->alternate_text) ? $image->alternate_text : '') }}" class="img-responsive {{ (isset($class) ? $class : '') }}" id="{{ (isset($id) ? $id : '') }}" />
		
@elseif(isset($source))
    <img src="https://maritime-executive.com{{ $source }}" alt="{{ (isset($alternate_text) ? $alternate_text : '') }}" class="img-responsive {{ (isset($class) ? $class : '') }}" id="{{ (isset($id) ? $id : '') }}" />
@else
	<img src="img/no-image.jpg" alt="{{ (isset($image->alternate_text) ? $image->alternate_text : '') }}" class="img-responsive {{ (isset($class) ? $class : '') }}" id="{{ (isset($id) ? $id : '') }}" />
@endif
