@php $options = [ 'http' => [ 'timeout' => 3, // 3 seconds ], 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ], ]; $context = stream_context_create($options); $coln = 12; @endphp
@if(!empty($pin)) @if($pin->HasPhoto > 0) @if(@file_get_contents("https://s3.us-central-1.wasabisys.com/partswarehouse/photos/".(!empty($ClientMap) ? $ClientMap->ProductCode: '')."-2.jpg",0, $context, 0, 1)) @php $is_image[2]=1; @endphp @if(@file_get_contents("https://s3.us-central-1.wasabisys.com/partswarehouse/photos/".(!empty($ClientMap) ? $ClientMap->ProductCode: '')."-3.jpg",0, $context, 0, 1)) @php $coln = 9; @endphp
Product Image
Product Image
@php $is_image[2]=1; @endphp @php $is_image[3]=1; @endphp @if(@file_get_contents("https://s3.us-central-1.wasabisys.com/partswarehouse/photos/".(!empty($ClientMap) ? $ClientMap->ProductCode: '')."-4.jpg",0, $context, 0, 1)) @php $is_image[4]=1; @endphp
Product Image
@endif
@endif @endif @endif
@if($pin->HasPhoto > 0) @if(!empty($is_image[2]))
Product Image
@if(!empty($is_image[3]))
@if(!empty($is_image[2]))
Image 1
@endif @if(!empty($is_image[3]))
Image 2
@endif @if(!empty($is_image[4]))
Image 2
@endif
@else Product Image @endif
@else @if(!empty($pin->Manufacturer)) @if(!empty($is_manufacturer_horizontal))
...
@else
...
@endif @if(!empty($is_manufacturer_horizontal_mobile))
...
@else
Image: No image yet.
@endif @else
NO IMAGE
Product Image @endif @endif @else @if(!empty($pin->Manufacturer)) @if(!empty($is_manufacturer_horizontal))
...
@else
...
@endif @if(!empty($is_manufacturer_horizontal_mobile))
...
@else
Image: No image yet.
@endif @else
NO IMAGE
Product Image @endif @endif
@endif