@extends('web.layout.master') @section('content')
@foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

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

@endif @endforeach
@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

@endif @foreach($modeldata['popularParts'] as $ppkey => $pp) @endforeach @endif
@if($checkasymID == 0)
@foreach($modeldata['partsLists'] as $mpkey => $mp)

...
@php $cm = 0; @endphp @foreach($mp['parts'] as $mppkey => $mppart)
...
{{ $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
@endforeach
@endif
@endsection