@extends('layouts.app', [ 'navLinks' => [['label' => 'Dashboard', 'url' => '/dashboard', 'visibility' => 'auth'], ['label' => 'Inventory', 'url' => '/inventory', 'visibility' => 'auth'], ['label' => 'Projects', 'url' => '/projects', 'visibility' => 'auth'], ['label' => 'Profile', 'url' => '/profile', 'visibility' => 'auth'], ['label' => 'Settings', 'url' => '/settings', 'visibility' => 'auth']], ]) @section('title', $component['part_number']) @section('meta_description', $component['description']) @section('meta_image', '/image/' . $component['part_number'] . '?h=900&w=900') @section('meta_keywords', implode(', ', [$component['mpn'], $component['part_number'], $component['manufacturer'], 'PartSense', 'Components'])) @push('link') @endpush @push('styles') @endpush @section('content')
@if (isset($error))
{{ $error }}
@else
i
The images displayed are the property of their respective owners, including LCSC, Mouser, and Digi-Key.
{{ $component['part_number'] }}

{{ $component['part_number'] }}

@if ($component['is_discontinued'])
!
This product is discontinued
@endif

Manufacturer: {{ $component['manufacturer'] }}

MPN: {{ $component['mpn'] }}

Description: {{ $component['description'] ?? 'N/A' }}

@if (!empty($component['datasheet_link']))

Datasheet: {{ $component['mpn'] ?? 'N/A' }}

@endif @auth
@if (!$component['user_inventory']['hasInInventory']) @else
@endif @endauth
@if (isset($parameters) && $parameters->isNotEmpty())

Detailed Specifications

@foreach ($parameters as $paramName => $paramValue) @endforeach
Parameter Value
{{ $paramName }} {{ $paramValue }}
@endif

Distributors

@foreach ($component['distributors'] as $distributor => $info) @if (!empty($info['part_number'])) @php $url = ''; switch ($distributor) { case 'lcsc': $url = 'https://lcsc.com/search?q=' . urlencode($info['part_number']); break; case 'digikey': $url = 'https://www.digikey.ca/en/products/result?keywords=' . urlencode($info['part_number']); break; case 'mouser': $url = 'https://www.mouser.com/c/?q=' . urlencode($info['part_number']); break; } @endphp @if ($url)

{{ strtoupper($distributor) }}

Part Number: {{ $info['part_number'] }}

Stock: {{ $info['stock'] ?? 'N/A' }}

Price: {{ $info['price'] ?? 'N/A' }} {{ $info['currency'] ?? 'N/A' }}

@endif @endif @endforeach
@endif
Component Image
Component 1
Component Image
Component 2
Component Image
Component 3
Component Image
Component 4
Component Image
Component 5
@auth @endauth @endsection @push('scripts') @auth @endauth @endpush