@extends('web.layout.master') @section('content')
@php $options = [ 'http' => [ 'timeout' => 3, // 3 seconds ], 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ], ]; $context = stream_context_create($options); @endphp @if(!empty($pin) && $pin->Hidden != 'Y')

{{ $pin->Name }} #{{ !empty($pin) ? $pin->SKU: "" }} {{ !empty($pin->Brands) ? "for ".$pin->Brands : "" }}

{{--

Product Code: {{ !empty($pin) ? $pin->SKU: "" }} @if(!empty($vendor_map->MFG_SKU) && empty($alternativProductData))| Mfr # {{ $vendor_map->MFG_SKU }} @endif

--}}
@foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

{{ Session::get('alert-' . $msg) }}

@endif @endforeach
@php $userAgent = $_SERVER['HTTP_USER_AGENT']; $isMobile = false; $defaultClick=0; // Check if the user agent indicates a mobile device if (strpos($userAgent, 'Mobile') !== false) { $isMobile = true; } $coln = 12; @endphp @if(!empty($pin)) @if($pin->HasPhoto > 0) @if($pin->HasPhoto > 0) @php $is_image[2]=1; @endphp @if($pin->HasPhoto > 1) @php $coln = 9; @endphp
@endif @endif @endif
@if($pin->HasPhoto > 0) @if(!empty($is_image[2]))
Product Image
@if(!empty($is_image[3]))
@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
NO IMAGE
Product Image
@endif
@endif

{{ $pin->Name }} #{{ !empty($pin) ? $pin->SKU: "" }} {{ !empty($pin->Brands) ? "for ".$pin->Brands : "" }}

@if($pin->Discontinued == 'Y')

Product Code: {{ (!empty($pin) ? $pin->ProductCode : '') }} | SKU: {{ (!empty($pin) ? $pin->SKU : '') }}

@endif @if($pin->Discontinued != 'Y') @endif
@if($pin->Discontinued != 'Y') @if(!empty($pin->Brands)) @php $brandArray = explode(',', $pin->Brands); $baseUrl = 'https://s3.us-central-1.wasabisys.com/partswarehouse/Brand-Logos/'; // Process each brand $imageUrls = array_map(function($brand) use ($baseUrl) { // Trim whitespace and normalize brand name $normalizedBrand = preg_replace('/[^a-zA-Z0-9]+/', '_', trim($brand)); // Generate the URL return $baseUrl . $normalizedBrand . '.jpg'; }, $brandArray); @endphp @endif @if(!empty($imageUrls)) @if(count($imageUrls) > 2)
@php $b=0; @endphp @foreach ($imageUrls as $imgu) ... @php $b++; @endphp @endforeach
@else
@foreach ($imageUrls as $imgu) ... @endforeach
@endif @endif @endif @if(!empty($pin->Manufacturer)) @if($isMobile != 1) @php $is_manufacturer_horizontal=1; @endphp {{-- ... --}} @else @php $is_manufacturer_horizontal_mobile=1; @endphp {{-- ... --}} @endif @endif
@if($pin->Availability && $pin->Discontinued != 'Y')
Availability @if($pin->Discontinued != 'Y') {{$pin->Availability }} @else Discontinued by the Manufacturer @endif
@if ($pin->Discontinued != 'Y') @if(!empty($alternativProductData))
Recommended:   View
@endif @if(empty($isWholeModel))
Fits Models:   View List
@endif @if(!empty($ParentClientMap) && !empty($ParentClientMap->ProductCode) && $pin->Discontinued != 'Y')
{{ $replaces_label }} : {{$ParentClientMap->ProductCode }}
@endif @endif
@endif @if($pin->Discontinued == 'Y')
DISCONTINUED BY MANUFACTURER
@endif
@if ($pin->Discontinued != 'Y') ${{ $pin->SalePrice }} @if($pin->SalePrice < $pin->SalePriceAfterRatio) ${{ $pin->SalePriceAfterRatio }} @php $offrate = round((($pin->SalePriceAfterRatio/$pin->SalePrice)-1)*100); @endphp @if(!empty($offrate)) {{ $offrate }}% {{ !empty($setting->product_discount_label) ? $setting->product_discount_label : "Off" }} @endif @endif @endif @if($inStockCheck == 1)

In Stock

{{--
--}} @endif
@csrf @if ($pin->Discontinued != 'Y')
@endif {{-- --}}
@if ($pin->Discontinued != 'Y')
@endif
@if ($pin->Discontinued != 'Y') @endif @if(!empty($alternativProductData))
@foreach ($alternativProductData as $a) @php $originalText = $a['productname']; if (($lastHashPos = strrpos($originalText, '#')) !== false) { // Replace the text after the last '#' with red-colored text $newText = substr($originalText, 0, $lastHashPos + 1) . "" . substr($originalText, $lastHashPos + 1) . ""; $proname = $newText; } else { $proname = $originalText; } $pname = preg_replace("/[^A-Za-z0-9\s]/", "", $a['productname']); $pname1 = str_replace(" ","-",$pname); @endphp

@if(!empty($a['Type'])) {{ $a['Type'] }} @else Replacement @endif

{!! $proname !!}
index == 0) tabindex="0" id="alternativeProductDiv" @endif> Availability {{ $a['availability'] }}

Product Code: {{ (!empty($a['productcode']) ? $a['productcode'] : '') }} | SKU: {{ (!empty($a) ? $a['sku'] : '') }}

{!! $a['description'] !!}

No data

Product Code: {{ (!empty($a['productcode']) ? $a['productcode'] : '') }} | SKU: {{ (!empty($a) ? $a['sku'] : '') }}

{!! $a['description'] !!}

No data

@endforeach
@endif @if ($pin->Discontinued != 'Y') @if(!empty($pin->SalePrice) && $pin->SalePrice >= $setting->affirm_enable_amount && $setting->is_enable_affirm == 1)

@endif

Product Code: {{ !empty($pin) ? $pin->ProductCode: "" }} | SKU: {{ !empty($pin) ? $pin->SKU: "" }}


{!! $pin->Description !!}
@if(!empty($pin) && $pin->Prop65 == 'Y') warning WARNING: Cancer and Reproductive Harm - www.P65Warnings.ca.gov . @endif

@if(!empty($isWholeModelName))
@else
Loading....
@endif
@if(!empty($isWholeModel)) @endif

@if(!$reviews->isEmpty())
Average Customer Rating: @for($i=1;$i <= $reviewavg;$i++) @endfor {{ intval($reviewavg) }} of 5
Total Reviews: {{ intval(count($reviews)) }}
@foreach ($reviews as $review)
@for($i=1;$i <= $review->rate;$i++) @endfor {{ $review->reviewtitle }}

Reviewer: {{ $review->name }} for {{ $review->location }}

{{ $review->reviewdescription }}

{{--
Was this review helpful to you?   Yes   No
--}}

{{ date('M d,Y',strtotime($review->lastmodified)) }}

@endforeach @else
No product reviews yet
@endif
@endif
@if (($pin->Discontinued == 'Y' && !empty($alternativProductData) && !empty($isWholeModel)) || ($pin->Discontinued == 'Y' && empty($alternativProductData)))

@csrf
Submit the following form to have our research team find any remaining stock, alternates, substitutes or even used options and report back to you.
{!! captcha_img() !!}

@endif
@else @foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

{{ Session::get('alert-' . $msg) }}

@endif @endforeach

Please contact us so that we can verify part price and availability.

{{--

Please contact us tso that we can verify part price and availablility.

--}}

Call Us

Send us a text

Email us

{{-- ... --}} Keep Shopping
@csrf
{!! captcha_img() !!}
...

Text your data tag and email address to 972-383-9129 and we'll send you a link to the right parts for your model!

Model numbers are usually found on data label attached to the machine. On vacuums, power tools, and pool equipment, they are usually located on the back or bottom of the unit. On appliances, they are usually located on the back or inside the unit.

@endif
@if(!empty($pin) && $pin->Discontinued != 'Y')

${{ $pin->SalePrice }}

@if ($pin->Discontinued != 'Y') @if ($pin->Discontinued != "Y") Add to Cart @else @endif @endif
@endif
@endsection