@extends('layouts.master') @section('title') Search Sku @endsection @section('page-title') Search Sku @endsection @section('body') @endsection @section('css') @endsection @if (isset($data)) {{-- {{dd($data)}} --}} @section('content')
@csrf
Search your SKUs.

@if (isset($data->synnexFtp->description)) @elseif(isset($data->ingramPriceFtp->description)) @elseif(isset($data->scansourceFtp->description)) @else @endif @if (isset($data->synnexFtp->sku)) @elseif(isset($data->ingramPriceFtp->manufpartno)) @else @endif @if (isset($synnex_data['PriceAvailabilityList'][0]['status'])) @elseif(isset($synnex_data['PriceAvailabilityList']['status'])) @else @endif @if (isset($data->scansourceFtp->weight) && $data->scansourceFtp->weight != '' && $data->scansourceFtp->weight != null) @elseif (isset($data->ingramPriceFtp->weight) && $data->ingramPriceFtp->weight != '' && $data->ingramPriceFtp->weight != null) @elseif (isset($data->synnexFtp->weight) && $data->synnexFtp->weight != '' && $data->synnexFtp->weight != null) @elseif (isset($asi_data['Inventory']['Weight']) && $asi_data['Inventory']['Weight'] != '' && $asi_data['Inventory']['Weight'] != null) @else @endif
Description{{ $data->synnexFtp->description }}{{ $data->ingramPriceFtp->description }}{{ $data->scansourceFtp->description }}Not Found
SKU{{ $data->synnexFtp->sku }}{{ $data->ingramPriceFtp->manufpartno }}{{ $sku }}
Status {{ $synnex_data['PriceAvailabilityList'][0]['status'] }} {{ $synnex_data['PriceAvailabilityList']['status'] }}
Weight{{ $data->scansourceFtp->weight }}{{ $data->ingramPriceFtp->weight }}{{ $data->synnexFtp->weight }}{{ $asi_data['Inventory']['Weight'] }}Nil
@php $prices = [ isset($data->synnexFtp->price) ? $data->synnexFtp->price : 'Nil', isset($data->ingramPriceFtp->price) ? $data->ingramPriceFtp->price : 'Nil', isset($data->dhFtp->price) ? $data->dhFtp->price : 'Nil', isset($data->scansourceFtp->price) ? $data->scansourceFtp->price : 'Nil', isset($asi_data['Inventory']['Price']) ? $asi_data['Inventory']['Price'] : 'Nil', ]; $lowestPrice = min(array_filter($prices)); // array_filter removes null or empty values @endphp @if (isset($data)) {{-- --}} synnexFtp->price) && $data->synnexFtp->price <= $lowestPrice) class="table-success" @php $lowestPrice = $data->synnexFtp->price; @endphp @endif> ingramPriceFtp->price) && $data->ingramPriceFtp->price <= $lowestPrice) class="table-success" @php $lowestPrice = $data->ingramPriceFtp->price; @endphp @endif> dhFtp->price) && $data->dhFtp->price <= $lowestPrice) class="table-success" @php $lowestPrice = $data->dhFtp->price; @endphp @endif> scansourceFtp->price) && $data->scansourceFtp->price <= $lowestPrice) class="table-success" @php $lowestPrice = $data->scansourceFtp->price; @endphp @endif>
Name Price Stock MSRP Weight Rebate / SPA Restriction Last UpdatedView
TD Synnex {{ isset($data->synnexFtp->price) ? '$' . $data->synnexFtp->price : 'Nil' }} {{ isset($data->synnexFtp->total_stock) ? $data->synnexFtp->total_stock : (isset($synnex_data['PriceAvailabilityList']['totalQuantity']) ? $synnex_data['PriceAvailabilityList']['totalQuantity'] : 'Nil') }} {{ isset($data->synnexFtp->msrp) ? '$' . $data->synnexFtp->msrp : (isset($synnex_data['PriceAvailabilityList']['msrp']) ? '$' . $synnex_data['PriceAvailabilityList']['msrp'] : 'Nil') }} {{ isset($data->synnexFtp->weight) ? $data->synnexFtp->weight : (isset($synnex_data['PriceAvailabilityList']['weight']) ? $synnex_data['PriceAvailabilityList']['weight'] : 'Nil') }} Nil {{ isset($data->synnexFtp->created_at) ? \Carbon\Carbon::parse($data->synnexFtp->created_at)->format('F j, Y, g:i A') : 'Nil' }}
Ingram {{ isset($data->ingramPriceFtp->price) ? '$' . $data->ingramPriceFtp->price : 'Nil' }} {{ isset($ingram_data[0]->availability->totalAvailability) ? $ingram_data[0]->availability->totalAvailability : 'Nil' }} {{ isset($data->ingramPriceFtp->msrp) ? '$' . $data->ingramPriceFtp->msrp : 'Nil' }} {{ isset($data->ingramPriceFtp->weight) ? $data->ingramPriceFtp->weight : 'Nil' }} {{ isset($ingram_data[0]->pricing->specialBidPricingAvailable) ? ($ingram_data[0]->pricing->specialBidPricingAvailable ? 'Special Bid Pricing Available' : 'Special Bid Pricing Not Available') : 'Special Bid Pricing Not Available' }} {{ isset($data->ingramPriceFtp->created_at) ? \Carbon\Carbon::parse($data->ingramPriceFtp->created_at)->format('F j, Y, g:i A') : 'Nil' }}
D&H {{ isset($data->dhFtp->price) ? '$' . $data->dhFtp->price : 'Nil' }} {{ isset($data->dhFtp->total_stock) ? $data->dhFtp->total_stock : 'Nil' }} {{ isset($data->dhFtp->msrp) ? '$' . $data->dhFtp->msrp : 'Nil' }} {{ isset($data->dhFtp->weight) ? $data->dhFtp->weight : 'Nil' }} {{ isset($dnh_data->rebate) ? 'Amount: $' . $dnh_data->rebate->amount . '
End Date: ' . ($dnh_data->rebate->endDate ?? 'N/A') : 'Nil' }}
{{ isset($data->dhFtp->created_at) ? \Carbon\Carbon::parse($data->dhFtp->created_at)->format('F j, Y, g:i A') : 'Nil' }}
Scan Source {{ isset($data->scansourceFtp->price) ? '$' . $data->scansourceFtp->price : 'Nil' }} {{ isset($data->scansourceFtp->total_stock) ? $data->scansourceFtp->total_stock : 'Nil' }} {{ isset($data->scansourceFtp->price) ? '$' . $data->scansourceFtp->price : 'Nil' }} {{ isset($data->scansourceFtp->weight) ? $data->scansourceFtp->weight : 'Nil' }} {{ isset($ss_data['SPARestrictionDescription']) && !empty($ss_data['SPARestrictionDescription']) ? $ss_data['SPARestrictionDescription'] : 'Nil' }} {{ isset($data->scansourceFtp->created_at) ? \Carbon\Carbon::parse($data->scansourceFtp->created_at)->format('F j, Y, g:i A') : 'Nil' }}
@endif @endsection @endif @section('content')
@csrf
Search your SKUs.
@endsection @section('scripts') @endsection @section('scripts') @endsection