@extends('web.layout.master') @section('content') @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; } @endphp
@foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg)) {{--

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

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

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

@endif @endforeach @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ $modeldata['modelName'] }}

Model: {{ $modeldata['modelNumber'] }}

@if($isMobile != 1) @if(!empty(request()->asymID))

Back To Assemblies

@endif @endif @if($whishlist_status == 1) check()) onclick="wishlistSave(this)" @else onclick="loginModel()" @endif data-model-id="{{ $modeldata['modelNumber'] }}" class="mygearsavebtn mt-4">
Save
@else Remove from My Gear @endif Part Not Listed?Part Not Listed?
@if(!empty($modeldata['popularParts']) || ($checkasymID != 0))
@endif
@if(!empty($modeldata['popularParts']) || ($checkasymID != 0))
@if($checkasymID != 0) @foreach($modeldata['partsLists'] as $mpkey => $mp) @php $CurrentURL = request()->url(); if (!empty($newURLs[$mp['asymID']])) { $model_url = $CurrentURL.'?asymID='. $mp['asymID']; } else { $model_url = $CurrentURL.'?asymID='. $mp['asymID']; } @endphp @endforeach @else @if(!empty($modeldata['popularParts']))

Popular Parts

Popular Parts

@endif
@foreach($modeldata['popularParts'] as $ppkey => $pp) @endforeach

@endif
@endif @php $partsall = []; $partsallonly = []; @endphp @if($checkasymID == 0)
@php $mk = 0; @endphp @foreach($modeldata['partsLists'] as $mpkey => $mp)

@if($mk == 0) @if($isMobile == 1)
@if($checkasymID == 0)
@endif
@endif @endif
...
@if($mk == 0) @if($isMobile != 1)
@if($checkasymID == 0)
@endif
@endif @endif
@php $cm = 0; @endphp @foreach($mp['parts'] as $mppkey => $mppart) @php if($mppart['HasPhoto'] > 0){ $pimage = "https://s3.us-central-1.wasabisys.com/partswarehouse/photos/".$mppart['ProductCode'] ."-1.jpg"; }else{ $pimage = "https://s3.us-central-1.wasabisys.com/partswarehouse/photos/NO_PRODUCT_IMAGE-1.jpg"; } $partsallonly[] = $mppart['Description'].' '.$mppart['ProductCode']; $partsall[] = '
...
'.$mppart['KeyNum'] .'
'.$mppart['Description'] .' '. $mppart['ProductCode'] .'
'.$mppart['Description'].' '.$mppart['ProductCode'].'
'; @endphp
...
{{ $mppart['KeyNum'] }}
{{ $mppart['Description'] }} {{ $mppart['ProductCode'] }}
@php $cm++; @endphp @if($cm != count($mp['parts']))
@endif @endforeach @if($cm == 0)

No Parts Available for this Schematic

@endif
@php $mk++; @endphp @endforeach
@endif @if(!empty($description_main))
{!! $description_main !!}
@endif
@endsection